For Business

Create the Buy with Prime widget code

Create the Buy with Prime button code

Note: Before creating the code for your Buy with Prime button, ensure that you’ve completed the Buy with Prime setup and selected which products offer Buy with Prime.

  1. On the merchant console, go to Step 4: Create and install button code.
  2. On the Create Buy with Prime button page, add your site details:
    1. From the drop-down menu, select your ecommerce service provider.
    2. Enter your store name.
    3. Enter the URL for the privacy policy that you show on your site.
    4. Enter the URL for your terms & conditions that you show on your site.
  3. On the Your URLs field, enter your site URL with and without the “www” (such as, “example.com”), and then choose Add URL.

    Screenshot of your URL's section in merchant console with the site URL entered with and without the "www."

  4. If you have variations of products that are on the same product detail page, such as different colors and sizes, select the indicator to confirm that you have variations. By selecting variations, the code generator adds a line to your code to make variations available to shoppers.

    Screenshot of the variations section in merchant console where you select if you have variations or not.

  5. (Optional) Upload your business logo. Shoppers see your business name as part of the branded checkout and order confirmation experience. Upload a logo, or shoppers will see your business name displayed in text. For instructions on logo upload and troubleshooting go to Set up a business logo for Buy with Prime.
  6. (Optional) Customize the appearance of the Buy with Prime button. Choose Customize button to be directed to a new page where you can customize how your Buy with Prime button appears on your ecommerce site. For more information, go to To customize your Buy with Prime button.
  7. Choose Create button.
  8. Choose Copy, and then add the code to the product detail page template. The Buy with Prime button displays on your product pages for any product in your Buy with Prime product catalog that you’ve selected to offer Buy with Prime.

Important: To share the button code with someone else, add them as an admin in your Team Management settings so that they can access the button code internally. If you copy the button code into email, text, or other messaging tool, it can add extra characters to the code that might cause the button to not appear. If you’re giving someone temporary admin access, remember to remove them later.