/bubble-tutorials

How to integrate Amazon Pay in Bubble

Learn how to integrate Amazon Pay into your Bubble app with a clear, step-by-step guide that simplifies setup, configuration, and testing.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Bubble apps with your growth in mind.

Book a Free Consultation

How to integrate Amazon Pay in Bubble

You integrate Amazon Pay in Bubble by creating an OAuth flow (Login with Amazon), then using the tokens you receive to call Amazon Pay’s REST APIs through the API Connector. Amazon does not have an official Bubble plugin, so you must set up OAuth + API calls manually.

 

What You Actually Need to Do

 

Amazon Pay uses Login with Amazon (LWA) for authentication. Bubble supports this through the API Connector with OAuth2 Custom Token. After the user logs in, Amazon returns an access\_token that you use in all Amazon Pay payment API calls (create checkout, confirm, capture, refund).

  • Create an LWA Security Profile inside your Amazon Seller Central → Apps & Services → Login With Amazon.
  • Copy Client ID and Client Secret.
  • Whitelist Bubble redirect URL in Amazon settings (from Bubble API Connector when OAuth is selected).

 

Set Up OAuth in Bubble

 

Inside Bubble’s API Connector, create a new API and choose OAuth2 User-Agent Flow. Use Amazon’s real endpoints:

  • Authorization URL: https://www.amazon.com/ap/oa
  • Token URL: https://api.amazon.com/auth/o2/token
  • Scope: payments:widget payments:shipping\_address

Bubble will generate a redirect URL. Copy it back to Amazon LWA.

 

Create Amazon Pay API Calls

 

After OAuth is working, you can add REST calls. Example: create a Checkout Session.

{
  "webCheckoutDetails": {
    "checkoutReviewReturnUrl": "https://yourapp.com/review"
  },
  "storeId": "YOUR_STORE_ID"
}

Bubble API Connector setup:

  • Method: POST
  • URL: https://pay-api.amazon.com/live/v2/checkoutSessions
  • Headers: Authorization: Bearer
  • Body type: JSON

 

Redirect User to Amazon Pay

 

The API response returns a webCheckoutDetails.checkoutReviewUrl. Use Bubble’s “Go to external URL” to send the customer to Amazon Pay’s hosted checkout.

 

Handle Webhooks (Optional but Recommended)

 

Amazon Pay can send status updates (authorized, captured). Use a Bubble Backend Workflow endpoint URL and register it in Amazon Pay console.

Explore More Valuable No-Code Resources

How to integrate Bubble.io with Git?

Learn how to seamlessly integrate Bubble.io with Git through our comprehensive step-by-step guide. Perfect for beginners and professionals.

Explore

How to integrate Bubble.io with Reddit Ads?

Learn how to seamlessly integrate Bubble.io with Reddit Ads using our easy step-by-step guide. Boost your ad management today!

Explore

How to integrate Bubble.io with AWS S3?

Explore our step-by-step guide on integrating Bubble.io with AWS S3, making your app development process more efficient and secure.

Explore

How to integrate Bubble.io with Lucidchart?

Follow our step-by-step guide to seamlessly integrate Bubble.io with Lucidchart, enhancing your workflow & productivity.

Explore

How to integrate Bubble.io with Kentico?

Learn how to seamlessly integrate Bubble.io and Kentico with our comprehensive, easy to follow step-by-step guide.

Explore

How to integrate Bubble.io with Box?

Discover easy-to-follow steps for integrating Bubble.io with Box. Boost your workflow and secure your files seamlessly today.

Explore

Stuck in Bubble.io? We’re here to help!

Fix broken workflows | Optimize logic | Boost performance | Scale with confidence

4.9
Clutch rating 🌟
600+
Happy partners
17+
Countries served
190+
Team members

By clicking “Accept”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.

Cookie preferences