| Did this page help you? Yes No Tell us about it... |
The input parameters are a mix of required parameters, as listed in the following table.
|
Parameter |
Description |
Required | |||
|---|---|---|---|---|---|
|
|
Optionally enter the URL where senders should be redirected if they cancel their transaction |
No | |||
|
|
Your AWS Access Key |
Yes | |||
|
|
Enter the amount you want to collect for the item |
Yes | |||
amazonPaymentsAccountId | Your Amazon Payments account ID. This parameter is not used and should not be present if you sign the button using your secret key. For more information, see Using Access Identifiers). | Yes | |||
|
|
Optionally, set to a cobranding style. Valid values are "logo" or "banner". ("logo" is preferred) |
No | |||
|
|
Optionally set to |
No | |||
|
|
Enter a description of the item |
Yes | |||
|
|
Optionally set to |
No | |||
|
|
Optionally type the URL of your host page to which Amazon Payments should send the IPN transaction information |
No | |||
|
|
Optionally set to the number of transactions in the promotion period. |
Yes, if | |||
|
|
Optionally set to |
No | |||
|
|
The optional amount you are providing for a promotional price. |
No | |||
|
|
The billing period (how often Amazon bills the subscriber) The format is |
Yes | |||
|
|
Optionally enter the start date for the subscription. By default, the subscription will be processed as soon as subscription is created |
No | |||
|
|
Optionally provide a unique identifies of this transaction for your records. |
No | |||
|
|
Optionally enter the URL where buyers should be redirected after they complete the transaction |
No | |||
signature | A value calculated using the form parameters. | Yes | |||
signatureMethod | The signing algorithm, either HmacSHA1 or
HmacSHA256. | Yes | |||
signatureVersion | A value that specifies the signature format. Currently, the only valid value is 2. | Yes | |||
|
|
Optionally enter the subscription duration. The format is The value
|
No |
Subscription buttons have special features to consider. See Working with Subscription Button Advanced Features
For information on using the Amazon Simple Pay to create buttons, see Understanding the Amazon Simple Pay Button Samples.
Example HTML for a subscription button, signed using the signature version 2 method.
<form
action="https://authorize.payments.amazon.com/pba/paypipeline"
method="POST">
<input type="hidden" name="immediateReturn"
value="1" >
<input type="hidden" name="noOfPromotionTransactions"
value="2" >
<input type="hidden" name="recurringStartDate"
value="1250161950" >
<input type="hidden" name="collectShippingAddress"
value="1" >
<input type="hidden" name="promotionAmount"
value="USD 1" >
<input type="hidden" name="accessKey"
value="YourAccessKeyId" >
<input type="hidden" name="referenceId"
value="MyTransaction-001" >
<input type="hidden" name="recurringFrequency"
value="1 month" >
<input type="hidden" name="amount"
value="USD 10.05" >
<input type="hidden" name="signature"
value="L8I/R5inJ3RtGIz/uYvyYlIu1ibDcSlaSn3/IwK6ciA=" >
<input type="hidden" name="isAutoRenewal"
value="0" >
<input type="hidden" name="description"
value="Daily NYT Delivery" >
<input type="hidden" name="ipnUrl"
value="http://yourwebsite.com/instantpaymentnotification" >
<input type="hidden" name="returnUrl"
value="http://yourwebsite.com/success" >
<input type="hidden" name="processImmediate"
value="0" >
<input type="hidden" name="cobrandingStyle"
value="logo" >
<input type="hidden" name="abandonUrl"
value="http://yourwebsite.com/cancel" >
<input type="image"
src=
"https://authorize.payments-sandbox.amazon.com/pba/images/GMSubscribeWithLogo.png"
border="0">
<input type="hidden" name="signatureVersion"
value="2" >
<input type="hidden" name="signatureMethod"
value="HmacSHA256" >
</form>