Playto.checkout({...}); Playto
renders a checkout modal right on your page. The customer enters their details and
their card in that modal, then is returned to your page automatically — where your
onSuccess callback fires (through Playto.handleReturn()).
How this stays compliant. Card details are never typed into a field on your
page. The card form inside the modal is built from the payment provider’s secure
fields, embedded in Playto’s checkout, and the customer stays in the modal while
they pay. This keeps your integration free of PCI card-handling scope.
What it looks like
1
Your site with a Buy button
The checkout is embedded; nothing redirects yet.

2
The customer clicks Buy → the checkout opens as a modal
It overlays your page and asks for the customer’s contact details.

📸 Add screenshot: a capture of the modal overlaying your live store
(dimmed background) makes the “embedded” experience clearest. Open the demo,
click Buy now, and screenshot the full window.
3
The customer pays in the same modal
The card form opens in place, inside the modal. The card fields are the payment
provider’s secure fields, so there is no hand-off to a separate gateway page.
4
They're returned to your site
The modal closes and your page goes to your 
returnUrl. Your onSuccess
callback fires and you show your own confirmation.
When to use it
Good fit
You want checkout to feel native to your site, keep customers in context, and
fire your own post-purchase logic — without handling card data.
Consider instead
If you don’t want to write any code, a hosted payment link is simpler. If
you only need to create objects from a backend, use the API.
What you’ll need
- A Playto Pay merchant account (active) and a product or payment link to charge for.
- A page on your site to embed from and return to.
- For Live payments, your site’s domain approved by Playto. Test mode needs no approval. See Going live.
