The Redirect Checkout model allows you to collect payment details from your payer through an interaction hosted and displayed by the Big Pay Gateway. With this model of integration, you never see or handle payment details directly because these are collected by the hosted payment interface and submitted directly from the payer's browser to the Big Pay Gateway.
Import the redirect-bigpay.min.js library from gateway server, into the head of your main page index, through the following script :
Create checkout() javascript methode, and construct transaction object as following :
product_description | : Purchased product name, or order description |
---|---|
order_number | : Order Number |
amount | : Total amount to pay |
complete_url | : URL to call back after successful payment |
cancel_url | : URL to call back after cancel or error on payment |
timeout_url | : URL to call back after time out payment |
Call checkout() method at the last step of your purchase process (Checkout Button):
Use the standard test data unless specific test details for your acquirer and region are provided in the sections below.
Test Cards | Card Number | 3-D Secure Enrolled |
---|---|---|
Mastercard | 5123450000000008 | Y |
2223000000000007 | Y | |
5111111111111118 | N | |
2223000000000023 | N | |
Visa
|
4508750015741019 | Y |
4012000033330026 | N | |
American Express
|
345678901234564 | Y |
371449635398431 | N | |
Diners Club
|
30123400000000 | Y |
36259600000012 | N | |
JCB
|
3528000000000007 | Y |
3528111100000001 | N | |
Discover | 6011003179988686 | Y |
6011963280099774 | N | |
Maestro | 5000000000000000005 | Y |
5666555544443333 | N |
To integrate Big Pay Gateway, you have to register on the following link:
https://integration.big-pay.com/#/auth/register
And complete the form with the necessary information:
After registration, you will receive a confirmation email.
Click on the "Confirm Email" button
Now you can login to your space, to complete the information of your website (store).
After the validation of your account by the Big Pay team, you could connect to your space, and find your credentials to start testing integration with our gateway.
You can retrieve the id of your website (Key) in section: CONNECTIVITY API ==> API Keys:
Big Pay Gateway use Basic HTTP authentication. Basic auth is a simple authentication scheme built into the HTTP protocol.
To generate your authorization secret, concatenate your Website Key and Secret in the format "website_key:website_secret". Then encode the result in base64.
Import the Import the redirect-bigpay.min.js library from gateway server, into the head of your main page index, through the following script:
Create checkout() javascript function, and construct transaction object as following :
product_description | : Purchased product name, or order description |
---|---|
order_number | : Order Number |
amount | : Total amount to pay |
complete_url | : URL to call back after successful payment |
cancel_url | : URL to call back after cancel or error on payment |
timeout_url | : URL to call back after time out payment |
website_id | : Your website ID, you will find it in API Keys section |
authorization | : Base64-encoded Authorization Secret |
Call checkout() function at the last step of your purchase process (Checkout Button):
After the customer complete the payment form:
- In case of insufficient balance or a problem in the card used: an error message will be displayed in the payment form page
- In case of successful payment: the customer will be redirected to complete_url with the following parameters:
o Transaction Id
o Status = SUCCESS
Ex redirect url : https://your-store-url/complete-page?transaction_id=262352&status=SUCCESS'
- In case of error payment: the customer will be redirected to complete_url with the following parameters:
o Transaction Id
o Status = FAILD
Ex redirect url : https://your-store-url/complete-page?transaction_id=262352&status=FAILD'
- In case of timeout with the gateway: the customer will be redirected to timeout_url
To retrieve transaction informations::
- Call API (GET) by order number: https://app.big-pay.com/integration/transactions/order/[order_number]
Or
- Call API (GET) by transaction id: https://app.big-pay.com/integration/transactions/transaction/[transaction_id]
To switch from integration to live gateway, you need:
1- Signup and complete information’s in Live environment (Step 1, 2, and 3)
https://live.big-pay.com/
2- Wait for the validation of your live account
3- Get new live credentials (Step 4)
4- Prepare your Authorization Token (Step 5)
5- Change import library URL to:
Use the standard test data unless specific test details for your acquirer and region are provided in the sections below.
Test Cards | Card Number | 3-D Secure Enrolled |
---|---|---|
Mastercard | 5123450000000008 | Y |
2223000000000007 | Y | |
5111111111111118 | N | |
2223000000000023 | N | |
Visa
|
4508750015741019 | Y |
4012000033330026 | N | |
American Express
|
345678901234564 | Y |
371449635398431 | N | |
Diners Club
|
30123400000000 | Y |
36259600000012 | N | |
JCB
|
3528000000000007 | Y |
3528111100000001 | N | |
Discover | 6011003179988686 | Y |
6011963280099774 | N | |
Maestro | 5000000000000000005 | Y |
5666555544443333 | N |
Copyright © BigPay