Embedded checkout
Add a buy button with one script tag.
checkout.js creates the session through our backend from a public product id, then sends the buyer to the hosted checkout. The browser never supplies a price, seller id or fee.
<script src="https://skypay.to/checkout.js" defer></script>
<button
data-skypay-product="prod_test_…"
data-skypay-quantity="1"
data-skypay-success-url="https://example.com/thanks">
Buy now
</button>
<!-- or programmatically -->
<script>
SkyPay.checkout({ product: "prod_test_…", email: "[email protected]" });
</script>Three integration styles, one backend:
- Hosted payment links — share
https://skypay.to/p/<product id>. - Buy buttons / checkout.js — for sites without a backend.
- API-created sessions — your server calls
POST /api/v1/checkout/sessionswith an API key and redirects to the returned URL.
{
"id": "chk_test_…",
"url": "https://skypay.to/c/chk_test_…",
"status": "open",
"livemode": false,
"expires_at": "2026-01-01T13:00:00.000Z"
}checkout.js referenceThe checkout itself
Mobile-first
Single column on phones, two columns on desktop, large touch targets, accessible validation, keyboard navigable.
Only real methods
Shows the methods available for this seller, currency, buyer region and mode — nothing decorative.
Trust by default
Seller branding, fee and tax disclosure, refund policy, clear test-mode banner, and a status page that waits for verified confirmation.