developer.amazon.com is portal highlight some of the many resources available for developers interested in integrating Amazon Pay. Below, we introduce four tools that we think every Amazon Pay developer should know about. Spoiler alert: one of the tools will even write sample code for you!
1. Amazon Pay Demo Site
We created the Amazon Pay demo site to help you visualize how your customers will interact with Amazon Pay on your site. Integration code is available alongside the user interface so that you can follow along as you step through the Amazon Pay checkout experience.
You should consider creating an Amazon Pay test account before you visit the site so that you can checkout using preconfigured test shipping addresses and payment instruments. Follow these instructions or watch this video to learn how to create a sandbox test account:
- Login to Seller Central (or register for an Amazon Pay merchant account if you haven’t done so yet)
- Select “Amazon Pay (Sandbox View)” from the drop-down selector at the top of the screen
- Hover over the “Integration” tab
- Select “Test Accounts” from the Integration menu
- Click “Create a new test account” and follow the instructions to create a sandbox test account
Pro-tip: You can also create an Amazon Pay test account during checkout on the Amazon Pay demo site by selecting “Create an Amazon.com” account on the login page. Note that the account won’t have any test shipping addresses associated to it so you’ll have to add an address on the following page in order to complete checkout.
2. Amazon Pay SDKs
Using an Amazon Pay SDK is not required for your integration, but we strongly recommend that you consider using one. Our SDKs make integrations easy by providing convenience functions, automatically generating request header signatures, parsing API responses, and giving developers an easy way to enable logs. See the list of supported languages below:
- PHP: https://github.com/amzn/amazon-pay-sdk-php
- Java: https://github.com/amzn/amazon-pay-sdk-java
- Ruby: https://github.com/amzn/amazon-pay-sdk-ruby
- Python: https://github.com/amzn/amazon-pay-sdk-python
- C#: https://github.com/amzn/amazon-pay-sdk-csharp
Pro-tip: Amazon Pay SDKs are easily accessible on GitHub. We regularly monitor issues and evaluate pull requests to review feedback from the Amazon Pay developer community, so submit a pull request if you think we can do better!
Link: https://amzn.github.io/amazon-pay-sdk-samples/
3. MWS Scratchpad
Our Marketplace Web Service (MWS) scratchpad enables you to make API requests without writing a single line of code. Simply enter your credentials, fill in the required API parameters, and submit your request. Follow these instructions or watch this video to learn about how to retrieve your Amazon Pay credentials:
- Login to Seller Central (or register for an Amazon Pay merchant account if you haven’t done so yet)
- Select “Amazon Pay (Sandbox View)” from the drop-down selector at the top of the screen
- Hover over the “Integration” tab
- Select “MWS Access Key” from the Integration menu
- Copy and paste “Seller ID”, “Access Key ID”, and “Secret Access Key” into their respective fields.
Pro-tip: Use this tool as a quick and easy to way to test API requests and troubleshoot integration issues. Select “Off-Amazon Payments Sandbox” or “Off-Amazon Payments” from the API Section drop-down selector to toggle between making requests in sandbox or production environment. Be careful! Requests made in production will result in live transactions!
Link: https://mws.amazonservices.com/scratchpad/index.html
4. Widget Code Generator
Someday you might be able to ask Alexa to integrate Amazon Pay for you, but until then you can use our widget code generator to produce sample front-end code for your Amazon Pay integration. To get started, you will need your Seller ID and Client ID. Follow these instructions or watch this video to learn about how to retrieve your Amazon Pay credentials:
- Login to Seller Central (or register for an Amazon Pay merchant account if you haven’t done so yet)
- Select “Amazon Pay (Sandbox View)” from the drop-down selector at the top of the screen
- Hover over the “Integration” tab
- Select “MWS Access Key” from the Integration menu
- Copy and paste “Seller ID” and “Client ID” into their respective fields.
Once you’ve entered your credentials, you can customize the integration by making changes to the button widget parameters. Some of the inputs will only result in visual updates while others will change the integration entirely. Visit Amazon Pay documentation for more information about each parameter.
Once you’ve made your selections, copy and paste the generated HTML code to a blank page and you’ve got a working Amazon Pay button!
Pro-tip: This is an easy way to get familiar with the different options available for customization. Try changing the various parameters to see how it affects the integration.
Link: http://amzn.github.io/amazon-pay-sdk-samples/code_generator/
That’s all for now, stay tuned for more updates as we build more developer tools and resources that simplify Amazon Pay integration.
Happy coding!