E-commerce Plugins

Integrate Pallapay with popular e-commerce platforms via our payment plugins.

Readymade plugins for popular shopping carts platforms

2. Install the plugin on your WooCommerce store.
3. Enter your pallapay merchant id on your WooCommerce setting
 
For developers
  • // You can use this API in your backend to make a payment link, and then redirect user to that payment link.
  • // Request URL for create payment link
  • $resourceUrl = "https://www.pallapay.com/api/v1/request/createOrder";
  • $postData = json_encode([ 'order' => "134543", 'merchant' => "EE547896", 'amount' => 150.00, 'currency' => "AED", 'first_name' => "David", 'last_name' => "Joi", 'email' => "[email protected]", 'custom' => "Comment" //Optional ]);
  • $curlCli = curl_init($resourceUrl);
  • curl_setopt($curlCli, CURLOPT_HTTPHEADER, [ 'Content-Type: application/json' ]);
  • curl_setopt($curlCli, CURLOPT_RETURNTRANSFER, TRUE);
  • curl_setopt($curlCli, CURLOPT_SSL_VERIFYPEER, TRUE);
  • curl_setopt($curlCli, CURLOPT_CUSTOMREQUEST, 'POST');
  • curl_setopt($curlCli, CURLOPT_POST, TRUE);
  • curl_setopt($curlCli, CURLOPT_POSTFIELDS, $postData);
  • $result = curl_exec($curlCli);
  • curl_close($curlCli);
  • $resultData = json_decode($result, TRUE);
  • if($resultData['status'] == 1){
  • //redirect user to payment link.echo $resultData['result']['redirect_to_url'];
  • }
 

List of Currency Accepted

Here is list of currency code, in your form pass the code in a currency parameter

Name Code
UAE Dirham AED
US Dollar USD
Name Code
Bitcoin BTC
Pallapay PALLA
USDT USDT-TRC20
USDT USDT-ERC20
Etherum ETH
Tron TRON
USDC USDC-ERC20
DAI DAI-ERC20

Popular deposit methods for users

and other metnods

Documentation

POST form for payment

Variable Description Conditions Necessarily
merchant Merchant ID in the system Pallapay. Assigned to the merchant automatically after adding a store to your account. Your store must be moderated Not equal to 0 Yes
order Order Number purpose of payment. Not equal to 0 Yes
amount The sum in any form. The sum is rounded to decimal places. The total amount including commission will be calculated automatically Sum is more than 1 Yes
currency Currency of payment. Available currencies USD, AED, EUR, GBP,BTC,PALLA,USDT-TRC20,USDT-ERC20,ETH,TRON,USDC-ERC20,DAI-ERC20 Only values from the list Yes
first_name First name of payer Minimum number of characters 1 Yes
last_name Last name of payer Minimum number of characters 1 Yes
email email of payer should be valid format Minimum number of characters 1 Yes
custom Comment to the payment. For example, the order number in your store. This item is not displayed to the buyer - No

IPN notifications

Variable Description Example
$POST['amount'] The received amount without commissions 100.00
$POST['fee'] Fee for payment. Paid by the buyer or merchant according to the settings 0.20
$POST['total'] Total transaction amount including commission 100.20
$POST['currency'] Transaction currency for which payment was made debit_base
$POST['payer'] Buyer username in the system Pallapay johndoe
$POST['receiver'] Merchant username in the system Pallapay envato
$POST['status'] The status of the transaction. Always Value "Confirmed" Confirmed
$POST['date'] Transaction date 2018-01-09 03:11:07
$POST['id_transfer'] Unique transaction number in the system Pallapay 58954
$POST['merchant_name'] Merchant store name in the system Pallapay Google Inc
$POST['merchant_id'] Unique number of merchant in the system Pallapay 21
$POST['balance'] Available merchant balance in transaction currency 2100.56
$POST['custom'] Comment on payment, formed by the merchant in the HTML form INV 1452485
$POST['hash'] A unique signature that is used to verify the validity of a notification. A string join is created of the total amount, merchant password, date transaction and transaction ID. The string is encrypted using an algorithm MD5. C93D3BF7A7C4AFE94B64E30C2CE39F4F

Example of a notification handler in PHP

Create account and get started