Cover by James Murty

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

Pay Now Widgets

The FPS service supports a mechanism called Pay Now widgets for accepting payments on your web site. A Pay Now widget is an HTML form containing input fields that define and authenticate an FPS payment operation for purchasing an item. When a customer submits the form a POST request is sent to the FPS service, and the customer is directed to a payment pipeline that guides her to log in to her Amazon account, select a payment method, and authorize the payment.

Here is a Pay Now widget form that allows a customer to purchase an item named “My Product” for the price of $20.

<form method="post" 
    action="https://authorize.payments-sandbox.amazon.com/pba/paypipeline">    
<input type="hidden" name="amazonPaymentsAccountId" 
       value="ABCDEFGHIJ1234567890ABCDEFGHIJ12345678"> 
<input type="hidden" name="accessKey" value="ABCDEFGHIJ1234567890"> 
<input type="hidden" name="signature" value="ykkLrMaSvdS+qgFZtlHUY+B9USg="> 

<input type="hidden" name="description" value="My Product"> 
<input type="hidden" name="amount" value="USD 20.00"> 
<input type="image" border="0" src= 
 "https://authorize.payments-sandbox.amazon.com/pba/images/payNowButton.png"> 
</form>

Pay Now widgets allow a customer to make an FPS payment in much the same way as she would through the Co-branded UI SingleUse Sender Pipeline (see Acquire a SingleUse Sender Token”). The widget is signed using your AWS secret key to ensure it is not altered, but this signature does not expire so the widget will remain valid indefinitely. Widgets ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required