Redefining the way customers pay
Robust APIs architected and designed for high availability, scalability and security
Explore the Amazon Payments Developer Experience
Amazon Payments buttons
With the Login with Amazon button, customers can login to your website with their Amazon account credentials. Integrate the Pay with Amazon button to let them pay for their purchases using the information stored in their Amazon account.
- Integrate the Login with Amazon button as part of your existing website design.
- Integrate the Pay with Amazon buttons in-line with your existing checkout process.
- Mobile-friendly responsive widgets: New customers are a few taps away.
- Proven security and fraud protection.
<head>
// your head section here
<script type='text/javascript'>
window.onAmazonLoginReady = function() {
amazon.Login.setClientId('YOUR_CLIENT_ID_HERE');
};
</script>
<script type='text/javascript' src='https://static-eu.payments-amazon.com/OffAmazonPayments/uk/sandbox/lpa/js/Widgets.js'></script>
// your head section here
</head>
<div id="AmazonPayButton"></div>
<script type="text/javascript">
var authRequest;
OffAmazonPayments.Button("AmazonPayButton", "YOUR_SELLER_ID_HERE", {
type: "PwA",
authorization: function() {
loginOptions = {
scope: "ENTER_SCOPES", ENTER_POPUP_PARAMETER};
authRequest = amazon.Login.authorize (loginOptions,
"YOUR_REDIRECT_URL_HERE");
},
onError: function(error) {
// your error handling code
}
});
</script>
</div>
<head>
// your head section here
<script type='text/javascript'>
window.onAmazonLoginReady = function() {
amazon.Login.setClientId('YOUR_CLIENT_ID_HERE');
};
</script>
<script type='text/javascript' src='https://static-eu.payments-amazon.com/OffAmazonPayments/uk/sandbox/lpa/js/Widgets.js'></script>
// your head section here
</head>
<div id="AmazonPayButton"></div>
<script type="text/javascript">
var authRequest;
OffAmazonPayments.Button("AmazonPayButton", "YOUR_SELLER_ID_HERE", {
type: "LwA",
authorization: function() {
loginOptions = {
scope: "ENTER_SCOPES", ENTER_POPUP_PARAMETER};
authRequest = amazon.Login.authorize (loginOptions,
"YOUR_REDIRECT_URL_HERE");
},
onError: function(error) {
// your error handling code
}
});
</script>
</div>
Address Book Widget
The Address Book widget allows a customer to quickly select a preferred shipping address.
- Mobile-friendly and responsive
- Customers can easily access stored address information
<head>
// your head section here
<script type='text/javascript'>
window.onAmazonLoginReady = function() {
amazon.Login.setClientId('YOUR_CLIENT_ID_HERE');
};
</script>
<script type='text/javascript' src='https://static-eu.payments-amazon.com/OffAmazonPayments/uk/sandbox/lpa/js/Widgets.js'></script>
// your head section here
</head>
<!—- please put the style below inside your CSS file -->
<style type="text/css">
#addressBookWidgetDiv{width: 400px; height: 228px;}
</style>
<div id="addressBookWidgetDiv"></div>
<script>
new OffAmazonPayments.Widgets.AddressBook({
sellerId: 'YOUR_SELLER_ID_HERE',
onOrderReferenceCreate: function(orderReference) {
orderReference.getAmazonOrderReferenceId();
},
onAddressSelect: function(orderReference) {
// Replace the following code with the action that you want to perform
// after the address is selected.
// The amazonOrderReferenceId can be used to retrieve
// the address details by calling the GetOrderReferenceDetails
// operation. If rendering the AddressBook and Wallet widgets on the
// same page, you should wait for this event before you render the
// Wallet widget for the first time.
// The Wallet widget will re-render itself on all subsequent
// onAddressSelect events, without any action from you. It is not
// recommended that you explicitly refresh it.
},
design: {
designMode: 'responsive'
},
onError: function(error) {
// your error handling code
}
}).bind("addressBookWidgetDiv");
</script>
Wallet Widget
Our Wallet widget allows a customer to quickly select a preferred payment method for a purchase.
- Mobile-friendly and responsive
- Customers can quickly access stored payment methods
- Safe and secure: Payment information is stored on Amazon’s servers
<head>
// your head section here
<script type='text/javascript'>
window.onAmazonLoginReady = function() {
amazon.Login.setClientId('YOUR_CLIENT_ID_HERE');
};
</script>
<script type='text/javascript' src='https://static-eu.payments-amazon.com/OffAmazonPayments/uk/sandbox/lpa/js/Widgets.js'></script>
// your head section here
</head>
<!—- please put the style below inside your CSS file -->
<style type="text/css">
#walletWidgetDiv{width: 400px; height: 228px;}
</style>
<div id="walletWidgetDiv"></div>
<script>
new OffAmazonPayments.Widgets.Wallet({
sellerId: 'YOUR_SELLER_ID_HERE',
onPaymentSelect: function(orderReference) {
// Replace this code with the action that you want to perform
// after the payment method is selected.
},
design: {
designMode: 'responsive'
},
onError: function(error) {
// your error handling code
}
}).bind("walletWidgetDiv");
</script>
Back-end service calls
Amazon Payments solutions are architected and designed for high availability, scalability, and security from the start. Login and Pay is deployed in AWS across multiple availability zones. Amazon Payments utilizes many of the building blocks available in AWS and Amazon’s distributed services environment. These include:
- SNS (Simple Notification Service) to provide Instant Payment Notifications
- SQS (Simple Queuing Service) for work item management
- DynamoDB/S3 as part of the storage solution
These systems are distributed and resilient to availability zone failure. Services are automatically balanced between zones and traffic is automatically routed to available zones in the event of an AZ failure.
Tools
When you’re ready to dive into Login and Pay with Amazon, we have you covered.
- Access our Sandbox to test integration, test orders and validate that the right order information comes through for you.
- Our integration guide and API documentation are available for reference as you go.
Documentation
We offer an integration guide and API documentation to help developers seamlessly integrate Login and Pay with Amazon.
Pricing
(for domestic UK transactions)
To apply for volume discounts, please contact us.
