3. Create Subsequent Payments
Once a Token goes to the confirmed state, you can start creating recurring payments for the customer as per your business requirements.
You can do this either from the Dashboard or using our APIs.
If you are using APIs, you have to complete two steps to create and charge your customer subsequent payments.
- Create a new Order
Like any other payment, each subsequent payment is tied to a unique order. Associating a payment with an order makes it easier to query Razorpay systems and handle multiple payment attempts and, allows automatic capturing of payments.
- Create a Payment
Once the order is created, you can create a payment against it.
Once our system validates the payment along with
razorpay_payment_id is returned. In some cases, the payment entity returned is in the created state and may take 1 working day for confirmation.
If you are using the Dashboard you have to complete two steps to create a payment and charge the customer.
- Search for the token and check its status
Once the authorization transaction is completed, a token is generated. Once the token is confirmed, you can charge the token as per your business requirements. You can use the search feature on the Dashboard to find the required token and check its status.
- Charge the token
Once you have found the required confirmed token, you can create a charge on it according to your business needs.
No Need to Create an Order:
When using the Dashboard, Razorpay automatically creates an order for you when you charge a token. There is no need to create an order separately.