Skip to main content

Embedding Checkout on Your Website

How to add Payments.ai MoR checkout to your website - with an AI assistant or with a developer.

Written by Michelle L

Payments.ai MoR offers two ways to accept payments:

  1. Share your checkout link (the default). You share the URL, and customers click through to a Payments.ai-hosted checkout page. No setup needed beyond creating the product. See Taking Your First Payment.

  2. Embed the checkout on your website. Payment fields load directly on your site so customers never leave to complete their purchase.

When to Use Each

Share your checkout link if:

  • You don't have a website, or your product is sold through email, social, or a community

  • You want zero setup

  • You're okay with customers being redirected to a Payments.ai-hosted checkout page

Embed the checkout if:

  • You have a website and want customers to complete their purchase on your domain

  • You want the checkout experience to look and feel like the rest of your site

How Embedded Checkout Works

Embedding the checkout means adding Payments.ai's payment fields directly to a page on your website. Customers enter their email, billing details, and card information without leaving your site.
​

To make this work, some code needs to be added to your website: a script that loads the checkout, a container where the payment fields appear, and a small amount of JavaScript that wires everything together.
​

Setting It Up (Even Without a Developer)

If you don't write code yourself, you have two options:
​

Option 1: Use an AI assistant to do it for you.
​

Click Copy AI Context at the top of the Embedded Checkout page to copy an AI-friendly version of the documentation. Paste it into Claude, Cursor, or another AI assistant, and ask it to help you add embedded checkout to your website. Your assistant will walk you through the setup and can generate the code for you.

You'll need:

  • Your plan ID - the unique identifier for the specific pricing variant you want to embed. You can find it in the checkout URL for that variant (it's the ID after /payment/ in a URL like mor.payments.ai/payment/019fed44-...). Each variant of a product has its own plan ID.

  • Whether you're testing in sandbox or setting up for live. Sandbox and live have separate plan IDs, so make sure you're using the right one for your intended environment.

Your AI assistant will walk you through what to add to your site and can generate the code for you.
​

Option 2: Share it with your developer.
​

Send them the Embedded Checkout documentation. It has full setup steps, code examples, and troubleshooting. They'll know what to do.
​

Getting Help

Did this answer your question?