I am working on a web application where we need to integrate the Amazon pay as payment option along with the PayPal. I want to add multiple payment buttons with different amounts to the page. Some of them are recurring payments. First of all, Is it possible to create recurring payment buttons using amazon pay? If yes, please share the information regarding this.
checkout this part of the docs please
I have gone through the docs. I have one more doubts on it. How can we set the interval or subscription period for payment? In my case I need an automatic payment button having subscription period 1 month. I couldn’t understand where we specify this? Can we set it as a parameter of some api calls?
This is where I am. To my understanding, once the buyer agrees to the recurring payments, it is up to you to make monthly calls to amazon api and capture the amount.
I have gone though the above link. Based on that, we have to use some custom logic to call the BillingAgreement API for each of the users on each subscription interval. right?
if so, then how can we say that this is a complete subscription button or widget?
its just like onetime payment button except it requires the user’s consent.
Can you please share any sample code for this?
here is the client snippet generator.
you can do both at the same time.