#red_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1435070021293310023
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- red_api, 54 minutes ago, 9 messages
- red_integration-security-checklist, 5 hours ago, 6 messages
- red_api, 3 days ago, 87 messages
- red_api, 5 days ago, 113 messages
Hi! It depends on your definition of abandoned. There are many ways this may happen. For example,
- Customer opened the checkout page with the Payment Element but never submitted
- Customer attempted the payment but didn’t complete a the authentication step
right
there's no authentication step for our supported methods
so no successful submitted card payment
how can I detect?
Can you clarify what do you define by abandon in your scenario?
they never submit the form for a successful payment
the integration with GoHighLevel is within an iFrame - I display a checkout frame. If their card doesn't go through, they can enter again...so abandoned is they close the page or navigate away, but effectively they never submit a successful payment
any ideas?
Still looking into this. Give me a moment.
thanks!
The Payment Element itself doesn't directly provide abandonment tracking. For the scenario where the customer closes the page or navigates away, you'll need to set up event listeners on your checkout page to track user activity and departure. Alternatively you can track the successful payment event. If you don't get the event within x amount of time that you can decide on, you can consider is abandoned.
how would I track the event if the page closes?
Are you talking about the Stripe event?
the event you are referring to: "If you don't get the event within x amount of time that you can decide on, you can consider is abandoned"
Yeap so I was referring to the Stripe event. Stripe event is triggered when the payment is successful. So if the custoemr abandons the page (leaves it there without doing anything, closes it, navigates away, etc.) you will not get the Stripe event sent to your webhook. So you will need to figure out what is a good amount of time for you before you can conside the checkout abandoned.
hmmm which webhook?
You can set up a webhook to listen for Stripe events: https://docs.stripe.com/webhooks
hmmm, ok. How do I link the events? Multiple users could go through the same checkout process together
You can track it on your end via the customer object or metadata.