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 Object
    $payer = new Payer();

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

    //Transaction Object
    $trans = new Transaction();

    //RedirectUrls Object
    $urls = new RedirectUrls();

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

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

Follow Us