Download the PHP package pallapay/pallapay-php-sdk without Composer

On this page you can find all versions of the php package pallapay/pallapay-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pallapay-php-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

Easy to use

First signup, create API Key and get you ApiKey, SecretKey from Pallapay website

Then you can create a payment:

create method params:

Name Description Required
$symbol Currency of the payment YES
$amount Amount in selected currency YES
$payerEmailAddress Payer email address YES
$ipnSuccessUrl The URL that we redirect the user after successful payment YES
$ipnFailedUrl The URL that we redirect the user after unsuccessful payment YES
$webhookUrl Webhook URL (If webhookUrl is NULL pallapay will send notifications to default webhook URL that you entered while creating your API Key) NO
$payerFirstName Payer first name NO
$payerLastName Payer last name NO
$note You 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
$orderId You 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
$paymentCurrencySymbol Force the user to pay only in the selected cryptocurrency, for example: USDT, ETH, ... (If you dont provide anything user can pay using any cryptocurrency) NO

After that you can redirect user to payment_link.

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.

IpnData Available methods:

method Description
isValid Check if IPN request was valid (Was really sent from Pallapay)
isPaid Check if user payment status was PAID
getAll Get everything from IPN request in an array
getPaymentRequestId Unique ID of created payment
getPaymentAmount Payment amount in selected currency
getPaymentCurrency Selected fiat currency to pay
getPayerEmailAddress Payer email address
getStatus Payment status (PAID or UNPAID)
getReceivingAmount The amount that you will receive in your Pallapay balance (After fees, if applicable)
getReceivingCurrency The currency that you will receive in your Pallapay balance
getPaidCryptocurrency The cryptocurrency your user selected to pay with
getFeeAmount Payment fee in selected fiat currency
getFeePaidBy Who paid the fees on this payment (You can choose who pay for fees in dashboard -> API Keys)
getPayerFirstName Payer first name
getPayerLastName Payer last name
getRefId User payment reference ID
getPaidAt Payment was done at (date/time)
getNote Custom note that you pass in creation time
getOrderId Unique order ID that you pass in creation time

Available methods

Contribution

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


Pallapay Website


All versions of pallapay-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
guzzlehttp/guzzle Version ^7.2
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pallapay/pallapay-php-sdk contains the following files

Loading the files please wait ....