Integration Steps
-
First of all, before DQR integration implementation, merchant has to get onboarded with Amazon Pay India team. For detailed onboarding procedures, refer to the onboarding step documented in this guide.
-
While accepting a payment, merchant should invoke Generate QR API in order to generate a DQR which can be scanned by users for payment. In case, the customer chooses to pay using Card or Cash, merchant platform should invoke Cancel QR API in order to cancel the generated QR at Amazon end.
-
Upon completion of the customer's payment, Amazon sends a server-to-server notification, known as Instant payment notification (IPN), to the merchant's server. If the transaction status is success, a success charge slip should be generated. While for a failed transaction, a failure message is displayed in the Billing POS/EDC.
-
This notification comprises order status, store ID, order ID, and a signature. Merchants must validate this signature using their specific keys obtained from Seller Central.
-
Following successful signature validation, the merchant's server forwards this notification to their POS machine based on the store ID received from the IPN response.
-
The POS machine at the respective store should feature an option to receive, verify, and process the notification received from the merchant server.