Introduction
shurjoPay provides deferred status updates on incomplete payment transactions through the Instant Payment Notification (IPN) feature which merchant systems can enable and integrate easily.
This powerful feature enables merchant systems to get status updates of payment transactions which could be pending for various reasons or when customers lost their browser session.
System Integration
There are three steps to integrate with the ShurjoPay IPN feature completely:
- Providing IPN receiving end point
- Verifying payment using ShurjoPay order id
- Updating the merchant’s own system
Step 1: Providing IPN Receiving Endpoint
Merchants need to develop an HTTP endpoint which can handle a POST request containing ShurjoPay order id from the ShurjoPay system.
Example : https://[merchant_api_url]/payment-status-update?order_id=XXXXXXXX
See our examples:
2. Verifying payment by shurjoPay order id
After receiving the IPN call, the merchant's system must verify the payment using the shurjoPay order id through a callback HTTP request to the shurjoPay system. Merchant system can easily do this by calling the verification API of the shurjopay plugin they are using.
3. Updating the merchant’s own system
Finally, the merchant system needs to update their own system database according to the payment verification API response from the shurjoPay system.