This is a sample store. Click Buyto create a test Checkout Session and get redirected to the Cygma-hosted payment page — the exact flow your customers would see. It’s test mode, so nothing is charged (pay with 4242 4242 4242 4242).
Soft, warm, and pays for itself.
Test mode · no card is charged
// 1 — On YOUR server, create a Checkout Session:
const res = await fetch("https://cygma.cloud/api/m360/v1/checkout/sessions", {
method: "POST",
headers: { Authorization: "Bearer " + SECRET_KEY, "Content-Type": "application/json" },
body: JSON.stringify({
line_items: [{ name: "Merchant360 Hoodie", amount: 4999, quantity: 1 }],
success_url: "https://yourstore.com/thanks?session_id={CHECKOUT_SESSION_ID}",
cancel_url: "https://yourstore.com/cart",
}),
});
const session = await res.json();
// 2 — Redirect the customer to the hosted page:
redirect(session.url); // https://cygma.cloud/checkout/session/…
// 3 — Fulfil on the checkout.session.completed webhook (or the success_url).Full reference at the Checkout Sessions docs. Grab a free test key to build it yourself.
© 1998–2026 Electronic Payments, Inc. Test mode — no money moves.