JanePay Express API Payment Gateway Developer Documentation


If payer wants to fund payments using JanePay, set the payer to JanePay.


Specify a payment amount and the currency.


Is a function where the amount object has to be defined.


Define the urls where user should be redirected after transaction is completed or cancelled.


Is a function where the Payer, Amount, RedirectUrls and Merchant Credentials (Client ID and Client Secret) have to be defined. After initializing the Payment object, the create function is called and will generate a redirect URL. Users must redirect into this URL to complete the transaction.

Installation Instruction :

Click HERE to download the package

Go to php-sdk/src/JanePay/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 JanePay\Api\Payer;
 use JanePay\Api\Amount;
 use JanePay\Api\Transaction;
 use JanePay\Api\RedirectUrls;
 use JanePay\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