PHPackages                             snowrunescape/picpay-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. snowrunescape/picpay-php-sdk

ActiveLibrary

snowrunescape/picpay-php-sdk
============================

PicPay PHP SDK

1.0.0(2y ago)09proprietaryPHP

Since Apr 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/SnowRunescape/picpay-php-sdk)[ Packagist](https://packagist.org/packages/snowrunescape/picpay-php-sdk)[ RSS](/packages/snowrunescape-picpay-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PicPay-PHP-SDK
==============

[](#picpay-php-sdk)

Este é um SDK em PHP para interagir com a API do PicPay. Ele permite criar facilmente solicitações HTTP para realizar operações como criar preferências de pagamento, consultar transações e muito mais.

Instalação
----------

[](#instalação)

Você pode instalar este SDK via Composer. Execute o seguinte comando:

```
composer require snowrunescape/picpay-php-sdk

```

Exemplo de Uso
--------------

[](#exemplo-de-uso)

```
$picpay = new \PicPay\PicPay("x-picpay-token", "x-seller-token");

$preference = $picpay->create_preference([
    "referenceId" => "PICPAY00001REFERENCE",
    "callbackUrl" => "https://example.com/api/notification",
    "returnUrl" => "https://example.com/order/success",
    "items" => [
        [
            "id" => 1,
            "quantity" => 1
        ]
    ],
    "value" => 30.00,
    "expiresAt" => (new \DateTime("+1 hour"))->format("Y-m-d\TH:i:s.000-04:00"),
    "buyer" => [
        "firstName" => "Bruno",
        "lastName" => "Caitano",
        "document" => "123.456.789-10",
        "email" => "snowrunescape@snowdev.com.br",
        "phone" => "+55 11 9 9999-9999"
    ]
]);

$url = $preference["response"]["paymentUrl"];
```

#### Validando se o pagamento foi realizado

[](#validando-se-o-pagamento-foi-realizado)

```
$picpay = new \PicPay\PicPay("x-picpay-token", "x-seller-token");

$data = json_decode(file_get_contents("php://input"), true);

$payment = $picpay->get_preference($data["referenceId"]);
```

Contribuindo
------------

[](#contribuindo)

Se você encontrar um problema ou tiver alguma sugestão de melhoria, sinta-se à vontade para abrir uma issue ou enviar um pull request.

Licença
-------

[](#licença)

Este projeto é licenciado nos termos da licença MIT. Consulte o arquivo LICENSE para obter mais detalhes.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

762d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a792be74e14c481444d342d4740f7b52a87ee04b7bf1ab16ddc3b9f5e470cfe?d=identicon)[SnowRunescape](/maintainers/SnowRunescape)

---

Top Contributors

[![SnowRunescape](https://avatars.githubusercontent.com/u/52182057?v=4)](https://github.com/SnowRunescape "SnowRunescape (6 commits)")

### Embed Badge

![Health badge](/badges/snowrunescape-picpay-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/snowrunescape-picpay-php-sdk/health.svg)](https://phpackages.com/packages/snowrunescape-picpay-php-sdk)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
