Create an automation that records when people have clicked to make a purchase and update products with the Stripe product ID. This also sync products with stripe.
Copy webhook and paste to stripe cart tool
Make sure you automation is ‘ON’
Trigger webhook
Go to preview page, copy session id, go to line items table and paste this as “Session ID“ field value. When it’s done you can reload cart and you should be seeing your items. Just click ‘CHECKOUT’ button and it will generate the payment link but also trigger webhook
Check body
Click “Test trigger” and you should see the content of the webhook response. You can review the data, you will need it in the next steps.
Add log record
This is useful for debugging and quick review of customers that uses your link.
Update stripe product ids
Webhook in response has products and stripe product ID generated for them, you can assign them to products
Automation in practice
Customer generates payment
Automation updates stripe product id and sync products with stripe
In addition, if an error occurs, we provide a payload stringified that can be used for debugging purposes