PHPackages                             pallapay/pallapay-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. [Payment Processing](/categories/payments)
4. /
5. pallapay/pallapay-php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

pallapay/pallapay-php-sdk
=========================

Pallapay PHP SDK to accept crypto currency payments.

v1.1.0(1y ago)035MITPHPPHP ^7.4 || ^8.0

Since Sep 4Pushed 1y agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Pallapay crypto payment gateway SDK
-----------------------------------

[](#pallapay-crypto-payment-gateway-sdk)

Easy to use SDK for pallapay crypto payment gateway, accept crypto in your website and get paid in cash.

#### Installation

[](#installation)

```
composer require pallapay/pallapay-php-sdk

```

#### Easy to use

[](#easy-to-use)

First signup, create API Key and [get you ApiKey, SecretKey from Pallapay website](https://www.pallapay.com)

Then you can create a payment:

```
use Pallapay\PallapaySDK\PallapayClient;

$apiKey = "YOUR_API_KEY";
$secretKey = "YOUR_SECRET_KEY";
$pallapayClient = new PallapayClient($apiKey, $secretKey);

$createdPayment = $pallapayClient->payment()->create(
    'AED',
    '100',
    'johndoe@gmail.com',
    'https://yourwebsite.com/success',
    'https://yourwebsite.com/failed',
    'https://yourwebsite.com/webhook', // Optional
    'John', // Optional
    'Doe', // Optional
    'My Custom Note', // Optional
    'Order ID' // Optional
    //'USDT', // (paymentCurrencySymbol => Force the user to pay only in the selected currency, for example: USDT, ETH, ...) Optional
);

echo $createdPayment["data"]["payment_link"];
```

`create` method params:

NameDescriptionRequired$symbolCurrency of the paymentYES$amountAmount in selected currencyYES$payerEmailAddressPayer email addressYES$ipnSuccessUrlThe URL that we redirect the user after successful paymentYES$ipnFailedUrlThe URL that we redirect the user after unsuccessful paymentYES$webhookUrlWebhook URL (If webhookUrl is NULL pallapay will send notifications to default webhook URL that you entered while creating your API Key)NO$payerFirstNamePayer first nameNO$payerLastNamePayer last nameNO$noteYou can pass any custom note here. for example, your customer ID. This item is not displayed to the buyer (You will receive this in your webhook URL too)NO$orderIdYou can pass a "**unique**" order id here. This item is not displayed to the buyer as well (You will receive this in your webhook URL too)NO$paymentCurrencySymbolForce the user to pay only in the selected cryptocurrency, for example: USDT, ETH, ... (If you dont provide anything user can pay using any cryptocurrency)NOAfter that you can redirect user to `payment_link`.

#### Handle IPN notifications

[](#handle-ipn-notifications)

After user payment was done, we will call your WEBHOOK\_URL that you entered when you created your API Key.

In that page you can use this `getIpnData` method to get payment details and then verify it.

```
use Pallapay\PallapaySDK\PallapayClient;

$apiKey = "YOUR_API_KEY";
$secretKey = "YOUR_SECRET_KEY";
$pallapayClient = new PallapayClient($apiKey, $secretKey);

$jsonData = file_get_contents('php://input');
$data = json_decode($inputJson, TRUE);

$ipnData = $pallapayClient->payment()->getIpnData($data);

if ($ipnData->isValid() && $ipnData->isPaid()) {
    print_r($ipnData->getAll())
    echo 'Paid Successfully';
} else {
    echo 'Not Paid';
}
```

`IpnData` Available methods:

methodDescriptionisValidCheck if IPN request was valid (Was really sent from Pallapay)isPaidCheck if user payment status was PAIDgetAllGet everything from IPN request in an arraygetPaymentRequestIdUnique ID of created paymentgetPaymentAmountPayment amount in selected currencygetPaymentCurrencySelected fiat currency to paygetPayerEmailAddressPayer email addressgetStatusPayment status (`PAID` or `UNPAID`)getReceivingAmountThe amount that you will receive in your Pallapay balance (After fees, if applicable)getReceivingCurrencyThe currency that you will receive in your Pallapay balancegetPaidCryptocurrencyThe cryptocurrency your user selected to pay withgetFeeAmountPayment fee in selected fiat currencygetFeePaidByWho paid the fees on this payment (You can choose who pay for fees in dashboard -&gt; API Keys)getPayerFirstNamePayer first namegetPayerLastNamePayer last namegetRefIdUser payment reference IDgetPaidAtPayment was done at (date/time)getNoteCustom note that you pass in creation timegetOrderIdUnique order ID that you pass in creation time#### Available methods

[](#available-methods)

- `$pallapayClient->payment()->create()`
- `$pallapayClient->payment()->getAll()`
- `$pallapayClient->payment()->getByPaymentRequestId()`
- `$pallapayClient->balance()->getAll()`
- `$pallapayClient->balance()->getBySymbol()`

#### Contribution

[](#contribution)

Contributions are highly appreciated either in the form of pull requests for new features, bug fixes or just bug reports.

---

[Pallapay Website](https://www.pallapay.com)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

Every ~25 days

Total

2

Last Release

586d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5785647237ee9679db62e26a39b4a00779e54559b0e5bd9d3b172bc536b7d73?d=identicon)[pr4palla](/maintainers/pr4palla)

---

Top Contributors

[![pr4palla](https://avatars.githubusercontent.com/u/104486410?v=4)](https://github.com/pr4palla "pr4palla (2 commits)")

---

Tags

cryptopaymentgatewaybitcoinpallapay

### Embed Badge

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

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

###  Alternatives

[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[bitpay/sdk-light

Light version of the PHP library for the new cryptographically secure BitPay API

19143.6k3](/packages/bitpay-sdk-light)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[omnipay/bitpay

BitPay driver for the Omnipay payment processing library

1383.2k1](/packages/omnipay-bitpay)[coingate/omnipay-coingate

CoinGate driver for the Omnipay payment processing library

1037.0k1](/packages/coingate-omnipay-coingate)[plisio/plisio-api-php

155.8k](/packages/plisio-plisio-api-php)

PHPackages © 2026

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