Understand how to redirect users back to your website after a successful payment.
Option 1: Set a success URL on the product creation.
Option 2: Set a success URL when creating a checkout session
success_url
parameter.https://yourwebsite.com?checkout_id=ch_1QyIQDw9cbFWdA1ry5Qc6I&order_id=ord_4ucZ7Ts3r7EhSrl5yQE4G6&customer_id=cust_2KaCAtu6l3tpjIr8Nr9XOp&subscription_id=sub_ILWMTY6uBim4EB0uxK6WE&product_id=prod_6tW66i0oZM7w1qXReHJrwg&signature=044bd1691d254c4ad4b31b7f246330adf09a9f07781cd639979a288623f4394c?
Query parameter | Description |
---|---|
checkout_id | The ID of the checkout session created for this payment. |
order_id | The ID of the order created after successful payment. |
customer_id | The customer ID, based on the email that executed the successful payment. |
subscription_id | The subscription ID of the product. |
product_id | The product ID that the payment is related to. |
request_id | Optional The request ID you provided when creating this checkout session. |
signature | All previous parameters signed by creem using your API-key, verifiable by you. |
|
separator, and hash it using SHA256. This will generate a signature that you can compare with the signature provided in the URL.