Lemon Squeezy
1. Add the webhook
Section titled “1. Add the webhook”- In Settings → Integrations, select Connect next to Lemon Squeezy. Pingado shows your webhook URL.
- In Lemon Squeezy, go to Settings → Webhooks, add the URL and a signing secret of your choice.
- Select
order_created,subscription_createdandsubscription_payment_success. - Paste the same signing secret into Pingado.
2. Set the redirect URL
Section titled “2. Set the redirect URL”In each product’s settings, set the button link after purchase to:
https://yoursite.com/thanks?order_id=[order_id]3. Pass the visitor ID through checkout
Section titled “3. Pass the visitor ID through checkout”Checkout links: nothing to do. Pingado adds the visitor ID as checkout[custom][pg_vid] to every Lemon Squeezy checkout link on your pages.
Checkouts you create with the API: set it in the checkout data:
checkout_data: { custom: { pg_vid: vid } }