After defining these attributes by accessing SetBillingAgreementDetails, you must confirm the purchase in Amazon Pay by accessing the ConfirmBillingAgrement operation. After confirming the billing agreement, Amazon Pay informs the buyer that you have authorized a payment method for this billing agreement. You must confirm the billing agreement before processing the payment for the order. Note: Do not display the “Allow Recurring Payments” widget if the buyer changes the payment method. The buyer is not obliged to confirm the consent if he changes his selection. Buyers can change the billing agreement on the Amazon Pay website. If a buyer asks to update or downgrade their subscription or service plan, you should in future charge the buyer another amount for the upgrade or demotion. If the buyer contacts you during the billing cycle, you can place the fee at the end of the billing period. The subject of a billing contract is only allowed to create an order reference with The CreateOrderReferenceForId or to request a payment authorization through the AuthorizeOnBillingAgreement transaction, after confirming the billing agreement by calling the Transaction ConfirmBillingAgrement. The ConfirmLingAgreement operation call is only successful if there are no restrictions on the billing object. Restrictions indicate that important information is missing or not valid. If your customer confirms with these code changes that their Amazon payment information will be used for the subscription, the Amazon Billing Agreement (id) ID will be returned and can then be used with Recurly`s subscription API as account billing information.
Recurly.js is not necessary to integrate Amazon Pay into your Recurly account. To enable recurring payments, you need to view the “Amazon Allow Recurring Payments” widget. With this widget, the buyer can allow you to charge your Amazon account for future purchases and payments, such as subscriptions or invoices. This consent gives you the flexibility to calculate the variable amounts subject to our recurring payment policy over an indeterminate period to support subscriptions, usage-based settlements and other recurring payment scenarios. Some restrictions may be added to the billing agreement after it has been confirmed.