SlideShare a Scribd company logo
1 of 84
Download to read offline
Standard Checkout
HTML Implementation Guide




      U.S. Version 2010-09-15
2 | Checkout by Amazon | Introduction
Checkout by Amazon | TOC | 3




Contents
     Overview of Checkout by Amazon...................................................................................................................... 5
            Who Should Read This Document...........................................................................................................5
            Prerequisites............................................................................................................................................. 5
            Your Tasks When Using Checkout by Amazon...................................................................................... 5
            Other Documentation............................................................................................................................... 5
            What's New in This Document.................................................................................................................6


     Chapter 1: Setting Up Your Checkout by Amazon Account.......................9
               Signing Up for Checkout by Amazon.................................................................................................... 10
               Logging In to Your Checkout by Amazon Account.............................................................................. 10
                       Log In to Seller Central.............................................................................................................. 10
               Your Sandbox and Production Settings................................................................................................. 11
                       Switching Between Production and the Sandbox...................................................................... 13
               Your Account and Your Info & Policies................................................................................................13
                       Set Up Your Account Settings................................................................................................... 13
                       Set Up Your Info & Policies Settings........................................................................................ 15
               Your Checkout Pipeline Settings........................................................................................................... 16
                       Set the Return URLs.................................................................................................................. 17
                       Toggle the Shopping Cart Security............................................................................................ 17
                       Set the Integration URLs............................................................................................................17
                       Set the Order Report Type and Frequency.................................................................................18
               Basic Seller Central Settings for Shipping, Taxes, and Promotions...................................................... 18
                       Set Your Seller Central Shipping Rates..................................................................................... 18
                       Set Your Seller Central Tax Rates............................................................................................. 19
                       Set Your Seller Central Promotions........................................................................................... 19
               Setting User Permissions for Your Seller Central Account................................................................... 20
                       Step One: The Account Manager Sends the Invitation.............................................................. 20
                       Step Two: The User Receives a Confirmation Code................................................................. 20
                       Step Three: The User Accesses Seller Central and Creates an Account....................................20
                       Step Four: The Account Manager Sets User Permissions..........................................................21
               Setting Up Your E-mail Whitelist.......................................................................................................... 21
                       Set Up Your Whitelist................................................................................................................ 21
               Getting Your AWS Key......................................................................................................................... 22
                       Get Your AWS Keys..................................................................................................................22
               Setting Up Your Buyer (Testing) Account............................................................................................ 22
                       Set Up Your Buyer (Testing) Account.......................................................................................23
                       Set Up PayPhrase for Your Buyer Account............................................................................... 24
               Enabling PayPhrase on Your Website................................................................................................... 24


     Chapter 2: Integrating with Checkout by Amazon.................................... 27
               Steps to Integrating Checkout by Amazon with Your Website ............................................................ 28
               Integration Touch Points........................................................................................................................ 28
               Sandbox Setup........................................................................................................................................30
                       Create a Sandbox Cart Using HTML......................................................................................... 30
                       Sign Your Cart........................................................................................................................... 31
                       Add the Signature to the Cart..................................................................................................... 32
                       Place the Sandbox Checkout Button Code on Your Test Webpage.......................................... 33
                       Test Your Sandbox Button by Placing a Test Order.................................................................. 34
               Production Setup.................................................................................................................................... 35
4 | Checkout by Amazon | TOC



                                      Create a Production Cart Using HTML..................................................................................... 35
                                      Sign Your Cart........................................................................................................................... 36
                                      Add the Signature to the Cart..................................................................................................... 37
                                      Place the Production Checkout Button Code on Your Test Webpage....................................... 38
                                      Test Your Production Button by Placing a Test Order.............................................................. 39
                                      Cancel Your Test Production Order...........................................................................................40
                                      Place the Production Checkout Button Code on Your Live Web page..................................... 41
                               Additional Setup Tips.............................................................................................................................41
                               Set Up for Your Mobile-Optimized Website......................................................................................... 44
                                      Enabling Checkout by Amazon on Your Mobile-Optimized Website...................................... 44
                                      The Customer Experience on a Mobile-Optimized Website..................................................... 44


                       Chapter 3: Handling Settlements................................................................. 47

                       Chapter 4: Post-Setup Exit Criteria.............................................................49
                               Exit Criteria............................................................................................................................................ 50
                               Ten Types of Test Transactions............................................................................................................. 50
                               Order Options Used When Testing Transactions...................................................................................50


                       Chapter 5: Cart and Button Customizations.............................................. 51
                               Using Cart Overrides..............................................................................................................................52
                                      Shipping Overrides.....................................................................................................................52
                                      Tax Overrides............................................................................................................................. 54
                                      Promotions Overrides.................................................................................................................56
                               Flexible Shipping Options......................................................................................................................58
                                      Customer Experience................................................................................................................. 58
                                      Merchant Experience..................................................................................................................59
                                      Service Levels and Custom Shipping Levels............................................................................. 62
                                      Using Flexible Ship Options with HTML-based Carts.............................................................. 63
                               Modifying Button Styles........................................................................................................................ 64
                               Additional Checkout by Amazon Features............................................................................................ 65


                       Appendix A: Code Samples...........................................................................67
                               Signing Carts.......................................................................................................................................... 68
                               Post-Order Management Using SOAP...................................................................................................68
                               Callback API.......................................................................................................................................... 68
                               Instant Order Processing Notification API.............................................................................................68


                       Appendix B: Button Styles............................................................................ 71
                               White Background..................................................................................................................................72
                               Light Background...................................................................................................................................73
                               Dark Background................................................................................................................................... 74


                       Appendix C: HTML Definitions...................................................................77
                               Definition Tables....................................................................................................................................78
Overview of Checkout by Amazon

   Welcome to the Standard Checkout - HTML Implementation Guide.
   This section describes who should read this guide, how the guide is organized, and other resources related to
   Checkout by Amazon.


Who Should Read This Document
   This document gives you the information and steps you need to integrate your website with Checkout by Amazon.
   Before you begin integration, you must decide what method you will use to integrate: using the Create Checkout
   Button page in Seller Central, using HTML-based code you build yourself, or using XML-based code you build
   yourself.
   •    If you want to integrate with buttons you build using the Create Checkout button page, then please
        download and read the Standard Checkout - Button Creation Wizard Implementation Guide.
   •    If you want to integrate building your own XML-based code, then please download and read the Standard
        Checkout - XML Implementation Guide.
   •    If you want to integrate building your own HTML-based code, then please continue reading this document.


Prerequisites
   This guide assumes you--or your development staff--are familiar with using HTML in an application development
   environment.
   Before you can use Checkout by Amazon, your systems must meet the following prerequisites:
   •    You must have a shopping cart on your site and make it available for processing using HTML. (That is, no matter
        what tool you use to build your shopping cart, you must be able to send it as HTML for processing.)
   •    You must be familiar with using JavaScript. (There are several required JavaScript code snippets that you must
        use in your carts to enable Standard Checkout)


Your Tasks When Using Checkout by Amazon
   You have four basic tasks to accomplish when using Checkout by Amazon on your site:
   1.   Set up your Checkout by Amazon account.
   2.   Complete your Seller Central settings.
   3.   Integrate your site with Checkout by Amazon.
   4.   Test and sign off your integration.
   The rest of this document discusses how to accomplish these tasks.


Other Documentation
   You can read our downloadable PDFs to understand more about Checkout by Amazon.
   More Resources for Checkout by Amazon

           Resource                                                  Audience, Purpose, and Goals
6 | Checkout by Amazon | Overview of Checkout by Amazon



                      Getting Started Guide                             For merchants who want to use a simple, step-by-
                                                                        step approach in setting up Checkout by Amazon
                                                                        on their websites. The Getting Started Guide walks
                                                                        merchants through the process, from gathering the
                                                                        required information for signing up for an account
                                                                        to setting up a button on their websites.
                      Standard Checkout - Button Creation Wizard        For merchants and developers who want a
                      Implementation Guide                              detailed list of ways to integrate their website with
                                                                        Checkout by Amazon. The Implementation Guide
                      Standard Checkout - HTML Implementation Guide     provides the information needed for programming
                                                                        and code development. Note that there are three
                      Standard Checkout - XML Implementation Guide      versions of this document: one for those who
                                                                        just want to paste the button code built using the
                                                                        Create Checkout Button feature in Seller Central,
                                                                        one for HTML-based code, and one for XML-
                                                                        based code.
                      Using Seller Central                              For merchants who want an overview of Seller
                                                                        Central.
                      Standard Checkout - Callback API Guide            For developers who want to build their own
                                                                        applications to calculate shipping and tax rates as
                                                                        well as promotional discounts and then send these
                                                                        results to Checkout by Amazon.
                      Standard Checkout - Callback API Developers       For developers who want a quick, 1-page
                      Cheat Sheet                                       summary of how to enable callbacks.
                      Instant Order Processing Notifications Guide      For developers who want to automate order
                                                                        notifications with Amazon Payments.
                      Using Custom Data Fields Guide                    For merchants and developers who want to include
                                                                        custom data fields in their carts.
                      Best Practices Guide                              Tips for setting up your website to use Amazon
                                                                        Payments, with advice for planning, setting up,
                                                                        and day-to-day operations.

                      Managing Orders                                   A guide to assist you in the day-to-day operations
                                                                        for managing orders generated by Checkout by
                                                                        Amazon.
                      Alternate Payment Method Guide                    Information on using Checkout by Amazon as an
                                                                        alternate payment method on the payments page of
                                                                        your standard checkout.



          What's New in This Document
                Table of Changes
                      Ver                                  Date                             Changes
                      1.4                                  2010-10-11                       Added information about
                                                                                            using Checkout by Amazon on
                                                                                            mobile-optimized websites.
                      1.3                                  2010-09-15                       Revisions for updated checkout
                                                                                            functionality.
Checkout by Amazon | Overview of Checkout by Amazon | 7



      1.1                                    2010-06-30                  Revisions for Amazon
                                                                         Payments site functionality.
      1.0                                    2010-02-14                  Initial release.

Copyright © 2010 by Amazon.com, Inc, or its affiliates.
8 | Checkout by Amazon | Overview of Checkout by Amazon
Chapter

1
Setting Up Your Checkout by Amazon Account
Topics:                                You have six required tasks (and three optional, but recommended, tasks)
                                       when you initially set up your Checkout by Amazon account on Seller
•   Signing Up for Checkout by         Central.
    Amazon
                                       In this section you'll learn about the following required tasks:
•   Logging In to Your Checkout by
    Amazon Account                     1.   Sign up for your Checkout by Amazon account.
•   Your Sandbox and Production        2.   Switch between the Production and Sandbox modes.
    Settings                           3.   Set up your Info & Policies.
•   Your Account and Your Info &       4.   Set up your Checkout Pipeline Settings.
    Policies                           5.   Set up your basic settings for Shipping Rates, Tax Rates, and Promotions.
•   Your Checkout Pipeline Settings    6.   Set up your Buyer (testing) Account.
•   Basic Seller Central Settings      You'll also learn about the following optional, but recommended, tasks:
    for Shipping, Taxes, and
    Promotions                         1. Set up your Role-based Permissions.
•   Setting User Permissions for       2. Modify your e-mail client's whitelist to accept e-mail from Amazon
    Your Seller Central Account           Payments.
•   Setting Up Your E-mail Whitelist   3. Get your AWS Security Keys, used for signed carts.
•   Getting Your AWS Key
•   Setting Up Your Buyer (Testing)
    Account
•   Enabling PayPhrase on Your
    Website
10 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account




          Signing Up for Checkout by Amazon
                To get started integrating your website with Checkout by Amazon, you must first sign up for your Checkout by
                Amazon account.
                If you have not already signed up for Checkout by Amazon, please download and read the Getting Started Guide for
                Checkout by Amazon. It contains the information you need and steps to follow.


          Logging In to Your Checkout by Amazon Account
                After you've signed up for your account, you use your account credentials (your e-mail and password) to sign in to
                Seller Central to manage your account.
                Seller Central is the "homepage" for your account. It's where you set up your basic settings for your account, such as
                your info & policies, or your checkout pipeline experience, and so on.
                In Seller Central, you can perform the following actions:
                •   Switch between the Sandbox and Production
                •   View and fulfill orders
                •   View your payments
                •   Edit your account settings

          Log In to Seller Central
                You log in to Seller Central when you want to manage orders, view reports, or manage your account settings.
                                                                            Note: You can also manage orders and view reports
                                                                            programmatically. For more information about how to do
                                                                            so, please see Managing Orders.
                Follow these steps to log in to Seller Central:

                1. Go to https://sellercentral.amazon.com.
                   You'll see the Seller Central log-in page:
Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 11




      Figure 1: The Seller Central Log-in Page
   2. Enter your Seller Central account credentials (the e-mail and password you used to sign up for the Checkout by
      Amazon account).
   3. Click Sign in.
      You'll see the Seller Central home page:




      Figure 2: Seller Central Home Page
   For more information about using Seller Central, please download and read Using Seller Central.


Your Sandbox and Production Settings
   After you have signed in to Seller Central you are ready to edit your account settings.
12 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account



                However, before you begin setting up your account, it's important for you to understand that there are two basic
                methods of operation, Sandbox and Production.
                •   You use the Sandbox for testing your setup and your code. Nothing you do in the Sandbox generates paid orders.
                •   You use Production to generate orders. Anything you do in Production is treated as a real order--you must either
                    fulfill or cancel all Production orders within 30 days.
                The basic difference between the Sandbox and Production is that anything you do in the Sandbox cannot generate an
                order that is charged to a payment method. That is, you can "buy" an item in the Sandbox mode, but the credit card
                you use to buy the item can never be charged for the item. If you buy an item in Production, you are placing a real
                order that must be either fulfilled or canceled--that is, you must either ship it or cancel the order.
                                                                            Important: You cannot use your merchant account (the
                                                                            account you use to sign in to Seller Central) to place
                                                                            an order in Production. If you want to place orders in
                                                                            Production so you can test the end-to-end experience and
                                                                            make sure your fulfillment systems are working, you must
                                                                            create and use a separate "buyer" account. See Setting Up
                                                                            Your Buyer (Testing) Account on page 22 for more
                                                                            information about setting up and using a buyer account.
                This table illustrates the functions available in the Sandbox and in Production.

                Table 1: Functions Available in the Sandbox and in Production

                       Function                          Sandbox           Production       Notes
                       Generate orders                   Yes               Yes
                       Build functional*                 Yes               Yes              "Functional" here means that you can
                       Checkout buttons                                                     click the Checkout button and go through
                                                                                            the order pipeline.
                       Create an order using a           Yes               Yes              You can use your payment method in the
                       payment method                                                       Sandbox, but your payment method will
                                                                                            never be charged.
                       View orders                       Yes               Yes              All orders in the Sandbox are marked as
                                                                                            "Pending."
                       Fulfill orders                    No                Yes              All orders in the Sandbox are marked as
                                                                                            "Pending"; you cannot fulfill "Pending"
                                                                                            orders.
                       Give feedback on an               No                Yes
                       order
                       Cancel an order as a              Yes               Yes
                       customer
                       Cancel an order as a              No                Yes
                       merchant
                       Have a payment method             No                Yes
                       charged for an order
                       View and download                 No                Yes
                       order-related reports

                When you set up your account, you must set up your Sandbox and Production settings separately. To set them up,
                you must switch between Production and Sandbox mode in Seller Central.
                                                                            Note:
Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 13



                                                             When you first set up your Checkout by Amazon account,
                                                             you are in the Production mode. You must explicitly
                                                             switch to the Sandbox mode.
                                                             The mode you pick (Production or Sandbox) is "sticky";
                                                             that is, if you select a mode, log off from Seller Central,
                                                             and then log in again, you return to the same mode.

Switching Between Production and the Sandbox
    Follow these steps to switch between Production and the Sandbox
    1. Locate the Website drop-down box near the top left:




       Figure 3: The Website drop down box
    2. Click the Website drop-down box to display the available websites:




       Figure 4: The Website drop down box displaying the available websites
    3. To select the Production mode, click Your Checkout Website.
    4. To select the Sandbox mode, click Your Checkout Website (Sandbox).




Your Account and Your Info & Policies
    Your Checkout by Amazon account has two separate account settings that you set up before you accept your first
    order:
    • Your Account Settings: Used to set up your account settings we use to transact business with with you, such as
       your business name or your bank account information.
    • Your Info & Policies Settings: Used to set up the information your customers see about you, such as your
       refunds and return policy
                                                             Note: Be sure you switch to the correct mode before
                                                             you change these settings. To learn more about switching
                                                             between modes, please see Your Sandbox and Production
                                                             Settings on page 11 in this document.

Set Up Your Account Settings
    The Account Information page lets you change the following options:
14 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account



                Notification Options
                •   Order notifications
                •   Out-of-stock notifications
                •   Business updates
                •   Claims notifications (e-mail address)
                •   Technical notifications (e-mail address)
                Business Information
                •   Your business display name
                •   Your business legal name
                •   Customer service e-mail
                •   Customer service reply-to e-mail
                •   Customer service phone number
                Business Profile
                •   Type of ownership
                •   Business category
                •   Website URL
                •   Date established
                •   Estimated $ volume / month
                •   Average transaction $ amount
                Bank Account Information
                                                                         Important: It is critical that you enter your bank account
                                                                         information in your Account Settings page in Production--
                                                                         we cannot pay you unless you set up a valid U.S.-based
                                                                         checking account.
                                                                         Important: Amazon Payments may require that you
                                                                         maintain a minimum balance (or reserve) in your account
                                                                         to secure the performance of your payment obligations.
                                                                         Please see the Amazon Payments Reserve Policy topic
                                                                         for information on how this reserve is calculated and
                                                                         managed.
                                                                         Note: Changing your Bank Account information will
                                                                         start an automatic 14-day hold on disbursements. See How
                                                                         often am I paid? for more information.
                Credit Card Information (select or update only)
                                                                         Note: You can view but not change the information in
                                                                         the Credit Card section. If you want to change your credit
                                                                         cart information or add a new credit card, you do so on the
                                                                         Amazon.com site by going to https://www.amazon.com/
                                                                         gp/css/account/cards/view.html and following the
                                                                         instructions on that page.
                Follow these steps to set up your account settings:
                1. Verify that you have selected the correct mode, Production or Sandbox.
                                                                           Note: Be sure you switch to the correct mode before
                                                                           you change these settings. To learn more about
                                                                           switching between modes, please see Your Sandbox and
                                                                           Production Settings on page 11 in this document.
                2. In Seller Central, click Settings > Account Info.
                   The Account Info page appears:
Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 15




       Figure 5: The Account Info page
    3. Under Notification Options, verify that Order Notifications and Out-of-stock Notifications are enabled.
       If notifications are not enabled, click the Edit button in the Notification Options section, enable the notifications,
       and click Update.
    4. Verify that your information is correct for your Business Information, your Business Profile, your Bank Account
       Information and your Credit Card Information.
       To change the information, click the Edit button in the appropriate section, make the necessary changes, and click
       Update.

Set Up Your Info & Policies Settings
    The Your Info & Policies page lets you change the following attributes about your company. This information
    appears in the checkout pipeline:
           Page link                                                    Used for
           About Seller                                                 Tell your customer about yourself.
           Seller Logo                                                  Add your company logo 120 x 30 pixels (GIF,
                                                                        JPG, or PNG).
           Returns & Refunds                                            Describe your returns and refund policy.
           Shipping                                                     By default, your shipping costs page in the
                                                                        checkout pipeline shows your shipping costs (from
                                                                        Seller Central Manage Shipping). However, you
                                                                        can use this page to describe more about your
                                                                        shipping policies.
           Privacy Policy                                               Describe your privacy policy.
           Frequently Asked Questions                                   List any frequently asked questions and answers
                                                                        you might have.
16 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account




                       Page link                                                   Used for
                       Custom Help Pages                                           Add any additional help pages you'd like
                                                                                   customers to see if they want more information
                                                                                   within the checkout pipeline.
                                                                           Important: Changes you make to the pages on the Your
                                                                           Account & Policies page take about 24 hours to appear.

                Follow these steps to set up your Info & Policies settings.
                1. Verify that you have selected the correct mode, Production or Sandbox.
                                                                               Note: Be sure you switch to the correct mode before
                                                                               you change these settings. To learn more about
                                                                               switching between modes, please see Your Sandbox and
                                                                               Production Settings on page 11 in this document.
                2. In Seller Central, click Settings > Your Info & Policies.
                   The Your Information & Policies page appears:




                   Figure 6: The Your Information Page
                3. For each section in the Your Information & Policies page, click the link to that page, enter the information, and
                   click Save.
                   Note that if you don't see a page you want, you can create Custom Help Page with the content you specify.


          Your Checkout Pipeline Settings
                With Checkout by Amazon, you can set the following options for your checkout pipeline:
                • Set the URL for successful payments (the page on your site where customers land after completing their
                   purchase).
                • Set the URL for canceled payments (the page on your site where customers land if they cancel the order before
                   completing their purchase).
Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 17



    •   Set the URL for your customers' account information (the page on your site where you show customers their
        account information)
    •   Set whether you want to accept only signed carts (carts with a calculated signature).
    •   Set the URL for instant order processing notifications (useful if you integrate using the Instant Order Processing
        Notification API; see the Instant Order Processing Notification API Guide (PDF) for more information).

Set the Return URLs
    Follow these steps to set the three Return URLs.
                                                                Note: The Your Account Return URL points to a
                                                                location on your site where you display information to
                                                                your customers about their accounts. Customers can go
                                                                to the Amazon Payments Your Account page (https://
                                                                payments.amazon.com/sdui/sdui/overview) to see their
                                                                order status for all payments made using Checkout by
                                                                Amazon anywhere on the internet.
    1. In Seller Central, click Settings > Checkout Pipeline Settings.
       The Checkout Pipeline Settings page appears.
    2. Click the first Edit button on the page (the one immediately under the Instant Order Processing Notification
       Settings heading).
    3. In the Successful Payment Return URL box, type the URL you want to send your customers to after they
       successfully complete payment.
    4. In the Cancel Payment Return URL box, type the URL you want to send your customers to if they cancel the
       order before they successfully complete payment.
    5. In the Your Account Return URL box, type the URL on your you want to send your customers to when they
       want to inquire about their account.
    6. Click Update.

Toggle the Shopping Cart Security
    Follow these steps to toggle your shopping cart security setting.
                                                                Note:
                                                                You can choose to accept signed carts whether you
                                                                integrate using the Checkout buttons created in Seller
                                                                Central, HTML-based Checkout buttons, or XML-based
                                                                Checkout buttons.
                                                                For more information about signing your Checkout
                                                                buttons, please see Sign Your Cart on page 31.
    1. In Seller Central, click Settings > Checkout Pipeline Settings.
       The Checkout Pipeline Settings page appears.
    2. Click the first Edit button on the page (the one immediately under the Instant Order Processing Notification
       Settings heading).
    3. Next to Shopping Cart Security, click the Accept only digitally signed XML shopping carts check box to set the
       checkmark (accept only signed carts) or to clear the checkmark (accept all carts).
    4. Click Update.

Set the Integration URLs
    If you (or your integrator/developer) are using the Instant Order Processing Notifications, you must specify where you
    want these notifications to go. You can send them to your own website or to your integrator's website.
                                                                Note: Choose either your own website or your integrator's
                                                                website, but not both, or else you will get multiple order
                                                                processing messages
18 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account



                1. In Seller Central, click Settings > Checkout Pipeline Settings.
                   The Checkout Pipeline Settings page appears.
                2. Click the first Edit button on the page (the one immediately under the Instant Order Processing Notification
                   Settings heading).
                   a) In the Merchant URL box, type the URL (on your website) where you want notifications to be sent.
                   b) Or, in the Integrator URL box, type the URL (on your integrator's or developer's website) where you want
                       notifications to be sent.
                3. Click Update.

          Set the Order Report Type and Frequency
                You can set your order report type and frequency in Seller Central to match your needs.
                1. In Seller Central, click Settings > Checkout Pipeline Settings.
                   The Checkout Pipeline Settings page appears.
                2. Click the second Edit button on the page (the one immediately under the Order Reports Setting heading).
                   The Order Reports Setting page appears.
                3. Next to Order Report Type, click the radio button for the type of report you want.
                   If you are working with an integrator, they will give you the correct format to choose.
                4. Next to Order Report Schedule, pick the frequency of your reports.
                5. Click Update.


          Basic Seller Central Settings for Shipping, Taxes, and Promotions
                Your Checkout by Amazon account uses Seller Central to manage basic settings for shipping rates, tax rates, and
                promotions.
                The rates and options you set in Seller Central determine what shipping rates, tax rates, and promotions apply to
                orders processed using Checkout by Amazon. If you do not otherwise set these values (whether in the button code
                you build using overrides or by using callbacks), these values will be used to calculate shipping, tax, and promotional
                discounts.
                There are a few default settings already applied when you first create your Checkout by Amazon account, but it's a
                good idea to review them to be sure that you know what to expect when you begin accepting orders.
                                                                           Important: If you are planning to programmatically
                                                                           control these rates and settings (using overrides, callbacks,
                                                                           or third-party cart management solutions), it's still a
                                                                           good idea to review these options, because if Checkout
                                                                           by Amazon can't process the overrides you supply
                                                                           programmatically, the defaults set in Seller Central will be
                                                                           used as a backup.

          Set Your Seller Central Shipping Rates
                Follow these steps to review and set your Seller Central Shipping Rates:
                1. In Seller Central, go to Settings > Shipping Settings.
                   The Shipping Settings page appears, showing your current shipping rates.
                2. You can change the following options:
                   • Set your shipping model (per-item/weight-based or price-banded)
                   • Edit your shipping regions and service levels
                   • Set your shipping rates
                                                                           Tip: For complete information about setting shipping
                                                                           rates, please see Configure Shipping Rates & Restrictions
                                                                           in Seller Central.
Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 19



                                                               Note:
                                                               For more fine-grained shipping rates, you can use
                                                               overrides or callbacks.
                                                               Shipping rates you set in overrides or callbacks replace
                                                               existing rates set in Shipping Rates in Seller Central.

Set Your Seller Central Tax Rates
    DISCLAIMER:
    While Amazon Payments is providing you a means to determine and apply sales taxes to your transactions, we do
    not warrant that these tax amounts will fully satisfy your sales and use tax reporting obligations. For a final
    determination on these matters, please seek assistance from your tax advisor.
    Follow these steps to review and set your Seller Central Tax Rates:
    1. In Seller Central, go to Settings > Manage Taxes.
       The Manage Sales Taxes page appears, showing your current tax rates. (There are no default tax rates set up.)
    2. You can change the following options:
       • Set a tax rate for all national sales
       • Set a tax rate for an individual state or District of Columbia
                                                                 Tip: For complete information about setting tax rates,
                                                                 please see Tax Settings in Seller Central.

                                                               Note:
                                                               You can set tax rates only at the state level with the
                                                               Manage Tax feature. For more fine-grained tax rates, you
                                                               can use overrides or callbacks.
                                                               Tax rates you set with overrides or callbacks replace
                                                               existing tax rates set in Manage Taxes in Seller Central.

Set Your Seller Central Promotions
    Follow these steps to review and set your Seller Central Promotions (discounts):
    1. In Seller Central, go to Settings > Manage Promotions.
       The Manage Promotions page appears, showing your current promotions.
    2. You can change the following options:
       • Add a fixed-amount-off promotion
       • Add a percent-off promotion
       • Add a free-shipping promotion
       • Add a tiered promotion
       • Add a fixed-price promotion
                                                               Tip: For complete information about setting promotions,
                                                               please see Offer Promotions in Seller Central.

                                                               Note:
                                                               You can set promotions in Seller Central, overrides,
                                                               callbacks, or a combination of all three.
                                                               Promotions set using overrides or callbacks are additive
                                                               to the promotions set in Manage Promotions. That is, if
                                                               you have an existing promotion in Seller Central and a
                                                               promotion in your override, and both can apply to the
                                                               order, then both will be applied, resulting in a double-
                                                               discount.
20 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account




          Setting User Permissions for Your Seller Central Account
                When you first set up your Seller Central account, only the original registered user can access the features of Seller
                Central. But as time goes by, you might find that you want others to access your account. For example, you might
                want a co-worker to manage your orders or to handle your shipping confirmations. To add users or adjust user
                permissions, you use the User Permissions feature.
                Seller Central uses an invitation model to manage user accounts. First, users are invited to create an account on
                Seller Central to access your storefront; then, the account manager (also called the account administrator) configures
                the permissions for that user. By inviting users into the system and then configuring their permissions, you are
                assured that the appropriate user accounts are linked to the right owners, and that the correct permissions apply to
                the intended users. The invitation model also helps you to fully manage user accounts without assistance from an
                Amazon Payments administrator.
                To set up users, first the account manager must set up the initial account using the Checkout by Amazon registration
                process. After setting up the initial account, the account manager then compiles a list of people who can access the
                system and determines the respective rights for those users.
                At this point, the account manager is ready to invite new users to Seller Central. This invitation process takes three
                steps:
                1. The account manager sends an e-mail invitation to each user that contains a link to Seller Central.
                2. The user clicks the link and navigates to a page giving access to a unique confirmation code. At this stage, the user
                   is a pending user.
                3. The user enters the confirmation code and establishes the account. At this stage, the user is now a current user.
                After the invitation process is complete, the user has a username and password to access the system.
                The final step is for the account administrator to assign the appropriate rights to that user.
                                                                              Note: The username and password are combined
                                                                              together to identify a unique user account. For example,
                                                                              myname@isp.com + password1 and myname@isp.com +
                                                                              password2 are different user accounts.

          Step One: The Account Manager Sends the Invitation
                The first step is to invite the user.
                1. On the Settings tab, click User Permissions.
                   The User Permissions page appears.
                2. Under Add a New Seller Central User, type the e-mail address of the user you want to invite to the account.
                3. Click Send Invitation.
                   The e-mail invitation is sent to the e-mail address you specified. A confirmation message appears.
                4. Click Continue.

          Step Two: The User Receives a Confirmation Code
                After clicking the link in the invitation e-mail, the invited user navigates to a web page that asks the user to either
                sign in with an existing Amazon account or to create a new account. After this is done, a page appears containing
                a confirmation code. The user then shows or sends the confirmation code to the account manager, and the account
                manager approves the user and grants rights to the user.

          Step Three: The User Accesses Seller Central and Creates an Account
                After the account manager confirms the user, the user can go to https://sellercentral.amazon.com/ to log in to the
                account.
Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 21




Step Four: The Account Manager Sets User Permissions
    After creating the user, the account manager can edit user permissions, granting rights to any and all tools.

    1. On the Settings tab, click User Permissions.
       The User Permissions page appears.
    2. On the User Permissions page, click Edit next to the account you want to change.
       The Add or Edit User page appears.
    3. On the Add or Edit User page, click the button next to each tool you want to allow the user to access.
    4. When you are finished, click Continue.
       A confirmation message appears confirming the modifications.

                                                                 Note: The original account holder -- ithe one who first
                                                                 signed up for the account -- is always the default account
                                                                 manager. The account manager can always grant rights to
                                                                 others to be co-account managers; however, the original
                                                                 owner/account manager cannot be changed or removed.


Setting Up Your E-mail Whitelist
    E-mail is the default means of communication from Amazon Payments to you. For example, each time a customer
    places an order, we send you an order notification e-mail. We also send e-mails when there is a dispute about
    a transaction. There are other e-mails you can receive from Amazon Payments concerning your account and
    transactions.
    Because e-mail is an important means of communication, it's important that you're getting these e-mails from Amazon
    Payments. To be sure that you can receive these e-mails, you can set your e-mail client to always accept e-mails from
    Amazon Payments by adding the sender (amazon.com) to your e-mail client's "whitelist." (A whitelist is a set of
    permitted e-mail addresses that can send e-mail to you, no matter what content they send.)

Set Up Your Whitelist
    Follow these general steps to set up your e-mail client's whitelist.
                                                                 Note: These steps assume you are using Microsoft
                                                                 Outlook 2010. If you use another e-mail client, check the
                                                                 application's online help for more information.

    1. In Microsoft Outlook 2010, click Home > Junk > , and then click Junk E-mail Option.
       The Junk Mail Options box appears.
    2. Click the Safe Recipients tab, click Add, type @amazon.com, and then click OK.
       Your Safe Recipients list will look something like this:
22 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account




                   Figure 7: Junk E-mail Whitelist in Outlook 2010
                3. Click OK.


          Getting Your AWS Key
                Your AWS keys are used for signing your carts (orders) and are unique to your account. You get (and use) two
                different AWS keys:
                •   Your AWS Access Key ID (public)
                •   Your AWS Secret Access Key (private)
                For more information about signing your carts, please see Sign Your Cart on page 31.

          Get Your AWS Keys
                                                                          Important: Keep your Secret Access Key in a safe place
                                                                          -- do not share it with unauthorized people, and never
                                                                          include it in an e-mail message or in the order code you
                                                                          develop. Use the Secret Access Key only to sign orders.
                Follow these steps to get your AWS keys
                1. In Seller Central, go to Integration > Access Key.
                   The Access Key page appears, showing your Access Key ID and a placeholder for your Secret Access Key.
                2. To view your Secret Access Key, click Show.
                   Your Secret Access Key appears.


          Setting Up Your Buyer (Testing) Account
Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 23




    Before you begin taking orders on your website, you should test your order and fulfillment systems to be sure that you
    can reliably accept and fulfill orders. And when you create test orders, you must use a separate account from the one
    you use when you signed up for Checkout by Amazon.
                                                                 Note:
                                                                 For more information about testing procedures, please see
                                                                 #unique_38.
                                                                 Be sure you understand that orders placed in the
                                                                 Production environment must be either fulfilled by you
                                                                 as the merchant or canceled using the buyer account. See
                                                                 Cancel Your Test Production Order on page 40 for
                                                                 more information.

Set Up Your Buyer (Testing) Account
                                                                 Important: Do not use the same e-mail address for
                                                                 your buyer (testing) account that you are using for your
                                                                 seller or merchant account. Amazon Payments allows
                                                                 only one account per e-mail account. That is, if you use
                                                                 someone@mail.com for your seller account, don't use the
                                                                 same e-mail address when you create a new buyer (testing)
                                                                 account.
                                                                 Note: If you already have a separate buyer account
                                                                 (different than the one you used to sign up for Checkout
                                                                 by Amazon) that you use for buying on Amazon.com, you
                                                                 can skip these steps.
    Follow these steps to set up your buyer (testing) account:
    1. Go to the Amazon Payments site at https://payments.amazon.com/
    2. Click the Personal tab.
       The Personal tab page appears:




       Figure 8: The Personal tab page
    3. On the right side of the page click Create account.
       The Amazon.com Sign In page appears.
    4. Enter your e-mail address, click I am a new user, and click Sign in using our secure server.
       You should see the New to Amazon.com page. If you do not, press the Back button on your browser and be sure
       you enter an e-mail and password that you have not used before to shop on Amazon.com.
    5. Fill in the requested information and click Continue.
24 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account



                   The Sign Up for Amazon Payments page appears.
                6. Fill in the requested information and click Continue.
                7. When prompted, you can activate more services, or click Skip to continue.

                After you have signed up for an account, we'll send an e-mail to the address you supplied with instructions for you to
                confirm your new account.

          Set Up PayPhrase for Your Buyer Account
                PayPhrase is an easy-to-remember shortcut to shipping and payment information in your Amazon.com account. Your
                customers can use it for Express Checkout (including PayPhrase, 1-Click, and Express Checkout) at Amazon.com and
                across the web, including your website.
                You have two parts to setting up and using PayPhrase on your website:
                1. Set up your PayPhrase for your buyer (testing) account.
                2. Set up your website to allow PayPhrase, 1-Click, and Express Checkout.
                In this task you set up the PayPhrase for your buyer (testing) account. To learn how to enable PayPhrase, 1-Click, and
                Express Checkout on your website, see Enabling PayPhrase on Your Website on page 24.
                                                                           Tip: When you create your PayPhrase for your buyer
                                                                           (testing) account, set up approvals for your PayPhrase.
                                                                           That way, you can use the PayPhrase for test purchases but
                                                                           wait until a convenient time to either decline or approve
                                                                           the test purchases.

                1. On the Amazon Payments site, click the PayPhrase tab.
                    The Amazon PayPhrase page appears.
                2. Click the Create Your PayPhrase button.
                    The PayPhrase creation page appears.
                3. Accept the suggested PayPhrase, or enter your own.
                4. Option: click the Set up spending limits and approvals check box.
                5. Click the Next button.
                6. If you clicked the Set up spending limits and approval check box (earlier), then click the Review and approve all
                    orders before they are placed option button and click the Next button.
                7. On the Create a PIN page, enter your 4-digit PIN.
                8. Click the Claim Your PayPhrase button.
                9. Enter your shipping address and click the Use as shipping address button.
                10. Enter your payment method and click the Continue button.
                11. Select or enter a billing address and click the Use as billing address button.
                    The Your PayPhrase Is Ready to Use page appears.


          Enabling PayPhrase on Your Website
                PayPhrase is an easy-to-remember shortcut to shipping and payment information in your Amazon.com account. Your
                customers can use it for Express Checkout at Amazon.com and across the web, including your website.
                To enable PayPhrase on your website, you simply place two lines of code at the beginning of the button form you
                create as shown below:
                For Sandbox buttons (note the word "sandbox" in bold)
                <script type="text/javascript"
                src="https://images-na.ssl-images-amazon.com/images/G/01/cba/js/jquery.js">
                </script>
                <script type="text/javascript"
Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 25



src="https://images-na.ssl-images-amazon.com/images/G/01/cba/js/
widget/sandbox/widget.js">
</script>
For Production buttons
<script type="text/javascript"
src="https://images-na.ssl-images-amazon.com/images/G/01/cba/js/jquery.js">
</script>
<script type="text/javascript"
src="https://images-na.ssl-images-amazon.com/images/G/01/cba/js/widget/
widget.js">
</script>
                                        Important: The code samples in this document always
                                        show these lines of script that enable PayPhrase, 1-Click,
                                        and Express Checkout. Be sure your button code always
                                        includes these lines of code as well.
26 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account
Chapter

2
Integrating with Checkout by Amazon
Topics:                             Integrating your website with Checkout by Amazon requires that you build
                                    and test your buttons (and checkout process) in the Sandbox as well as in
•   Steps to Integrating Checkout   Production.
    by Amazon with Your Website
                                    The following section is a step-by-step procedure to create working checkout
•   Integration Touch Points        buttons, from your test buttons that you build and use in the Sandbox to
•   Sandbox Setup                   working buttons you build and use on in Production.
•   Production Setup
•   Additional Setup Tips
•   Set Up for Your Mobile-
    Optimized Website
28 | Checkout by Amazon | Integrating with Checkout by Amazon




          Steps to Integrating Checkout by Amazon with Your Website
                Here are the steps you'll follow to integrate with Checkout by Amazon:
                1. Create the cart using Sandbox URLs.
                2. Sign the cart (optional).
                3. Add the optional signature to the Sandbox Standard Checkout Widget.
                4. Place the resulting Sandbox Standard Checkout Widget on your test web page.
                5. Test the Sandbox order using your buyer account (complete the checkout in the Sandbox).
                6. Create the cart using Production URLs.
                7. Sign the cart (optional).
                8. Base64-encode the cart.
                9. Add the optional signature to the Production Standard Checkout Widget.
                10. Place the Production Standard Checkout Widget on your test web page.
                11. Test the Production order using your buyer account (complete the purchase in Production).
                12. Cancel the Production order on Amazon Payments site using your buyer account login.
                13. Place the Production-mode Standard Checkout Widget on your website.
                                                                          Note: The Standard Checkout Widget renders the
                                                                          Checkout button. Please refer to the Checkout by Amazon
                                                                          Widget Reference Guide for details on using the Standard
                                                                          Checkout Widget, and for information on how to set up
                                                                          widgets on your web page.


          Integration Touch Points
                This image illustrates the path for integration as well as the "touch points" between the merchant and Amazon
                Payments.
Checkout by Amazon | Integrating with Checkout by Amazon | 29




Figure 9: Integration Touch Points
There are three main steps in the checkout workflow:
1. The customer places the order with the merchant.
2. The merchant processes the order with Amazon Payments using Checkout by Amazon. This step includes
   fulfilling (shipping) the order. When an order is marked as "shipped," the customer's account is charged.
3. The merchant manages the payments made to their merchant account.
During this process, there are several steps taking place:
1.  When the customer places an order, a checkout request is sent to Amazon Payments.
2.  This generates a callback request to the merchant (if callbacks are enabled).
3.  The merchant sends back a callback response with the requested data.
4.  Amazon Payments sends the customer to the specified "Thank You" page.
5.  Amazon Payments sends a New Order Notification.
6.  When the payment method from customer is processed, Amazon Payments sends an Order Ready for Fulfillment
    Notification.
7. The merchant pulls (views or downloads) the Order Report
8. The merchant notifies Amazon Payments that the order is fulfilled. At this point, Amazon Payments charges the
    customer's payment method.
9. Amazon Payments settles payment to the merchant's bank account.
10. The merchant pulls (views or downloads) the Settlement (Payment) Report.
30 | Checkout by Amazon | Integrating with Checkout by Amazon




          Sandbox Setup

          Create a Sandbox Cart Using HTML
                Building a Sandbox cart lets you create test orders.
                A simple HTML-based cart contains following elements:

                Table 2: Simple HTML Cart Elements

                       Input name*                             Description                               Required
                       item_merchant_id_n                      14-character alphanumeric                 Yes
                                                               string
                                                               Get from Settings > Account
                                                               Info > Checkout Pipeline
                                                               Settings

                       item_sku_n                              Stock-keeping Unit ID for the             Yes. If using Fulfillment by
                                                               item. 1-250 characters.                   Amazon, the SKUs must
                                                                                                         match
                       item_title_n                            Name of Item                              Yes
                                                               1 - 250 alphanumeric
                                                               characters only

                       item_price_n                            Cost of item                              Yes
                                                               0.01 - 999.99

                       item_quantity_n                         Number of items                           Yes
                       item_currency_code                      Type of currency                          Yes
                                                               Only "USD" accepted

                       merchant_signature                      Calculated value of the cart              Yes, if signed carts are
                                                                                                         required.
                                                               Base64-encoded

                       aws_access_key_id                       AWS Access Key ID (public                 Yes, if signed carts are
                                                               key)                                      required and you are using the
                                                                                                         AWS-provided signing keys.
                       certificate                             X.509 certificate (public key)            Yes, if signed carts are
                                                                                                         required and you are using
                                                                                                         X.509 certificates.

                                                                              Note: *"_n" for an input name represents the integer
                                                                              value of the item number. The first item is _1, the second
                                                                              is _2, and so on.
                The following is an example of a simple Sandbox cart using HTML (line breaks added for clarity):
                <html>
                ...
                <head>
                <script language=javascript src="https://payments-sandbox.amazon.com/cba/js/
                PaymentWidgets.js">
Checkout by Amazon | Integrating with Checkout by Amazon | 31



    </script>
    ...
    </head>
    <body>
    ...
    <!-- Form fields that describe Cart -->
    <form id="CBACartFormId">
       <input name="item_merchant_id_1" value="AEIOU1234AEIOU" type="hidden" />
       <input name="item_sku_1" value="ABC123" type="hidden" />
       <input name="item_title_1" value="Red Fish" type="hidden" />
       <input name="item_price_1" value="19.99"type="hidden" />
       <input name="item_quantity_1" value="1" type="hidden" />
       <input name="currency_code" value="USD" type="hidden" />
       <input name="merchant_signature"
      value="c2lnbmF0dXJlIGZvciBDaGVja291dCBieSBBbWF6b24" type="hidden" />
       <input name="aws_access_key_id" value="19G7E7X2QE2V45LETX2E" type="hidden" /
    >
    </form>

    <div id="cbaButton1"/>
    <script>
      new CBA.Widgets.StandardCheckoutWidget({
        merchantId:'AEIOU1234AEIOU',
        orderInput: {format: "HTML",
                     value: "CBACartFormId"},
        buttonSettings: {size:'large',color:'orange',background:'white'}
        }).render("cbaButton1");
    </script>
    ...

    ...
    </body>
    </html>
                                                              Note:
                                                              Be sure the input fields are hidden.
                                                              Do not use the HTML FORM POST command on this
                                                              form. The hidden input fields are accessed by the Standard
                                                              Checkout Widget.

Sign Your Cart
    To generate a signature, you need a set of signing-key pairs. By default, your Checkout by Amazon account supplies
    you with a set of AWS Access Keys, the Access Key ID (the public key) and the Secret Access Key (the private key).
    See Getting Your AWS Key on page 22 for steps to take to get your AWS Access Keys.
                                                              Note: You can also use an X.509 certificate that's
                                                              associated with your Checkout by Amazon account.

    Signing an HTML-based cart requires you to convert the cart content to name-value pairs, URL-encode the pairs, sort
    the pairs, and then concatenate the name-value pairs.
    After you sign the cart, you encode the resulting signature using base64, then add the signature to your HTML form
    using the key "merchant_signature" with the value set to the calculated signature.
                                                              Note: The HTML cart has its input values in plain text;
                                                              only the signature is base64-encoded.

    Follow these steps to sign your HTML-based carts
    1. Get your AWS Access Keys or X.509 certificate.
    2. Change your HTML input entries to name-value pairs.
32 | Checkout by Amazon | Integrating with Checkout by Amazon



                   For example, given the cart used in the example earlier, your name-value pairs would look like this (line breaks
                   added for clarity):
                   item_merchant_id_1=AEIOU1234AEIOU
                   item_sku_1=ABC123
                   item_title_1=Red Fish
                   item_price_1=19.99
                   item_quantity_1=1
                   currency_code=USD
                   aws_access_key_id=VWXYZ9876VWXYZ
                3. Sort your cart input entries.
                   Here is an example of the sorted HTML content (line breaks added for clarity):
                   aws_access_key_id=VWXYZ9876VWXYZ
                   currency_code=USD
                   item_merchant_id_1=AEIOU1234AEIOU
                   item_price_1=19.99
                   item_quantity_1=1
                   item_sku_1=ABC123
                   item_title_1=Red Fish
                4. URL-encode the name-value pairs values.
                   The URL-encoded result will look like this (line breaks addded for clarity):
                   aws_access_key_id=VWXYZ9876VWXYZ
                   currency_code=USD
                   item_merchant_id_1=AEIOU1234AEIOU
                   item_price_1=19.99
                   item_quantity_1=1
                   item_sku_1=ABC123
                   item_title_1=Red%20Fish
                5. Concatenate the URL-encoded name-value pairs using the ampersand "&" character.
                   The concatenated cart will look like this (line breaks added for clarity):
                   aws_access_key_id=VWXYZ9876VWXYZ
                   &currency_code=USD
                   &item_merchant_id_1=AEIOU1234AEIOU
                   &item_price_1=19.99
                   &item_quantity_1=1
                   &item_sku_1=ABC123
                   &item_title_1=Red%20Fish&
                                                                             Note: Be sure to include the "&" at the end of the
                                                                             concatenated cart.
                6. Using the programming language of your choice, sign the concatenated HTML with your AWS or X.509 private
                   signing key.
                7. Using the programming language of your choice, base64-encode the resulting signature.
                The resulting encoded signature will look something like this:

                0nppbXTktfoV80Kh41GK7ruUhq8=

          Add the Signature to the Cart
                You can add one of two types of signatures to your cart.
                Table 3: Signature Input Entries
                       Signature type                         Input entry
                       AWS Access Keys                        <input name="aws_access_key_id"
                                                              value="YOUR_MERCHANT_ACCESSKEY" type="hidden" />
                       X.509 certificate                      <input name="aws_key_pair" value="YOUR_X509_CERTIFICATE"
                                                              type="hidden" />

                Follow these steps to add the signature to the HTML form.
Checkout by Amazon | Integrating with Checkout by Amazon | 33



      Add to the INPUT tag the following values:
      <input name="merchant_signature" value="[Signature value]" type="hidden" />

      <input name="aws_access_key_id" value="[AWS Access Key ID Value]"
       type="hidden" />
   Your form should look like the following:
   <!-- Form fields that describe Cart -->
   <form id="CBACartFormId">
      <input name="item_merchant_id_1" value="AEIOU1234AEIOU" type="hidden" />
      <input name="item_sku_1" value="ABC123" type="hidden" />
      <input name="item_title_1" value="Red Fish" type="hidden" />
      <input name="item_price_1" value="19.99"type="hidden" />
      <input name="item_quantity_1" value="1" type="hidden" />
      <input name="currency_code" value="USD" type="hidden" />
      <input name="merchant_signature"
     value="c2lnbmF0dXJlIGZvciBDaGVja291dCBieSBBbWF6b24" type="hidden" />
      <input name="aws_access_key_id" value="19G7E7X2QE2V45LETX2E" type="hidden" /
   >
   </form>

Place the Sandbox Checkout Button Code on Your Test Webpage
   When you have built the HTML code for the cart, concatenated it and signed it (if you accept only signed carts),
   and base64-encoded the optional signature (if you accept only signed carts), you add the resulting cart content (and
   optional signature) to an HTML form that displays the Checkout button.
   For example, given the example earlier, the resulting code will look something like this (note that line breaks are for
   ease of reading):
   <!-- Form fields that describe Cart -->
   <form id="CBACartFormId">
      <input name="item_merchant_id_1" value="AEIOU1234AEIOU" type="hidden" />
      <input name="item_sku_1" value="ABC123" type="hidden" />
      <input name="item_title_1" value="Red Fish" type="hidden" />
      <input name="item_price_1" value="19.99"type="hidden" />
      <input name="item_quantity_1" value="1" type="hidden" />
      <input name="currency_code" value="USD" type="hidden" />
      <input name="merchant_signature"
     value="c2lnbmF0dXJlIGZvciBDaGVja291dCBieSBBbWF6b24" type="hidden" />
      <input name="aws_access_key_id" value="19G7E7X2QE2V45LETX2E" type="hidden" /
   >
   </form>
   The complete HTML form will look something like this:
   <html>
   ...
   <head>
   <script language=javascript src="https://payments-sandbox.amazon.com/cba/js/
   PaymentWidgets.js">
   </script>
   ...
   </head>
   <body>
   ...
   <!-- Form fields that describe Cart -->
   <form id="CBACartFormId">
     <input name="item_merchant_id_1" value="AEIOU1234AEIOU" type="hidden" />
     <input name="item_sku_1" value="ABC123" type="hidden" />
     <input name="item_title_1" value="Red Fish" type="hidden" />
     <input name="item_price_1" value="19.99"type="hidden" />
     <input name="item_quantity_1" value="1" type="hidden" />
     <input name="currency_code" value="USD" type="hidden" />
34 | Checkout by Amazon | Integrating with Checkout by Amazon



                  <input name="merchant_signature"
                 value="c2lnbmF0dXJlIGZvciBDaGVja291dCBieSBBbWF6b24" type="hidden" />
                  <input name="aws_access_key_id" value="19G7E7X2QE2V45LETX2E" type="hidden" /
                >
                </form>
                ...
                <div id="cbaButton1"/>
                <script>
                  new CBA.Widgets.StandardCheckoutWidget({
                    merchantId:'AEIOU1234AEIOU',
                    orderInput: {format: "HTML",
                                 value: "CBACartFormId"},
                    buttonSettings: {size:'large',color:'orange',background:'white'}
                    }).render("cbaButton1");
                </script>
                ...

                ...
                </body>
                </html>
                Now place this code on the test webpage where you want the Sandbox Checkout button to appear.
                                                                          Note:
                                                                          Your checkout button and cart code must contain the lines
                                                                          of JavaScript as shown in the example above.
                                                                          For a complete list of button styles, please see Button
                                                                          Styles.
                                                                          Do not mix Sandbox and Production buttons on the same
                                                                          page.

          Test Your Sandbox Button by Placing a Test Order
                Now that you have created a Sandbox Checkout button and placed it on a test web page, you're ready to test it.
                                                                          Note: Remember, you must use your Buyer (Test)
                                                                          Account to test buying items, even if you buy items in the
                                                                          Sandbox.
                                                                          Note: Orders you place using Sandbox buttons are
                                                                          never charged. This means your Buyer (Test) Account
                                                                          will not receive a confirmation e-mail, and your Seller
                                                                          Account will not receive any notification on the sale. You
                                                                          can, however, track Sandbox orders in Seller Central by
                                                                          searching for "Pending Orders." For more information
                                                                          about how to do so, please see Managing Orders.
                When you test a Sandbox button, you test for the following exit criteria:
                • Clicking the Sandbox Checkout button starts the checkout process.
                • If you use your Buyer (Test) Account's PayPhrase, the checkout window on your site appears.
                • If you bypass using your PayPhrase and sign in using your Buyer (Test) Account, you can proceed through the
                   checkout pipeline without failure.
                • When you come to a page that displays a Place order button, clicking the button delivers a message that the order
                   was placed.
                • Using your Seller Account in Seller Central, you can find the pending order on the Manage Orders page.
                Follow these steps to place test orders in the Sandbox.
                1. Open your web browser and go the URL for your test web page.
                2. Click the Sandbox Checkout button you just created.
                3. If you are using your Buyer Account PayPhrase, enter your PayPhrase and click the button to continue.
Checkout by Amazon | Integrating with Checkout by Amazon | 35



    4. If you are bypassing your PayPhrase, then when prompted, sign in using your Buyer (Test) Account credentials
       In some cases you might not be prompted to sign in if you've recently made a purchase using your Buyer (Test)
       Account on the computer you're using for testing.
    5. If you are bypassing your PayPhrase, then when prompted, select the shipping address and credit card you want to
       use for the purchase.
       Depending upon your Buyer (Test) Account settings, you might not be prompted for this information.
    6. At the confirmation page, review the information to be sure it's accurate.
       Make sure the shipping, tax, and promotional discount information is correct.
    7. Click the Place this order button to complete the Sandbox purchase.
       Remember, although you will see a confirmation message, your Buyer (Test) Account will not get a confirmation
       e-mail, because Sandbox transactions do not become orders.


Production Setup

Create a Production Cart Using HTML
    Building a Production cart lets you create real orders; that is, orders that are processed, charged, and fulfilled.
    A simple HTML-based cart contains following elements:

    Table 4: Simple HTML Cart Elements
           Input name*                              Description                               Required
           item_merchant_id_n                       14-character alphanumeric                 Yes
                                                    string
                                                    Get from Settings > Account
                                                    Info > Checkout Pipeline
                                                    Settings

           item_sku_n                               Stock-keeping Unit ID for the             Yes. If using Fulfillment by
                                                    item. 1-250 characters.                   Amazon, the SKUs must
                                                                                              match
           item_title_n                             Name of Item                              Yes
                                                    1 - 250 alphanumeric
                                                    characters only

           item_price_n                             Cost of item                              Yes
                                                    0.01 - 999.99

           item_quantity_n                          Number of items                           Yes
           item_currency_code                       Type of currency                          Yes
                                                    Only "USD" accepted

           merchant_signature                       Calculated value of the cart              Yes, if signed carts are
                                                                                              required.
                                                    Base64-encoded

           aws_access_key_id                        AWS Access Key ID (public                 Yes, if signed carts are
                                                    key)                                      required and you are using the
                                                                                              AWS-provided signing keys.
           certificate                              X.509 certificate (public key)            Yes, if signed carts are
                                                                                              required and you are using
                                                                                              X.509 certificates.
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml
Implementation guidehtml

More Related Content

What's hot

Artromick Ac Hostguide304 for Hospital Computing Solutions
Artromick Ac Hostguide304 for Hospital Computing SolutionsArtromick Ac Hostguide304 for Hospital Computing Solutions
Artromick Ac Hostguide304 for Hospital Computing SolutionsArtromick
 
Verio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server HandbookVerio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server Handbookwebhostingguy
 
Commonwealth Life Perusahaan Asuransi Jiwa Terbaik Indonesia
Commonwealth Life Perusahaan Asuransi Jiwa Terbaik IndonesiaCommonwealth Life Perusahaan Asuransi Jiwa Terbaik Indonesia
Commonwealth Life Perusahaan Asuransi Jiwa Terbaik IndonesiaBen Seo
 
Manual de programacion PLC Crouzet Millenium
Manual de programacion PLC Crouzet MilleniumManual de programacion PLC Crouzet Millenium
Manual de programacion PLC Crouzet MilleniumJosé Luis Lozoya Delgado
 
Dreamweaver reference
Dreamweaver referenceDreamweaver reference
Dreamweaver referencetausif9975
 
E views 6 users guide i
E views 6 users guide iE views 6 users guide i
E views 6 users guide iAdi Irawan
 
BT Home Smartphone Digital Cordless Telephone User Guide
BT Home Smartphone Digital Cordless Telephone User GuideBT Home Smartphone Digital Cordless Telephone User Guide
BT Home Smartphone Digital Cordless Telephone User GuideTelephones Online
 
Paladin Network Administrators Guide
Paladin Network Administrators GuidePaladin Network Administrators Guide
Paladin Network Administrators Guidehanniw79
 
Call pilot call center setup and operation
Call pilot call center setup and operationCall pilot call center setup and operation
Call pilot call center setup and operationkyawzay htet
 
Qs2 consultants manual
Qs2 consultants manualQs2 consultants manual
Qs2 consultants manualkhayer
 
Kindle User Guide
Kindle User Guide Kindle User Guide
Kindle User Guide Shawn Gross
 

What's hot (15)

Artromick Ac Hostguide304 for Hospital Computing Solutions
Artromick Ac Hostguide304 for Hospital Computing SolutionsArtromick Ac Hostguide304 for Hospital Computing Solutions
Artromick Ac Hostguide304 for Hospital Computing Solutions
 
Verio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server HandbookVerio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server Handbook
 
Commonwealth Life Perusahaan Asuransi Jiwa Terbaik Indonesia
Commonwealth Life Perusahaan Asuransi Jiwa Terbaik IndonesiaCommonwealth Life Perusahaan Asuransi Jiwa Terbaik Indonesia
Commonwealth Life Perusahaan Asuransi Jiwa Terbaik Indonesia
 
End note
End noteEnd note
End note
 
E sword guide-1006
E sword guide-1006E sword guide-1006
E sword guide-1006
 
Manual de programacion PLC Crouzet Millenium
Manual de programacion PLC Crouzet MilleniumManual de programacion PLC Crouzet Millenium
Manual de programacion PLC Crouzet Millenium
 
Windows XP Registry Guide
Windows XP Registry GuideWindows XP Registry Guide
Windows XP Registry Guide
 
Dreamweaver reference
Dreamweaver referenceDreamweaver reference
Dreamweaver reference
 
E views 6 users guide i
E views 6 users guide iE views 6 users guide i
E views 6 users guide i
 
BT Home Smartphone Digital Cordless Telephone User Guide
BT Home Smartphone Digital Cordless Telephone User GuideBT Home Smartphone Digital Cordless Telephone User Guide
BT Home Smartphone Digital Cordless Telephone User Guide
 
Paladin Network Administrators Guide
Paladin Network Administrators GuidePaladin Network Administrators Guide
Paladin Network Administrators Guide
 
Call pilot call center setup and operation
Call pilot call center setup and operationCall pilot call center setup and operation
Call pilot call center setup and operation
 
Qs2 consultants manual
Qs2 consultants manualQs2 consultants manual
Qs2 consultants manual
 
Kindle User Guide
Kindle User Guide Kindle User Guide
Kindle User Guide
 
Ppm7.5 cmd tokval
Ppm7.5 cmd tokvalPpm7.5 cmd tokval
Ppm7.5 cmd tokval
 

Viewers also liked

New book 07_13_10_revised_final
New book 07_13_10_revised_finalNew book 07_13_10_revised_final
New book 07_13_10_revised_finalJoenard Gamao
 
Nadiah chemistry
Nadiah chemistryNadiah chemistry
Nadiah chemistryNajaa Fuad
 
всё что вы хотели знать о Zend certified
всё что вы хотели знать о Zend certifiedвсё что вы хотели знать о Zend certified
всё что вы хотели знать о Zend certifiedYuri Afanasiev
 
раскрываем магию My sql или о строгости и мягкости mysql
раскрываем магию My sql или о строгости и мягкости mysqlраскрываем магию My sql или о строгости и мягкости mysql
раскрываем магию My sql или о строгости и мягкости mysqlYuri Afanasiev
 
OCTO_TheWebGiants_2016
OCTO_TheWebGiants_2016OCTO_TheWebGiants_2016
OCTO_TheWebGiants_2016Stephen PERIN
 
WP-Digital-Banking-EN-HD
WP-Digital-Banking-EN-HDWP-Digital-Banking-EN-HD
WP-Digital-Banking-EN-HDStephen PERIN
 
самара космическая верфь россии(гагаринцы)
самара   космическая верфь россии(гагаринцы)самара   космическая верфь россии(гагаринцы)
самара космическая верфь россии(гагаринцы)Lopatino
 
Company Profile Arminareka Perdana
Company Profile Arminareka PerdanaCompany Profile Arminareka Perdana
Company Profile Arminareka PerdanaRamdjan Edition
 

Viewers also liked (15)

WORK SMART
WORK SMARTWORK SMART
WORK SMART
 
New book 07_13_10_revised_final
New book 07_13_10_revised_finalNew book 07_13_10_revised_final
New book 07_13_10_revised_final
 
Nadiah chemistry
Nadiah chemistryNadiah chemistry
Nadiah chemistry
 
Git First Steps
Git First StepsGit First Steps
Git First Steps
 
Asenso de los no identificados
Asenso de los no identificadosAsenso de los no identificados
Asenso de los no identificados
 
Asenso de los no identificados
Asenso de los no identificadosAsenso de los no identificados
Asenso de los no identificados
 
Asenso de los no identificados
Asenso de los no identificadosAsenso de los no identificados
Asenso de los no identificados
 
всё что вы хотели знать о Zend certified
всё что вы хотели знать о Zend certifiedвсё что вы хотели знать о Zend certified
всё что вы хотели знать о Zend certified
 
раскрываем магию My sql или о строгости и мягкости mysql
раскрываем магию My sql или о строгости и мягкости mysqlраскрываем магию My sql или о строгости и мягкости mysql
раскрываем магию My sql или о строгости и мягкости mysql
 
OCTO_TheWebGiants_2016
OCTO_TheWebGiants_2016OCTO_TheWebGiants_2016
OCTO_TheWebGiants_2016
 
WP-Digital-Banking-EN-HD
WP-Digital-Banking-EN-HDWP-Digital-Banking-EN-HD
WP-Digital-Banking-EN-HD
 
Desigualad
DesigualadDesigualad
Desigualad
 
самара космическая верфь россии(гагаринцы)
самара   космическая верфь россии(гагаринцы)самара   космическая верфь россии(гагаринцы)
самара космическая верфь россии(гагаринцы)
 
Company Profile Arminareka Perdana
Company Profile Arminareka PerdanaCompany Profile Arminareka Perdana
Company Profile Arminareka Perdana
 
Zima staf-1 m
Zima staf-1 mZima staf-1 m
Zima staf-1 m
 

Similar to Implementation guidehtml

Parallels Plesk Panel 9 Reseller's Guide
Parallels Plesk Panel 9 Reseller's GuideParallels Plesk Panel 9 Reseller's Guide
Parallels Plesk Panel 9 Reseller's Guidewebhostingguy
 
Xi3 ds administrators_guide_en
Xi3 ds administrators_guide_enXi3 ds administrators_guide_en
Xi3 ds administrators_guide_enSarat Reddy
 
Parallels Business Automation - Standard Provider Guide
Parallels Business Automation - Standard Provider GuideParallels Business Automation - Standard Provider Guide
Parallels Business Automation - Standard Provider Guidewebhostingguy
 
Verio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server HandbookVerio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server Handbookwebhostingguy
 
Verio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server HandbookVerio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server Handbookwebhostingguy
 
Mvc music store tutorial - v3.0
Mvc music store   tutorial - v3.0Mvc music store   tutorial - v3.0
Mvc music store tutorial - v3.0mahmud467
 
Mvc music store tutorial - v3.0
Mvc music store   tutorial - v3.0Mvc music store   tutorial - v3.0
Mvc music store tutorial - v3.0lookzlook
 
Verio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server HandbookVerio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server Handbookwebhostingguy
 
Salesforce creating on_demand_apps
Salesforce creating on_demand_appsSalesforce creating on_demand_apps
Salesforce creating on_demand_appswillsco
 
Na vsc install
Na vsc installNa vsc install
Na vsc installAccenture
 
Getting started with sales logix
Getting started with sales logixGetting started with sales logix
Getting started with sales logixSolar2012
 
Configuration Guide for Domestic Outbound Transportation.pdf
Configuration Guide for Domestic Outbound Transportation.pdfConfiguration Guide for Domestic Outbound Transportation.pdf
Configuration Guide for Domestic Outbound Transportation.pdfAlexRod23
 
ADMINISTRATION GUIDE PUBLIC Employee Central Imports THE BEST RUN Content
ADMINISTRATION GUIDE   PUBLIC Employee Central Imports THE BEST RUN ContentADMINISTRATION GUIDE   PUBLIC Employee Central Imports THE BEST RUN Content
ADMINISTRATION GUIDE PUBLIC Employee Central Imports THE BEST RUN ContentAngela Tyger
 
Sonic os standard_3_9_administrators_guide
Sonic os standard_3_9_administrators_guideSonic os standard_3_9_administrators_guide
Sonic os standard_3_9_administrators_guideAshwani Singh
 
PANOS 4.1 Administrators Guide
PANOS 4.1 Administrators GuidePANOS 4.1 Administrators Guide
PANOS 4.1 Administrators GuideAltaware, Inc.
 
Epo 450 product_guide_en-us
Epo 450 product_guide_en-usEpo 450 product_guide_en-us
Epo 450 product_guide_en-uslvaloto
 

Similar to Implementation guidehtml (20)

Parallels Plesk Panel 9 Reseller's Guide
Parallels Plesk Panel 9 Reseller's GuideParallels Plesk Panel 9 Reseller's Guide
Parallels Plesk Panel 9 Reseller's Guide
 
Reseller's Guide
Reseller's GuideReseller's Guide
Reseller's Guide
 
Xi3 ds administrators_guide_en
Xi3 ds administrators_guide_enXi3 ds administrators_guide_en
Xi3 ds administrators_guide_en
 
Parallels Business Automation - Standard Provider Guide
Parallels Business Automation - Standard Provider GuideParallels Business Automation - Standard Provider Guide
Parallels Business Automation - Standard Provider Guide
 
Verio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server HandbookVerio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server Handbook
 
Verio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server HandbookVerio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server Handbook
 
Mvc music store tutorial - v3.0
Mvc music store   tutorial - v3.0Mvc music store   tutorial - v3.0
Mvc music store tutorial - v3.0
 
Mvc music store tutorial - v3.0
Mvc music store   tutorial - v3.0Mvc music store   tutorial - v3.0
Mvc music store tutorial - v3.0
 
Verio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server HandbookVerio Web Hosting Virtual Server Handbook
Verio Web Hosting Virtual Server Handbook
 
Salesforce creating on_demand_apps
Salesforce creating on_demand_appsSalesforce creating on_demand_apps
Salesforce creating on_demand_apps
 
Na vsc install
Na vsc installNa vsc install
Na vsc install
 
C01631241
C01631241C01631241
C01631241
 
Getting started with sales logix
Getting started with sales logixGetting started with sales logix
Getting started with sales logix
 
Configuration Guide for Domestic Outbound Transportation.pdf
Configuration Guide for Domestic Outbound Transportation.pdfConfiguration Guide for Domestic Outbound Transportation.pdf
Configuration Guide for Domestic Outbound Transportation.pdf
 
ADMINISTRATION GUIDE PUBLIC Employee Central Imports THE BEST RUN Content
ADMINISTRATION GUIDE   PUBLIC Employee Central Imports THE BEST RUN ContentADMINISTRATION GUIDE   PUBLIC Employee Central Imports THE BEST RUN Content
ADMINISTRATION GUIDE PUBLIC Employee Central Imports THE BEST RUN Content
 
Citrix admin
Citrix adminCitrix admin
Citrix admin
 
Certifications
CertificationsCertifications
Certifications
 
Sonic os standard_3_9_administrators_guide
Sonic os standard_3_9_administrators_guideSonic os standard_3_9_administrators_guide
Sonic os standard_3_9_administrators_guide
 
PANOS 4.1 Administrators Guide
PANOS 4.1 Administrators GuidePANOS 4.1 Administrators Guide
PANOS 4.1 Administrators Guide
 
Epo 450 product_guide_en-us
Epo 450 product_guide_en-usEpo 450 product_guide_en-us
Epo 450 product_guide_en-us
 

Implementation guidehtml

  • 1. Standard Checkout HTML Implementation Guide U.S. Version 2010-09-15
  • 2. 2 | Checkout by Amazon | Introduction
  • 3. Checkout by Amazon | TOC | 3 Contents Overview of Checkout by Amazon...................................................................................................................... 5 Who Should Read This Document...........................................................................................................5 Prerequisites............................................................................................................................................. 5 Your Tasks When Using Checkout by Amazon...................................................................................... 5 Other Documentation............................................................................................................................... 5 What's New in This Document.................................................................................................................6 Chapter 1: Setting Up Your Checkout by Amazon Account.......................9 Signing Up for Checkout by Amazon.................................................................................................... 10 Logging In to Your Checkout by Amazon Account.............................................................................. 10 Log In to Seller Central.............................................................................................................. 10 Your Sandbox and Production Settings................................................................................................. 11 Switching Between Production and the Sandbox...................................................................... 13 Your Account and Your Info & Policies................................................................................................13 Set Up Your Account Settings................................................................................................... 13 Set Up Your Info & Policies Settings........................................................................................ 15 Your Checkout Pipeline Settings........................................................................................................... 16 Set the Return URLs.................................................................................................................. 17 Toggle the Shopping Cart Security............................................................................................ 17 Set the Integration URLs............................................................................................................17 Set the Order Report Type and Frequency.................................................................................18 Basic Seller Central Settings for Shipping, Taxes, and Promotions...................................................... 18 Set Your Seller Central Shipping Rates..................................................................................... 18 Set Your Seller Central Tax Rates............................................................................................. 19 Set Your Seller Central Promotions........................................................................................... 19 Setting User Permissions for Your Seller Central Account................................................................... 20 Step One: The Account Manager Sends the Invitation.............................................................. 20 Step Two: The User Receives a Confirmation Code................................................................. 20 Step Three: The User Accesses Seller Central and Creates an Account....................................20 Step Four: The Account Manager Sets User Permissions..........................................................21 Setting Up Your E-mail Whitelist.......................................................................................................... 21 Set Up Your Whitelist................................................................................................................ 21 Getting Your AWS Key......................................................................................................................... 22 Get Your AWS Keys..................................................................................................................22 Setting Up Your Buyer (Testing) Account............................................................................................ 22 Set Up Your Buyer (Testing) Account.......................................................................................23 Set Up PayPhrase for Your Buyer Account............................................................................... 24 Enabling PayPhrase on Your Website................................................................................................... 24 Chapter 2: Integrating with Checkout by Amazon.................................... 27 Steps to Integrating Checkout by Amazon with Your Website ............................................................ 28 Integration Touch Points........................................................................................................................ 28 Sandbox Setup........................................................................................................................................30 Create a Sandbox Cart Using HTML......................................................................................... 30 Sign Your Cart........................................................................................................................... 31 Add the Signature to the Cart..................................................................................................... 32 Place the Sandbox Checkout Button Code on Your Test Webpage.......................................... 33 Test Your Sandbox Button by Placing a Test Order.................................................................. 34 Production Setup.................................................................................................................................... 35
  • 4. 4 | Checkout by Amazon | TOC Create a Production Cart Using HTML..................................................................................... 35 Sign Your Cart........................................................................................................................... 36 Add the Signature to the Cart..................................................................................................... 37 Place the Production Checkout Button Code on Your Test Webpage....................................... 38 Test Your Production Button by Placing a Test Order.............................................................. 39 Cancel Your Test Production Order...........................................................................................40 Place the Production Checkout Button Code on Your Live Web page..................................... 41 Additional Setup Tips.............................................................................................................................41 Set Up for Your Mobile-Optimized Website......................................................................................... 44 Enabling Checkout by Amazon on Your Mobile-Optimized Website...................................... 44 The Customer Experience on a Mobile-Optimized Website..................................................... 44 Chapter 3: Handling Settlements................................................................. 47 Chapter 4: Post-Setup Exit Criteria.............................................................49 Exit Criteria............................................................................................................................................ 50 Ten Types of Test Transactions............................................................................................................. 50 Order Options Used When Testing Transactions...................................................................................50 Chapter 5: Cart and Button Customizations.............................................. 51 Using Cart Overrides..............................................................................................................................52 Shipping Overrides.....................................................................................................................52 Tax Overrides............................................................................................................................. 54 Promotions Overrides.................................................................................................................56 Flexible Shipping Options......................................................................................................................58 Customer Experience................................................................................................................. 58 Merchant Experience..................................................................................................................59 Service Levels and Custom Shipping Levels............................................................................. 62 Using Flexible Ship Options with HTML-based Carts.............................................................. 63 Modifying Button Styles........................................................................................................................ 64 Additional Checkout by Amazon Features............................................................................................ 65 Appendix A: Code Samples...........................................................................67 Signing Carts.......................................................................................................................................... 68 Post-Order Management Using SOAP...................................................................................................68 Callback API.......................................................................................................................................... 68 Instant Order Processing Notification API.............................................................................................68 Appendix B: Button Styles............................................................................ 71 White Background..................................................................................................................................72 Light Background...................................................................................................................................73 Dark Background................................................................................................................................... 74 Appendix C: HTML Definitions...................................................................77 Definition Tables....................................................................................................................................78
  • 5. Overview of Checkout by Amazon Welcome to the Standard Checkout - HTML Implementation Guide. This section describes who should read this guide, how the guide is organized, and other resources related to Checkout by Amazon. Who Should Read This Document This document gives you the information and steps you need to integrate your website with Checkout by Amazon. Before you begin integration, you must decide what method you will use to integrate: using the Create Checkout Button page in Seller Central, using HTML-based code you build yourself, or using XML-based code you build yourself. • If you want to integrate with buttons you build using the Create Checkout button page, then please download and read the Standard Checkout - Button Creation Wizard Implementation Guide. • If you want to integrate building your own XML-based code, then please download and read the Standard Checkout - XML Implementation Guide. • If you want to integrate building your own HTML-based code, then please continue reading this document. Prerequisites This guide assumes you--or your development staff--are familiar with using HTML in an application development environment. Before you can use Checkout by Amazon, your systems must meet the following prerequisites: • You must have a shopping cart on your site and make it available for processing using HTML. (That is, no matter what tool you use to build your shopping cart, you must be able to send it as HTML for processing.) • You must be familiar with using JavaScript. (There are several required JavaScript code snippets that you must use in your carts to enable Standard Checkout) Your Tasks When Using Checkout by Amazon You have four basic tasks to accomplish when using Checkout by Amazon on your site: 1. Set up your Checkout by Amazon account. 2. Complete your Seller Central settings. 3. Integrate your site with Checkout by Amazon. 4. Test and sign off your integration. The rest of this document discusses how to accomplish these tasks. Other Documentation You can read our downloadable PDFs to understand more about Checkout by Amazon. More Resources for Checkout by Amazon Resource Audience, Purpose, and Goals
  • 6. 6 | Checkout by Amazon | Overview of Checkout by Amazon Getting Started Guide For merchants who want to use a simple, step-by- step approach in setting up Checkout by Amazon on their websites. The Getting Started Guide walks merchants through the process, from gathering the required information for signing up for an account to setting up a button on their websites. Standard Checkout - Button Creation Wizard For merchants and developers who want a Implementation Guide detailed list of ways to integrate their website with Checkout by Amazon. The Implementation Guide Standard Checkout - HTML Implementation Guide provides the information needed for programming and code development. Note that there are three Standard Checkout - XML Implementation Guide versions of this document: one for those who just want to paste the button code built using the Create Checkout Button feature in Seller Central, one for HTML-based code, and one for XML- based code. Using Seller Central For merchants who want an overview of Seller Central. Standard Checkout - Callback API Guide For developers who want to build their own applications to calculate shipping and tax rates as well as promotional discounts and then send these results to Checkout by Amazon. Standard Checkout - Callback API Developers For developers who want a quick, 1-page Cheat Sheet summary of how to enable callbacks. Instant Order Processing Notifications Guide For developers who want to automate order notifications with Amazon Payments. Using Custom Data Fields Guide For merchants and developers who want to include custom data fields in their carts. Best Practices Guide Tips for setting up your website to use Amazon Payments, with advice for planning, setting up, and day-to-day operations. Managing Orders A guide to assist you in the day-to-day operations for managing orders generated by Checkout by Amazon. Alternate Payment Method Guide Information on using Checkout by Amazon as an alternate payment method on the payments page of your standard checkout. What's New in This Document Table of Changes Ver Date Changes 1.4 2010-10-11 Added information about using Checkout by Amazon on mobile-optimized websites. 1.3 2010-09-15 Revisions for updated checkout functionality.
  • 7. Checkout by Amazon | Overview of Checkout by Amazon | 7 1.1 2010-06-30 Revisions for Amazon Payments site functionality. 1.0 2010-02-14 Initial release. Copyright © 2010 by Amazon.com, Inc, or its affiliates.
  • 8. 8 | Checkout by Amazon | Overview of Checkout by Amazon
  • 9. Chapter 1 Setting Up Your Checkout by Amazon Account Topics: You have six required tasks (and three optional, but recommended, tasks) when you initially set up your Checkout by Amazon account on Seller • Signing Up for Checkout by Central. Amazon In this section you'll learn about the following required tasks: • Logging In to Your Checkout by Amazon Account 1. Sign up for your Checkout by Amazon account. • Your Sandbox and Production 2. Switch between the Production and Sandbox modes. Settings 3. Set up your Info & Policies. • Your Account and Your Info & 4. Set up your Checkout Pipeline Settings. Policies 5. Set up your basic settings for Shipping Rates, Tax Rates, and Promotions. • Your Checkout Pipeline Settings 6. Set up your Buyer (testing) Account. • Basic Seller Central Settings You'll also learn about the following optional, but recommended, tasks: for Shipping, Taxes, and Promotions 1. Set up your Role-based Permissions. • Setting User Permissions for 2. Modify your e-mail client's whitelist to accept e-mail from Amazon Your Seller Central Account Payments. • Setting Up Your E-mail Whitelist 3. Get your AWS Security Keys, used for signed carts. • Getting Your AWS Key • Setting Up Your Buyer (Testing) Account • Enabling PayPhrase on Your Website
  • 10. 10 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account Signing Up for Checkout by Amazon To get started integrating your website with Checkout by Amazon, you must first sign up for your Checkout by Amazon account. If you have not already signed up for Checkout by Amazon, please download and read the Getting Started Guide for Checkout by Amazon. It contains the information you need and steps to follow. Logging In to Your Checkout by Amazon Account After you've signed up for your account, you use your account credentials (your e-mail and password) to sign in to Seller Central to manage your account. Seller Central is the "homepage" for your account. It's where you set up your basic settings for your account, such as your info & policies, or your checkout pipeline experience, and so on. In Seller Central, you can perform the following actions: • Switch between the Sandbox and Production • View and fulfill orders • View your payments • Edit your account settings Log In to Seller Central You log in to Seller Central when you want to manage orders, view reports, or manage your account settings. Note: You can also manage orders and view reports programmatically. For more information about how to do so, please see Managing Orders. Follow these steps to log in to Seller Central: 1. Go to https://sellercentral.amazon.com. You'll see the Seller Central log-in page:
  • 11. Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 11 Figure 1: The Seller Central Log-in Page 2. Enter your Seller Central account credentials (the e-mail and password you used to sign up for the Checkout by Amazon account). 3. Click Sign in. You'll see the Seller Central home page: Figure 2: Seller Central Home Page For more information about using Seller Central, please download and read Using Seller Central. Your Sandbox and Production Settings After you have signed in to Seller Central you are ready to edit your account settings.
  • 12. 12 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account However, before you begin setting up your account, it's important for you to understand that there are two basic methods of operation, Sandbox and Production. • You use the Sandbox for testing your setup and your code. Nothing you do in the Sandbox generates paid orders. • You use Production to generate orders. Anything you do in Production is treated as a real order--you must either fulfill or cancel all Production orders within 30 days. The basic difference between the Sandbox and Production is that anything you do in the Sandbox cannot generate an order that is charged to a payment method. That is, you can "buy" an item in the Sandbox mode, but the credit card you use to buy the item can never be charged for the item. If you buy an item in Production, you are placing a real order that must be either fulfilled or canceled--that is, you must either ship it or cancel the order. Important: You cannot use your merchant account (the account you use to sign in to Seller Central) to place an order in Production. If you want to place orders in Production so you can test the end-to-end experience and make sure your fulfillment systems are working, you must create and use a separate "buyer" account. See Setting Up Your Buyer (Testing) Account on page 22 for more information about setting up and using a buyer account. This table illustrates the functions available in the Sandbox and in Production. Table 1: Functions Available in the Sandbox and in Production Function Sandbox Production Notes Generate orders Yes Yes Build functional* Yes Yes "Functional" here means that you can Checkout buttons click the Checkout button and go through the order pipeline. Create an order using a Yes Yes You can use your payment method in the payment method Sandbox, but your payment method will never be charged. View orders Yes Yes All orders in the Sandbox are marked as "Pending." Fulfill orders No Yes All orders in the Sandbox are marked as "Pending"; you cannot fulfill "Pending" orders. Give feedback on an No Yes order Cancel an order as a Yes Yes customer Cancel an order as a No Yes merchant Have a payment method No Yes charged for an order View and download No Yes order-related reports When you set up your account, you must set up your Sandbox and Production settings separately. To set them up, you must switch between Production and Sandbox mode in Seller Central. Note:
  • 13. Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 13 When you first set up your Checkout by Amazon account, you are in the Production mode. You must explicitly switch to the Sandbox mode. The mode you pick (Production or Sandbox) is "sticky"; that is, if you select a mode, log off from Seller Central, and then log in again, you return to the same mode. Switching Between Production and the Sandbox Follow these steps to switch between Production and the Sandbox 1. Locate the Website drop-down box near the top left: Figure 3: The Website drop down box 2. Click the Website drop-down box to display the available websites: Figure 4: The Website drop down box displaying the available websites 3. To select the Production mode, click Your Checkout Website. 4. To select the Sandbox mode, click Your Checkout Website (Sandbox). Your Account and Your Info & Policies Your Checkout by Amazon account has two separate account settings that you set up before you accept your first order: • Your Account Settings: Used to set up your account settings we use to transact business with with you, such as your business name or your bank account information. • Your Info & Policies Settings: Used to set up the information your customers see about you, such as your refunds and return policy Note: Be sure you switch to the correct mode before you change these settings. To learn more about switching between modes, please see Your Sandbox and Production Settings on page 11 in this document. Set Up Your Account Settings The Account Information page lets you change the following options:
  • 14. 14 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account Notification Options • Order notifications • Out-of-stock notifications • Business updates • Claims notifications (e-mail address) • Technical notifications (e-mail address) Business Information • Your business display name • Your business legal name • Customer service e-mail • Customer service reply-to e-mail • Customer service phone number Business Profile • Type of ownership • Business category • Website URL • Date established • Estimated $ volume / month • Average transaction $ amount Bank Account Information Important: It is critical that you enter your bank account information in your Account Settings page in Production-- we cannot pay you unless you set up a valid U.S.-based checking account. Important: Amazon Payments may require that you maintain a minimum balance (or reserve) in your account to secure the performance of your payment obligations. Please see the Amazon Payments Reserve Policy topic for information on how this reserve is calculated and managed. Note: Changing your Bank Account information will start an automatic 14-day hold on disbursements. See How often am I paid? for more information. Credit Card Information (select or update only) Note: You can view but not change the information in the Credit Card section. If you want to change your credit cart information or add a new credit card, you do so on the Amazon.com site by going to https://www.amazon.com/ gp/css/account/cards/view.html and following the instructions on that page. Follow these steps to set up your account settings: 1. Verify that you have selected the correct mode, Production or Sandbox. Note: Be sure you switch to the correct mode before you change these settings. To learn more about switching between modes, please see Your Sandbox and Production Settings on page 11 in this document. 2. In Seller Central, click Settings > Account Info. The Account Info page appears:
  • 15. Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 15 Figure 5: The Account Info page 3. Under Notification Options, verify that Order Notifications and Out-of-stock Notifications are enabled. If notifications are not enabled, click the Edit button in the Notification Options section, enable the notifications, and click Update. 4. Verify that your information is correct for your Business Information, your Business Profile, your Bank Account Information and your Credit Card Information. To change the information, click the Edit button in the appropriate section, make the necessary changes, and click Update. Set Up Your Info & Policies Settings The Your Info & Policies page lets you change the following attributes about your company. This information appears in the checkout pipeline: Page link Used for About Seller Tell your customer about yourself. Seller Logo Add your company logo 120 x 30 pixels (GIF, JPG, or PNG). Returns & Refunds Describe your returns and refund policy. Shipping By default, your shipping costs page in the checkout pipeline shows your shipping costs (from Seller Central Manage Shipping). However, you can use this page to describe more about your shipping policies. Privacy Policy Describe your privacy policy. Frequently Asked Questions List any frequently asked questions and answers you might have.
  • 16. 16 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account Page link Used for Custom Help Pages Add any additional help pages you'd like customers to see if they want more information within the checkout pipeline. Important: Changes you make to the pages on the Your Account & Policies page take about 24 hours to appear. Follow these steps to set up your Info & Policies settings. 1. Verify that you have selected the correct mode, Production or Sandbox. Note: Be sure you switch to the correct mode before you change these settings. To learn more about switching between modes, please see Your Sandbox and Production Settings on page 11 in this document. 2. In Seller Central, click Settings > Your Info & Policies. The Your Information & Policies page appears: Figure 6: The Your Information Page 3. For each section in the Your Information & Policies page, click the link to that page, enter the information, and click Save. Note that if you don't see a page you want, you can create Custom Help Page with the content you specify. Your Checkout Pipeline Settings With Checkout by Amazon, you can set the following options for your checkout pipeline: • Set the URL for successful payments (the page on your site where customers land after completing their purchase). • Set the URL for canceled payments (the page on your site where customers land if they cancel the order before completing their purchase).
  • 17. Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 17 • Set the URL for your customers' account information (the page on your site where you show customers their account information) • Set whether you want to accept only signed carts (carts with a calculated signature). • Set the URL for instant order processing notifications (useful if you integrate using the Instant Order Processing Notification API; see the Instant Order Processing Notification API Guide (PDF) for more information). Set the Return URLs Follow these steps to set the three Return URLs. Note: The Your Account Return URL points to a location on your site where you display information to your customers about their accounts. Customers can go to the Amazon Payments Your Account page (https:// payments.amazon.com/sdui/sdui/overview) to see their order status for all payments made using Checkout by Amazon anywhere on the internet. 1. In Seller Central, click Settings > Checkout Pipeline Settings. The Checkout Pipeline Settings page appears. 2. Click the first Edit button on the page (the one immediately under the Instant Order Processing Notification Settings heading). 3. In the Successful Payment Return URL box, type the URL you want to send your customers to after they successfully complete payment. 4. In the Cancel Payment Return URL box, type the URL you want to send your customers to if they cancel the order before they successfully complete payment. 5. In the Your Account Return URL box, type the URL on your you want to send your customers to when they want to inquire about their account. 6. Click Update. Toggle the Shopping Cart Security Follow these steps to toggle your shopping cart security setting. Note: You can choose to accept signed carts whether you integrate using the Checkout buttons created in Seller Central, HTML-based Checkout buttons, or XML-based Checkout buttons. For more information about signing your Checkout buttons, please see Sign Your Cart on page 31. 1. In Seller Central, click Settings > Checkout Pipeline Settings. The Checkout Pipeline Settings page appears. 2. Click the first Edit button on the page (the one immediately under the Instant Order Processing Notification Settings heading). 3. Next to Shopping Cart Security, click the Accept only digitally signed XML shopping carts check box to set the checkmark (accept only signed carts) or to clear the checkmark (accept all carts). 4. Click Update. Set the Integration URLs If you (or your integrator/developer) are using the Instant Order Processing Notifications, you must specify where you want these notifications to go. You can send them to your own website or to your integrator's website. Note: Choose either your own website or your integrator's website, but not both, or else you will get multiple order processing messages
  • 18. 18 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account 1. In Seller Central, click Settings > Checkout Pipeline Settings. The Checkout Pipeline Settings page appears. 2. Click the first Edit button on the page (the one immediately under the Instant Order Processing Notification Settings heading). a) In the Merchant URL box, type the URL (on your website) where you want notifications to be sent. b) Or, in the Integrator URL box, type the URL (on your integrator's or developer's website) where you want notifications to be sent. 3. Click Update. Set the Order Report Type and Frequency You can set your order report type and frequency in Seller Central to match your needs. 1. In Seller Central, click Settings > Checkout Pipeline Settings. The Checkout Pipeline Settings page appears. 2. Click the second Edit button on the page (the one immediately under the Order Reports Setting heading). The Order Reports Setting page appears. 3. Next to Order Report Type, click the radio button for the type of report you want. If you are working with an integrator, they will give you the correct format to choose. 4. Next to Order Report Schedule, pick the frequency of your reports. 5. Click Update. Basic Seller Central Settings for Shipping, Taxes, and Promotions Your Checkout by Amazon account uses Seller Central to manage basic settings for shipping rates, tax rates, and promotions. The rates and options you set in Seller Central determine what shipping rates, tax rates, and promotions apply to orders processed using Checkout by Amazon. If you do not otherwise set these values (whether in the button code you build using overrides or by using callbacks), these values will be used to calculate shipping, tax, and promotional discounts. There are a few default settings already applied when you first create your Checkout by Amazon account, but it's a good idea to review them to be sure that you know what to expect when you begin accepting orders. Important: If you are planning to programmatically control these rates and settings (using overrides, callbacks, or third-party cart management solutions), it's still a good idea to review these options, because if Checkout by Amazon can't process the overrides you supply programmatically, the defaults set in Seller Central will be used as a backup. Set Your Seller Central Shipping Rates Follow these steps to review and set your Seller Central Shipping Rates: 1. In Seller Central, go to Settings > Shipping Settings. The Shipping Settings page appears, showing your current shipping rates. 2. You can change the following options: • Set your shipping model (per-item/weight-based or price-banded) • Edit your shipping regions and service levels • Set your shipping rates Tip: For complete information about setting shipping rates, please see Configure Shipping Rates & Restrictions in Seller Central.
  • 19. Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 19 Note: For more fine-grained shipping rates, you can use overrides or callbacks. Shipping rates you set in overrides or callbacks replace existing rates set in Shipping Rates in Seller Central. Set Your Seller Central Tax Rates DISCLAIMER: While Amazon Payments is providing you a means to determine and apply sales taxes to your transactions, we do not warrant that these tax amounts will fully satisfy your sales and use tax reporting obligations. For a final determination on these matters, please seek assistance from your tax advisor. Follow these steps to review and set your Seller Central Tax Rates: 1. In Seller Central, go to Settings > Manage Taxes. The Manage Sales Taxes page appears, showing your current tax rates. (There are no default tax rates set up.) 2. You can change the following options: • Set a tax rate for all national sales • Set a tax rate for an individual state or District of Columbia Tip: For complete information about setting tax rates, please see Tax Settings in Seller Central. Note: You can set tax rates only at the state level with the Manage Tax feature. For more fine-grained tax rates, you can use overrides or callbacks. Tax rates you set with overrides or callbacks replace existing tax rates set in Manage Taxes in Seller Central. Set Your Seller Central Promotions Follow these steps to review and set your Seller Central Promotions (discounts): 1. In Seller Central, go to Settings > Manage Promotions. The Manage Promotions page appears, showing your current promotions. 2. You can change the following options: • Add a fixed-amount-off promotion • Add a percent-off promotion • Add a free-shipping promotion • Add a tiered promotion • Add a fixed-price promotion Tip: For complete information about setting promotions, please see Offer Promotions in Seller Central. Note: You can set promotions in Seller Central, overrides, callbacks, or a combination of all three. Promotions set using overrides or callbacks are additive to the promotions set in Manage Promotions. That is, if you have an existing promotion in Seller Central and a promotion in your override, and both can apply to the order, then both will be applied, resulting in a double- discount.
  • 20. 20 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account Setting User Permissions for Your Seller Central Account When you first set up your Seller Central account, only the original registered user can access the features of Seller Central. But as time goes by, you might find that you want others to access your account. For example, you might want a co-worker to manage your orders or to handle your shipping confirmations. To add users or adjust user permissions, you use the User Permissions feature. Seller Central uses an invitation model to manage user accounts. First, users are invited to create an account on Seller Central to access your storefront; then, the account manager (also called the account administrator) configures the permissions for that user. By inviting users into the system and then configuring their permissions, you are assured that the appropriate user accounts are linked to the right owners, and that the correct permissions apply to the intended users. The invitation model also helps you to fully manage user accounts without assistance from an Amazon Payments administrator. To set up users, first the account manager must set up the initial account using the Checkout by Amazon registration process. After setting up the initial account, the account manager then compiles a list of people who can access the system and determines the respective rights for those users. At this point, the account manager is ready to invite new users to Seller Central. This invitation process takes three steps: 1. The account manager sends an e-mail invitation to each user that contains a link to Seller Central. 2. The user clicks the link and navigates to a page giving access to a unique confirmation code. At this stage, the user is a pending user. 3. The user enters the confirmation code and establishes the account. At this stage, the user is now a current user. After the invitation process is complete, the user has a username and password to access the system. The final step is for the account administrator to assign the appropriate rights to that user. Note: The username and password are combined together to identify a unique user account. For example, myname@isp.com + password1 and myname@isp.com + password2 are different user accounts. Step One: The Account Manager Sends the Invitation The first step is to invite the user. 1. On the Settings tab, click User Permissions. The User Permissions page appears. 2. Under Add a New Seller Central User, type the e-mail address of the user you want to invite to the account. 3. Click Send Invitation. The e-mail invitation is sent to the e-mail address you specified. A confirmation message appears. 4. Click Continue. Step Two: The User Receives a Confirmation Code After clicking the link in the invitation e-mail, the invited user navigates to a web page that asks the user to either sign in with an existing Amazon account or to create a new account. After this is done, a page appears containing a confirmation code. The user then shows or sends the confirmation code to the account manager, and the account manager approves the user and grants rights to the user. Step Three: The User Accesses Seller Central and Creates an Account After the account manager confirms the user, the user can go to https://sellercentral.amazon.com/ to log in to the account.
  • 21. Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 21 Step Four: The Account Manager Sets User Permissions After creating the user, the account manager can edit user permissions, granting rights to any and all tools. 1. On the Settings tab, click User Permissions. The User Permissions page appears. 2. On the User Permissions page, click Edit next to the account you want to change. The Add or Edit User page appears. 3. On the Add or Edit User page, click the button next to each tool you want to allow the user to access. 4. When you are finished, click Continue. A confirmation message appears confirming the modifications. Note: The original account holder -- ithe one who first signed up for the account -- is always the default account manager. The account manager can always grant rights to others to be co-account managers; however, the original owner/account manager cannot be changed or removed. Setting Up Your E-mail Whitelist E-mail is the default means of communication from Amazon Payments to you. For example, each time a customer places an order, we send you an order notification e-mail. We also send e-mails when there is a dispute about a transaction. There are other e-mails you can receive from Amazon Payments concerning your account and transactions. Because e-mail is an important means of communication, it's important that you're getting these e-mails from Amazon Payments. To be sure that you can receive these e-mails, you can set your e-mail client to always accept e-mails from Amazon Payments by adding the sender (amazon.com) to your e-mail client's "whitelist." (A whitelist is a set of permitted e-mail addresses that can send e-mail to you, no matter what content they send.) Set Up Your Whitelist Follow these general steps to set up your e-mail client's whitelist. Note: These steps assume you are using Microsoft Outlook 2010. If you use another e-mail client, check the application's online help for more information. 1. In Microsoft Outlook 2010, click Home > Junk > , and then click Junk E-mail Option. The Junk Mail Options box appears. 2. Click the Safe Recipients tab, click Add, type @amazon.com, and then click OK. Your Safe Recipients list will look something like this:
  • 22. 22 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account Figure 7: Junk E-mail Whitelist in Outlook 2010 3. Click OK. Getting Your AWS Key Your AWS keys are used for signing your carts (orders) and are unique to your account. You get (and use) two different AWS keys: • Your AWS Access Key ID (public) • Your AWS Secret Access Key (private) For more information about signing your carts, please see Sign Your Cart on page 31. Get Your AWS Keys Important: Keep your Secret Access Key in a safe place -- do not share it with unauthorized people, and never include it in an e-mail message or in the order code you develop. Use the Secret Access Key only to sign orders. Follow these steps to get your AWS keys 1. In Seller Central, go to Integration > Access Key. The Access Key page appears, showing your Access Key ID and a placeholder for your Secret Access Key. 2. To view your Secret Access Key, click Show. Your Secret Access Key appears. Setting Up Your Buyer (Testing) Account
  • 23. Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 23 Before you begin taking orders on your website, you should test your order and fulfillment systems to be sure that you can reliably accept and fulfill orders. And when you create test orders, you must use a separate account from the one you use when you signed up for Checkout by Amazon. Note: For more information about testing procedures, please see #unique_38. Be sure you understand that orders placed in the Production environment must be either fulfilled by you as the merchant or canceled using the buyer account. See Cancel Your Test Production Order on page 40 for more information. Set Up Your Buyer (Testing) Account Important: Do not use the same e-mail address for your buyer (testing) account that you are using for your seller or merchant account. Amazon Payments allows only one account per e-mail account. That is, if you use someone@mail.com for your seller account, don't use the same e-mail address when you create a new buyer (testing) account. Note: If you already have a separate buyer account (different than the one you used to sign up for Checkout by Amazon) that you use for buying on Amazon.com, you can skip these steps. Follow these steps to set up your buyer (testing) account: 1. Go to the Amazon Payments site at https://payments.amazon.com/ 2. Click the Personal tab. The Personal tab page appears: Figure 8: The Personal tab page 3. On the right side of the page click Create account. The Amazon.com Sign In page appears. 4. Enter your e-mail address, click I am a new user, and click Sign in using our secure server. You should see the New to Amazon.com page. If you do not, press the Back button on your browser and be sure you enter an e-mail and password that you have not used before to shop on Amazon.com. 5. Fill in the requested information and click Continue.
  • 24. 24 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account The Sign Up for Amazon Payments page appears. 6. Fill in the requested information and click Continue. 7. When prompted, you can activate more services, or click Skip to continue. After you have signed up for an account, we'll send an e-mail to the address you supplied with instructions for you to confirm your new account. Set Up PayPhrase for Your Buyer Account PayPhrase is an easy-to-remember shortcut to shipping and payment information in your Amazon.com account. Your customers can use it for Express Checkout (including PayPhrase, 1-Click, and Express Checkout) at Amazon.com and across the web, including your website. You have two parts to setting up and using PayPhrase on your website: 1. Set up your PayPhrase for your buyer (testing) account. 2. Set up your website to allow PayPhrase, 1-Click, and Express Checkout. In this task you set up the PayPhrase for your buyer (testing) account. To learn how to enable PayPhrase, 1-Click, and Express Checkout on your website, see Enabling PayPhrase on Your Website on page 24. Tip: When you create your PayPhrase for your buyer (testing) account, set up approvals for your PayPhrase. That way, you can use the PayPhrase for test purchases but wait until a convenient time to either decline or approve the test purchases. 1. On the Amazon Payments site, click the PayPhrase tab. The Amazon PayPhrase page appears. 2. Click the Create Your PayPhrase button. The PayPhrase creation page appears. 3. Accept the suggested PayPhrase, or enter your own. 4. Option: click the Set up spending limits and approvals check box. 5. Click the Next button. 6. If you clicked the Set up spending limits and approval check box (earlier), then click the Review and approve all orders before they are placed option button and click the Next button. 7. On the Create a PIN page, enter your 4-digit PIN. 8. Click the Claim Your PayPhrase button. 9. Enter your shipping address and click the Use as shipping address button. 10. Enter your payment method and click the Continue button. 11. Select or enter a billing address and click the Use as billing address button. The Your PayPhrase Is Ready to Use page appears. Enabling PayPhrase on Your Website PayPhrase is an easy-to-remember shortcut to shipping and payment information in your Amazon.com account. Your customers can use it for Express Checkout at Amazon.com and across the web, including your website. To enable PayPhrase on your website, you simply place two lines of code at the beginning of the button form you create as shown below: For Sandbox buttons (note the word "sandbox" in bold) <script type="text/javascript" src="https://images-na.ssl-images-amazon.com/images/G/01/cba/js/jquery.js"> </script> <script type="text/javascript"
  • 25. Checkout by Amazon | Setting Up Your Checkout by Amazon Account | 25 src="https://images-na.ssl-images-amazon.com/images/G/01/cba/js/ widget/sandbox/widget.js"> </script> For Production buttons <script type="text/javascript" src="https://images-na.ssl-images-amazon.com/images/G/01/cba/js/jquery.js"> </script> <script type="text/javascript" src="https://images-na.ssl-images-amazon.com/images/G/01/cba/js/widget/ widget.js"> </script> Important: The code samples in this document always show these lines of script that enable PayPhrase, 1-Click, and Express Checkout. Be sure your button code always includes these lines of code as well.
  • 26. 26 | Checkout by Amazon | Setting Up Your Checkout by Amazon Account
  • 27. Chapter 2 Integrating with Checkout by Amazon Topics: Integrating your website with Checkout by Amazon requires that you build and test your buttons (and checkout process) in the Sandbox as well as in • Steps to Integrating Checkout Production. by Amazon with Your Website The following section is a step-by-step procedure to create working checkout • Integration Touch Points buttons, from your test buttons that you build and use in the Sandbox to • Sandbox Setup working buttons you build and use on in Production. • Production Setup • Additional Setup Tips • Set Up for Your Mobile- Optimized Website
  • 28. 28 | Checkout by Amazon | Integrating with Checkout by Amazon Steps to Integrating Checkout by Amazon with Your Website Here are the steps you'll follow to integrate with Checkout by Amazon: 1. Create the cart using Sandbox URLs. 2. Sign the cart (optional). 3. Add the optional signature to the Sandbox Standard Checkout Widget. 4. Place the resulting Sandbox Standard Checkout Widget on your test web page. 5. Test the Sandbox order using your buyer account (complete the checkout in the Sandbox). 6. Create the cart using Production URLs. 7. Sign the cart (optional). 8. Base64-encode the cart. 9. Add the optional signature to the Production Standard Checkout Widget. 10. Place the Production Standard Checkout Widget on your test web page. 11. Test the Production order using your buyer account (complete the purchase in Production). 12. Cancel the Production order on Amazon Payments site using your buyer account login. 13. Place the Production-mode Standard Checkout Widget on your website. Note: The Standard Checkout Widget renders the Checkout button. Please refer to the Checkout by Amazon Widget Reference Guide for details on using the Standard Checkout Widget, and for information on how to set up widgets on your web page. Integration Touch Points This image illustrates the path for integration as well as the "touch points" between the merchant and Amazon Payments.
  • 29. Checkout by Amazon | Integrating with Checkout by Amazon | 29 Figure 9: Integration Touch Points There are three main steps in the checkout workflow: 1. The customer places the order with the merchant. 2. The merchant processes the order with Amazon Payments using Checkout by Amazon. This step includes fulfilling (shipping) the order. When an order is marked as "shipped," the customer's account is charged. 3. The merchant manages the payments made to their merchant account. During this process, there are several steps taking place: 1. When the customer places an order, a checkout request is sent to Amazon Payments. 2. This generates a callback request to the merchant (if callbacks are enabled). 3. The merchant sends back a callback response with the requested data. 4. Amazon Payments sends the customer to the specified "Thank You" page. 5. Amazon Payments sends a New Order Notification. 6. When the payment method from customer is processed, Amazon Payments sends an Order Ready for Fulfillment Notification. 7. The merchant pulls (views or downloads) the Order Report 8. The merchant notifies Amazon Payments that the order is fulfilled. At this point, Amazon Payments charges the customer's payment method. 9. Amazon Payments settles payment to the merchant's bank account. 10. The merchant pulls (views or downloads) the Settlement (Payment) Report.
  • 30. 30 | Checkout by Amazon | Integrating with Checkout by Amazon Sandbox Setup Create a Sandbox Cart Using HTML Building a Sandbox cart lets you create test orders. A simple HTML-based cart contains following elements: Table 2: Simple HTML Cart Elements Input name* Description Required item_merchant_id_n 14-character alphanumeric Yes string Get from Settings > Account Info > Checkout Pipeline Settings item_sku_n Stock-keeping Unit ID for the Yes. If using Fulfillment by item. 1-250 characters. Amazon, the SKUs must match item_title_n Name of Item Yes 1 - 250 alphanumeric characters only item_price_n Cost of item Yes 0.01 - 999.99 item_quantity_n Number of items Yes item_currency_code Type of currency Yes Only "USD" accepted merchant_signature Calculated value of the cart Yes, if signed carts are required. Base64-encoded aws_access_key_id AWS Access Key ID (public Yes, if signed carts are key) required and you are using the AWS-provided signing keys. certificate X.509 certificate (public key) Yes, if signed carts are required and you are using X.509 certificates. Note: *"_n" for an input name represents the integer value of the item number. The first item is _1, the second is _2, and so on. The following is an example of a simple Sandbox cart using HTML (line breaks added for clarity): <html> ... <head> <script language=javascript src="https://payments-sandbox.amazon.com/cba/js/ PaymentWidgets.js">
  • 31. Checkout by Amazon | Integrating with Checkout by Amazon | 31 </script> ... </head> <body> ... <!-- Form fields that describe Cart --> <form id="CBACartFormId"> <input name="item_merchant_id_1" value="AEIOU1234AEIOU" type="hidden" /> <input name="item_sku_1" value="ABC123" type="hidden" /> <input name="item_title_1" value="Red Fish" type="hidden" /> <input name="item_price_1" value="19.99"type="hidden" /> <input name="item_quantity_1" value="1" type="hidden" /> <input name="currency_code" value="USD" type="hidden" /> <input name="merchant_signature" value="c2lnbmF0dXJlIGZvciBDaGVja291dCBieSBBbWF6b24" type="hidden" /> <input name="aws_access_key_id" value="19G7E7X2QE2V45LETX2E" type="hidden" / > </form> <div id="cbaButton1"/> <script> new CBA.Widgets.StandardCheckoutWidget({ merchantId:'AEIOU1234AEIOU', orderInput: {format: "HTML", value: "CBACartFormId"}, buttonSettings: {size:'large',color:'orange',background:'white'} }).render("cbaButton1"); </script> ... ... </body> </html> Note: Be sure the input fields are hidden. Do not use the HTML FORM POST command on this form. The hidden input fields are accessed by the Standard Checkout Widget. Sign Your Cart To generate a signature, you need a set of signing-key pairs. By default, your Checkout by Amazon account supplies you with a set of AWS Access Keys, the Access Key ID (the public key) and the Secret Access Key (the private key). See Getting Your AWS Key on page 22 for steps to take to get your AWS Access Keys. Note: You can also use an X.509 certificate that's associated with your Checkout by Amazon account. Signing an HTML-based cart requires you to convert the cart content to name-value pairs, URL-encode the pairs, sort the pairs, and then concatenate the name-value pairs. After you sign the cart, you encode the resulting signature using base64, then add the signature to your HTML form using the key "merchant_signature" with the value set to the calculated signature. Note: The HTML cart has its input values in plain text; only the signature is base64-encoded. Follow these steps to sign your HTML-based carts 1. Get your AWS Access Keys or X.509 certificate. 2. Change your HTML input entries to name-value pairs.
  • 32. 32 | Checkout by Amazon | Integrating with Checkout by Amazon For example, given the cart used in the example earlier, your name-value pairs would look like this (line breaks added for clarity): item_merchant_id_1=AEIOU1234AEIOU item_sku_1=ABC123 item_title_1=Red Fish item_price_1=19.99 item_quantity_1=1 currency_code=USD aws_access_key_id=VWXYZ9876VWXYZ 3. Sort your cart input entries. Here is an example of the sorted HTML content (line breaks added for clarity): aws_access_key_id=VWXYZ9876VWXYZ currency_code=USD item_merchant_id_1=AEIOU1234AEIOU item_price_1=19.99 item_quantity_1=1 item_sku_1=ABC123 item_title_1=Red Fish 4. URL-encode the name-value pairs values. The URL-encoded result will look like this (line breaks addded for clarity): aws_access_key_id=VWXYZ9876VWXYZ currency_code=USD item_merchant_id_1=AEIOU1234AEIOU item_price_1=19.99 item_quantity_1=1 item_sku_1=ABC123 item_title_1=Red%20Fish 5. Concatenate the URL-encoded name-value pairs using the ampersand "&" character. The concatenated cart will look like this (line breaks added for clarity): aws_access_key_id=VWXYZ9876VWXYZ &currency_code=USD &item_merchant_id_1=AEIOU1234AEIOU &item_price_1=19.99 &item_quantity_1=1 &item_sku_1=ABC123 &item_title_1=Red%20Fish& Note: Be sure to include the "&" at the end of the concatenated cart. 6. Using the programming language of your choice, sign the concatenated HTML with your AWS or X.509 private signing key. 7. Using the programming language of your choice, base64-encode the resulting signature. The resulting encoded signature will look something like this: 0nppbXTktfoV80Kh41GK7ruUhq8= Add the Signature to the Cart You can add one of two types of signatures to your cart. Table 3: Signature Input Entries Signature type Input entry AWS Access Keys <input name="aws_access_key_id" value="YOUR_MERCHANT_ACCESSKEY" type="hidden" /> X.509 certificate <input name="aws_key_pair" value="YOUR_X509_CERTIFICATE" type="hidden" /> Follow these steps to add the signature to the HTML form.
  • 33. Checkout by Amazon | Integrating with Checkout by Amazon | 33 Add to the INPUT tag the following values: <input name="merchant_signature" value="[Signature value]" type="hidden" /> <input name="aws_access_key_id" value="[AWS Access Key ID Value]" type="hidden" /> Your form should look like the following: <!-- Form fields that describe Cart --> <form id="CBACartFormId"> <input name="item_merchant_id_1" value="AEIOU1234AEIOU" type="hidden" /> <input name="item_sku_1" value="ABC123" type="hidden" /> <input name="item_title_1" value="Red Fish" type="hidden" /> <input name="item_price_1" value="19.99"type="hidden" /> <input name="item_quantity_1" value="1" type="hidden" /> <input name="currency_code" value="USD" type="hidden" /> <input name="merchant_signature" value="c2lnbmF0dXJlIGZvciBDaGVja291dCBieSBBbWF6b24" type="hidden" /> <input name="aws_access_key_id" value="19G7E7X2QE2V45LETX2E" type="hidden" / > </form> Place the Sandbox Checkout Button Code on Your Test Webpage When you have built the HTML code for the cart, concatenated it and signed it (if you accept only signed carts), and base64-encoded the optional signature (if you accept only signed carts), you add the resulting cart content (and optional signature) to an HTML form that displays the Checkout button. For example, given the example earlier, the resulting code will look something like this (note that line breaks are for ease of reading): <!-- Form fields that describe Cart --> <form id="CBACartFormId"> <input name="item_merchant_id_1" value="AEIOU1234AEIOU" type="hidden" /> <input name="item_sku_1" value="ABC123" type="hidden" /> <input name="item_title_1" value="Red Fish" type="hidden" /> <input name="item_price_1" value="19.99"type="hidden" /> <input name="item_quantity_1" value="1" type="hidden" /> <input name="currency_code" value="USD" type="hidden" /> <input name="merchant_signature" value="c2lnbmF0dXJlIGZvciBDaGVja291dCBieSBBbWF6b24" type="hidden" /> <input name="aws_access_key_id" value="19G7E7X2QE2V45LETX2E" type="hidden" / > </form> The complete HTML form will look something like this: <html> ... <head> <script language=javascript src="https://payments-sandbox.amazon.com/cba/js/ PaymentWidgets.js"> </script> ... </head> <body> ... <!-- Form fields that describe Cart --> <form id="CBACartFormId"> <input name="item_merchant_id_1" value="AEIOU1234AEIOU" type="hidden" /> <input name="item_sku_1" value="ABC123" type="hidden" /> <input name="item_title_1" value="Red Fish" type="hidden" /> <input name="item_price_1" value="19.99"type="hidden" /> <input name="item_quantity_1" value="1" type="hidden" /> <input name="currency_code" value="USD" type="hidden" />
  • 34. 34 | Checkout by Amazon | Integrating with Checkout by Amazon <input name="merchant_signature" value="c2lnbmF0dXJlIGZvciBDaGVja291dCBieSBBbWF6b24" type="hidden" /> <input name="aws_access_key_id" value="19G7E7X2QE2V45LETX2E" type="hidden" / > </form> ... <div id="cbaButton1"/> <script> new CBA.Widgets.StandardCheckoutWidget({ merchantId:'AEIOU1234AEIOU', orderInput: {format: "HTML", value: "CBACartFormId"}, buttonSettings: {size:'large',color:'orange',background:'white'} }).render("cbaButton1"); </script> ... ... </body> </html> Now place this code on the test webpage where you want the Sandbox Checkout button to appear. Note: Your checkout button and cart code must contain the lines of JavaScript as shown in the example above. For a complete list of button styles, please see Button Styles. Do not mix Sandbox and Production buttons on the same page. Test Your Sandbox Button by Placing a Test Order Now that you have created a Sandbox Checkout button and placed it on a test web page, you're ready to test it. Note: Remember, you must use your Buyer (Test) Account to test buying items, even if you buy items in the Sandbox. Note: Orders you place using Sandbox buttons are never charged. This means your Buyer (Test) Account will not receive a confirmation e-mail, and your Seller Account will not receive any notification on the sale. You can, however, track Sandbox orders in Seller Central by searching for "Pending Orders." For more information about how to do so, please see Managing Orders. When you test a Sandbox button, you test for the following exit criteria: • Clicking the Sandbox Checkout button starts the checkout process. • If you use your Buyer (Test) Account's PayPhrase, the checkout window on your site appears. • If you bypass using your PayPhrase and sign in using your Buyer (Test) Account, you can proceed through the checkout pipeline without failure. • When you come to a page that displays a Place order button, clicking the button delivers a message that the order was placed. • Using your Seller Account in Seller Central, you can find the pending order on the Manage Orders page. Follow these steps to place test orders in the Sandbox. 1. Open your web browser and go the URL for your test web page. 2. Click the Sandbox Checkout button you just created. 3. If you are using your Buyer Account PayPhrase, enter your PayPhrase and click the button to continue.
  • 35. Checkout by Amazon | Integrating with Checkout by Amazon | 35 4. If you are bypassing your PayPhrase, then when prompted, sign in using your Buyer (Test) Account credentials In some cases you might not be prompted to sign in if you've recently made a purchase using your Buyer (Test) Account on the computer you're using for testing. 5. If you are bypassing your PayPhrase, then when prompted, select the shipping address and credit card you want to use for the purchase. Depending upon your Buyer (Test) Account settings, you might not be prompted for this information. 6. At the confirmation page, review the information to be sure it's accurate. Make sure the shipping, tax, and promotional discount information is correct. 7. Click the Place this order button to complete the Sandbox purchase. Remember, although you will see a confirmation message, your Buyer (Test) Account will not get a confirmation e-mail, because Sandbox transactions do not become orders. Production Setup Create a Production Cart Using HTML Building a Production cart lets you create real orders; that is, orders that are processed, charged, and fulfilled. A simple HTML-based cart contains following elements: Table 4: Simple HTML Cart Elements Input name* Description Required item_merchant_id_n 14-character alphanumeric Yes string Get from Settings > Account Info > Checkout Pipeline Settings item_sku_n Stock-keeping Unit ID for the Yes. If using Fulfillment by item. 1-250 characters. Amazon, the SKUs must match item_title_n Name of Item Yes 1 - 250 alphanumeric characters only item_price_n Cost of item Yes 0.01 - 999.99 item_quantity_n Number of items Yes item_currency_code Type of currency Yes Only "USD" accepted merchant_signature Calculated value of the cart Yes, if signed carts are required. Base64-encoded aws_access_key_id AWS Access Key ID (public Yes, if signed carts are key) required and you are using the AWS-provided signing keys. certificate X.509 certificate (public key) Yes, if signed carts are required and you are using X.509 certificates.