FasterPay API Documentation
Switch branches/tags
Nothing to show
Clone or download
Kushal Kushal
Kushal and Kushal merge branch 'gitlab-fp'
Latest commit e3bff26 Nov 21, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs added extra request param Nov 21, 2018
LICENSE Initial commit Oct 17, 2018 added extra request param Nov 21, 2018

About FasterPay

FasterPay is introducing the Simpler, Faster, Global, Better E-Wallet.


Before Starting the project please sign up at After providing the Business Details please take a note of below details:

● Your API Keys(Public Key, Private Key) Here

● If you are not using an E-commerce plugin then make sure you have hosted a success page and you have the URL where customer will get redirected after success transaction.


To give best customers experience and ease out the development efforts FasterPay can be integrated in two simple ways. FasterPay is designed to help merchants to monetize the projects with minimum possible efforts.

Option 1: Pay Button

Here you can make payments by passing minimum details like Amount, Product description and Success URL, Success URL is the URL where the customer will be redirected after completion of the transaction. you can show them one payment button to initiate FasterPay transaction. Payment button is a JavaScript which will collect all the details and pass it on FasterPay.

Code Samples

<script src=""
          description="Your Product Name"
          merchant="82b0c8a40c5d73ea08420816ec448d30" //Publick Key
          size="lg">    // Small-sm, Medium-md

Button size can be Small, Medium and large and that can be managed by passing different size codes.

Option 2: Custom Integration

Custom integration allows you to redirect your customer directly to our FasterPay Page. It is a browser to browser call where on selecting FasterPay option inside the checkout page of merchant website their customer can be redirected to FasterPay.





Field Required Description Example
amount Yes Payment amount in xxxx.yy format 9999.99
email No Email in correct format
first_name No First name without special character John
last_name No Last name without special character Watson
city No city London
zip No Zip code 201301
currency Yes Payment currency in ISO 4217 format EUR
api_key Yes Your Public Key xxxxyyyy
merchant_order_id Yes Your identifier of the payment, pass-through parameter order_12345
description Yes Product description Golden Ticket
success_url No Where a user should be redirected after successful paymentn
hash No Security hash calculated using your Private Key for preventing changing the parameters. Calculation algorithm is described below xxxyyyy

Calculation algorithm for hash:


Sample Hash parameters String (amount=10&api_key=Your API Key&currency=USD&description=testing_product&merchant_order_id=Unique ID&success_url=Merchant Hosted URLYour Project Private key) should be sorted alphabetically by the parameter name prior to hash calculation.

$params = ksort($parameters);
$hash   = hash('sha256', http_build_query($parameters) . $private_key);

Sample HTML Post Form

         <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
    <form align="center" method="post" action="">
       <input type="hidden" id="amount" name="amount" value="10" />
       <input type="hidden" id="currency" name="currency" value="USD" />
       <input type="hidden" id="api_key" name="api_key" value="Your API Key" />
       <input type="text" id="merchant_order_id" name="merchant_order_id" value="test_123" />
       <input type="text" id="description" name="description" value="testing_product" />        
       <input type="hidden" name="success_url" value="" />
       <input type="hidden" id="hash" name="hash" value="f389594dd1a789a88715b00cd80567dd4df405c281fc1e41d2628883b72ccc38" />
       <input type="Submit" value="Pay Now"/>

Listen to FasterPay Pingbacks.

Pingback request is sent from our servers to your Pingback listener script where we communicate to your server regarding the details about payment transactions so that your server can process the pingback automatically and deliver the goods to the respective users.

Authentication Header




Your Pingback URL

Expected Body in Pingback Response

         "date":"2018-04-25 12:15:07.000000",