Autopay Integration


Here’s how the integration process with PhonePe Payment Gateway works.
Follow the steps outlined below to set up and verify your payment flow with ease.

Authentication is the first step in PhonePe Payment Gateway’s standard checkout API integration. It involves generating an authorization token to make further API calls. 

Creating an authorization token to make API calls means generating a unique key or password that proves your system has permission to interact with PhonePe Payment Gateway. This token identifies and authenticates your website when it requests services like processing payments, checking status, etc.

For complete details, refer to the Generate Authorization Token.

Transaction details to begin the payment process. This includes providing key information such as the transaction amount, a unique order ID, and the redirection URL where the customer will be taken after the payment is completed (whether it is a success or failure). 

For complete details, refer to the Subscription Setup.

In this step, you’ll integrate and invoke the PayPage on the checkout page of your website. The PayPage acts as the interface where customers complete their payment process.

For complete details, refer to the Redemption Notify.

The Redemption – Execute API is a crucial component in recurring subscription payment processing. It’s invoked after the Notify step to directly debit the required payment from a user’s bank account, thereby initiating and completing the actual financial transaction.

For complete details, refer to the Redemption Execute.

In a subscription system, it’s important to know whether a payment was successful, failed, or still pending.

PhonePe supports this with automated callbacks for two key events:

  • Subscription Callbacks
    Sent when a new subscription is created. These confirm if the customer’s first payment was successful or not, helping you handle activation or failure from the start.
  • Redemption Callbacks
    Sent for ongoing auto debits. These share the status of each recurring payment and provide individual transaction details, which are useful for retries and reconciliation.

Now that you are aware of what Autopay is, let’s explore how to integrate the Autopay feature.

Is this article helpful?