Integration
Payabbhi allows for payments integration in a few, easy steps with the help of:
- Integration Guides
- Client Libraries and SDKs
- Sample Apps
- Snippets of well-documented code
Payment Acceptance Workflow
- Create an order via Create Order API.
- Initiate Payment flow via Web Checkout or Mobile Checkout - Android / iOS
- Verify Payment Response.
Order Creation
Your server-side code should be able to call our APIs typically by using one of our Client Libraries.
Create an Order using Create Order API.
Let the identifier of the customer order, booking etc. at your end be denoted by
merchant_order_id
. Thismerchant_order_id
should be passed to Create Order API.Payment against the Order may be
auto-captured
by passingpayment_auto_capture
= true
Pass the unique
order_id
returned by Payabbhi API to your front-end (web or mobile).- Create Order API returns a unique
order_id
. - The unique
order_id
should first be persisted in your database against themerchant_order_id
. This is required for your Server-side code to be able to retrieve your ownmerchant_order_id
using theorder_id
returned by Payabbhi in the Signed Payment Response at the end of the Checkout flow. - The unique
order_id
should then be passed to your front-end (web or mobile).
- Create Order API returns a unique
Payment Initiation
Initiate Payment via Web Checkout or Mobile Checkout - Android / iOS.
- The unique
order_id
obtained from the Server-side API call should be passed to Checkout (JS API / Mobile SDK) call.
- The unique
On payment success, a Signed Payment Response is returned by Checkout.
- In case of Drop-in Checkout, the Payment Response is automatically submitted to your Server-side code.
Verification of Payment Response
Payment Response can be verified by your Server-side code, typically using our Client Library.
- If you wish to implement it yourself, refer to Verification of Signature.
On passing the verification check, retrieve the
merchant_order_id
at your end.- The
order_id
from thePayment response
should be used to perform the lookup.
- The
The order that was retrieved from your end should now be considered as
paid
and an appropriate message should be displayed to your customer.It is recommended that the
payment_id
from thePayment response
is persisted against the Order at your end.
To verify your integration, you may call the Payments API or check Portal > Payments.
Payment Capture (optional)
In case, you have set payment_auto_capture
= false
when creating the Order, the corresponding payment needs to captured
via Capture Payment API.
- You may retrieve the
payment_id
for an Order as per the Order Management life-cycle at your end. - The payment can then be captured using the
payment_id
. Refer to Capture Payment API
Next Steps
Congratulations! Your code is now ready for Payments acceptance via Payabbhi.
Go Live by completing the Account Activation process at Portal > My Account and start accepting live transactions.