简体   繁体   中英

How to implement razorpay recurring payments in Android Studio?

我在我的应用程序中实现了 razorpay 支付网关,现在我想为我的客户提供订阅付款选项,那么我如何在 Android Studio 中实现订阅(定期付款)?

There are 3 main steps:

Define a plan that sets what amount should be billed and how often. Create a subscription for the selected plan with the start and end details. Create an authentication transaction (auth transaction). But, All of these three steps are to be implemented from the backend.

From the front end side (Android app) we need to do the following:

Need to fetch all the plan_id from the backend Send the particular plan id for which we need the subscription and backend will generate a subscription_id. Fetch the subscription_id created in the backend During razorpay payment, add two extra parameters "subscription_id" & "recurring". Set recurring as 1. Send the transaction_id to backend which we get on payment success. FYI. I used the sdk "com.razorpay:checkout:1.4.5"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM