Quickstart
This quickstart puts the embed on a test page and takes one purchase through approval, using test keys. For the detail behind each step, see Add the embed.
Create and publish a product
In the portal, create a product with your quote’s fields and publish it. See Set up a product.
Get a test key and allow your website
On the product’s API keys page, create a test publishable key (pk_test_…) and add the website you’ll test on, such as http://localhost:3000.
Add the script and protect your pay button
Add the embed to your quote pages’ shared layout, and your own file to the page with the pay button. Copy the embed’s tag from the product’s Embed page: it has the current version and its integrity hash filled in.
In that file, call protect on the button that continues to payment:
Press pay and approve
On the product’s Approval settings, set When to ask for approval to Every purchase and publish, so the pause panel shows without an agent.
Click your pay button. The checkout pauses and shows a link. Open the link, complete the approval page and enter the code. With a test key, the code is shown on the page instead of being texted. Your checkout then continues to payment.
This is an indicative example to get you started. Your quote’s fields and your page will look different.