PayMoney Express Payment Gateway Documentation


If payer wants to fund payments using paymoney, set payer to paymoney.
(Other payment method ex: paypal, stripe, coinpayments etc not available yet).


Specify a payment amount and the currency.


It’s a Transaction resource where amount object has to set.


Set the urls where buyer should redirect after transaction is completed or cancelled.


It’s a payment resource where all Payer, Amount, RedirectUrls and Credentials of merchant (Client ID and Client Secret) have to set. After initialized into Payment object, need to call create method. It will generate a redirect URL. Users have to redirect into this URL to complete the transaction.

Installation Instruction :

Click download for the package download

Go to php-sdk/src/PayMoney/Rest/Connection.php then change BASE_URL value to your hostname
(ex: If localhost then define( 'BASE_URL' , 'http://localhost' ) )

Example :
 require 'vendor/autoload.php';
 use PayMoney\Api\Payer;
 use PayMoney\Api\Amount;
 use PayMoney\Api\Transaction;
 use PayMoney\Api\RedirectUrls;
 use PayMoney\Api\Payment;

 $payer = new Payer();

                                     $amountIns = new Amount();
                                     ->setCurrency('USD'); //currency must be in merchant wallet list

                                     $trans = new Transaction();
                                     $urls = new RedirectUrls();

                                     $payment = new Payment();
                                     //Client ID & Secret = Merchants->setting(gear icon)
                                     'client_id' => 'ID',
                                     'client_secret' => 'secret'


                                     try {
                                     // redirecting to the approved url
                                     header("Location: ".$payment->getApprovedUrl());
                                     } catch (\Exception $ex) {
                                     print $ex;

Follow Us