#Crawl
1 messages · Page 1 of 1 (latest)
Hi 👋 there isn't currently a prebuilt way to deduplicate based on the email addressed used, so you will need to add custom logic to achieve that behavior.
You can either add logic in front of the Checkout Experience to check the customer email first, and then avoid sending them to a Checkout Session if you detect they already have a subscription, or send them to a Checkout Session that doesn't give a free trial if the free trial is primary focus.
You could also listen for checkout.session.completed Events, check the email that was used, and then cancel the Subscription if you detect it is a duplicate.
there is a no code solution for that ?
I don't believe so
So how can I managed that in webhook ?
let's say a user is taking a subcription using a checkout link
Can we remove the trial after the checkout is completed when received in webhook ?
Yes, once you receive the webhook event you can do the necessary checks to determine whether it is a duplicate, and you can then make a request to update the Subscription. I would be hesitant to remove the trial period, because doing so will force the Subscription to the next billing period which will force a payment. If the customer isn't expecting this they could end up disputing the payment.
Any time!