How to add a checkout link to any website
To add a checkout link to any website, copy the link from your product in the Ruba dashboard and use it as the address of a button. No backend or code is needed. Buyers pay by card, and Ruba takes the payment, handles supported taxes and pays you to your own bank.
A link is a whole shop
One Ruba checkout link works on any page, and the fee is 4% + $0.50 a sale. Sadia in Dhaka has a simple portfolio site and a PDF planner she wants to sell. She does not want a shopping cart, a plugin or a server. She needs one thing: a button that takes money.
Ruba’s checkout link is exactly that. Each visit creates a fresh checkout. You only share the link.
Two ways to use the same link
- 1Copy the checkout linkFrom your product.
- 2Paste it into a buttonAny site builder.
- 3Buyer clicksGoes to Ruba’s checkout.
- 4Buyer paysBy card. Lands on your success page.
- 1Copy the same linkFrom your product.
- 2Paste the snippetInto a page that accepts HTML.
- 3Buyer clicksCheckout opens on your page.
- 4Buyer paysWithout leaving your site.
For the popup, paste the snippet below where the button should be.
<a href="__CHECKOUT_LINK__" data-ruba-checkout>
Buy now
</a>
<script
defer
data-auto-init
src="https://cdn.jsdelivr.net/npm/@getruba/checkout@latest/dist/embed.global.js"
></script>Settings that live on the link
A checkout link can store more than the address. It can hold several products as a choice, one discount, a trial, seats for a per-seat product, metadata, a success URL and a return URL.
Query values can change one visit without editing the link, for example customer_email, customer_name, discount_code and product_id.
How this compares
Gumroad also gives each product a link. Its pricing page lists 10% + $0.50 on sales through your profile or direct links, which we read on 26 November 2026. Ruba is 4% + $0.50. On a $29 planner Gumroad’s base fee is $3.40, and Ruba’s is $1.66.
Ruba has no monthly fee. It pays individuals in Pakistan in PKR, India in INR and Bangladesh in BDT, to their own bank. Payouts start at $10 after the fee.
What to do next
Apply for Ruba early access, create your product and copy its checkout link. See also embedding checkout in a React or Vue app.
One link works on any site, even a plain one. You start with no company and pay no monthly fee. Once approved in early access, 4% + $0.50 per sale is locked in for your website while your account is open and in good standing. Should a fee ever show up that Ruba never told you about, Ruba refunds it and pays you $100. Terms apply. See the early-access deal.
Questions people ask
Do I need to code to add a checkout link?
No. Copy the checkout link from your product in the Ruba dashboard and use it as the address of any button or link. For an in-page popup, paste the short embed snippet into a page that accepts HTML.
Can I give the buyer a thank-you page?
Yes. A checkout link can set a success URL where the buyer lands after paying. Add checkout_id={CHECKOUT_ID} if your page needs the completed session ID.
Can I offer a discount through the link?
Yes. A link can apply one discount automatically. A discount_code query value can also apply a coded discount for one visit. Invalid codes are ignored.
Can the link have several products?
Yes, as a choice. The buyer still buys exactly one product. It is a selector, not a cart.
Is the link safe to share?
Share the reusable checkout link. Each visit creates a fresh, short-lived session. Do not share a temporary session URL in permanent places.
Sources
We check these when we update this guide. Rules can change, so check them yourself before you decide.
- Ruba: checkout pagesChecked 26 Nov 2026
- Ruba: embedded checkoutChecked 26 Nov 2026
- Ruba: productsChecked 26 Nov 2026
- Ruba: pricing and feesChecked 26 Nov 2026
- Gumroad: pricingChecked 26 Nov 2026