-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification on Tracking Payment Status During Checkout #120
Comments
Hi 👋 Please see here for available webhook request event types.
If you are selling subscriptions you can use That webhook request includes a Subscription object that you can use to sync the data with your own database. Since this issue is not related to the SDK itself, I will close it. If you need support, it's best to visit our Help Center so that goes through our support channels. |
Thanks for response. |
When creating a Checkout using the API you can pass custom data ( https://docs.lemonsqueezy.com/api/checkouts#create-a-checkout const { data, error } = await createCheckout(storeId, variantId, {
checkoutData: {
custom: {
custom_user_id: "1234",
},
},
}); In the webhook request payload: ...
"meta": {
...
"custom_data": {
"custom_user_id": "1234"
}
} Does that help? These events should be what you are looking for:
|
No. I already implemented this. there is no issues on this. I believe that u now got the idea |
I am writing to seek clarification on the process of tracking the payment status during the checkout phase.
Currently, we need to accurately track the payment status to ensure that the checkout process is completed successfully. Additionally, we have observed that payment failure webhooks are being triggered when a user attempts to upgrade or downgrade their subscription.
Could you please provide guidance on the best practices or any specific methods we should implement to track the payment status effectively during the checkout?
The text was updated successfully, but these errors were encountered: