Creating recurring pay buttons


#1

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.


#2

checkout this part of the docs please
https://developer.amazon.com/docs/amazon-pay-automatic/intro.html


#3

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?


#4

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.


#5

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?


#6

here is the client snippet generator.
http://amzn.github.io/amazon-pay-sdk-samples/code_generator/

you can do both at the same time.
https://developer.amazon.com/docs/amazon-pay-automatic/enable-advanced-scenarios.html