3. Create a checkout
You can now create a Checkout using the Price you just created.
Create a Checkout
<YOUR_SECRET_KEY_HERE>
with your API Secret KeyFor more details about the Checkout Create endpoint, refer to its API Reference.
Response
If everything worked, you should get a response like this:
Which is the Checkout object you just created.
You can see in the Response a parameter called checkout_url
:
This is the URL you can redirect your customer to, to complete the payment.
Now, when your customer goes to the payment link and successfully pays, how can your website or app be notified about this? This is important for handling post-payment actions, like updating an order status to “paid”. We use Webhooks for this.
Next
You will see now how to make your website or application react to a successful payment using Webhooks.
Receive webhooks
You can now create a Checkout using the Price you just created.