Capturing the Response and Order Fulfilment

As soon as payment is completed and PhonePe receives the response from banks, the PhonePe server posts the response on the redirect URL shared by you in the requests. On the basis of the response of banks, there can be below the status of the order

  • Payment Successful
  • Payment Failed
  • Payment Pending

Once the payment is successful, you need to validate the response with the S2S response or via check transaction status API. It safeguards you from the tempered requests/response which is possible in case of browser(redirect) calls
You can choose to fulfil the order once the validation is successful at your end