5. Handling Payment Response
Step 5.1.
Check Payment Status
Step 6.2a
Handle Redirection back to App
Step 5.2.
Consume webhooks asynchronously
Step 5.3.
Display Payment Status
After receiving process response from SDK, it is mandatory to do a Server-to-Server Order Status API call to determine the final payment status. Please ensure that you verify the order ID and amount transaction.
To understand how to handle payment status, refer to the flow diagram below.
Add Following URL Scheme in your Info.plist
Add the code snippet in your application’s AppDelegate file to hand over the control back to app from 3rd party SDK/CCT.
After the completion of every payment/refund, Juspay will provide direct notification to your server regarding the event. These are called Webhooks.
You must configure a valid HTTPS endpoint that is reachable from our servers to consume these notifications. Our servers will push data using HTTP POST calls to your endpoint.
Click here for Detailed Webhook Specifications
Once the payment status is determined via the API, the final status should be displayed to the user. This screen needs to be handled by the merchant, it is not provided by the SDK