#krishna_80697
1 messages · Page 1 of 1 (latest)
What Stripe Product are you using ?
@mental peak let's keep talking here please:
Hi mike, In my case i didnot even enter the card details, but opened the payment page for a longer time without entering the card details. So, i am expecting some event or some redirect URL property to fire in this case, so that i can handle my custom codes. Is there any possibility?
Hi os4m37, I am using stripe payment gateway
Can you share a link to the guide you are following ?
Using Checkout Session you can't implement a logic for monitoring page opening, you need to adopt a more customizable integration(e.g. Stripe Element ) and you monitor page redirection in your integration
can help me where i can get the code snippet for the StripeElement
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
Or you can use Stripe embedded Checkout:
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=embedded-checkout
using the Stripe embedded Checkout: URL provided above, i didnot see any options to handle the events when page is idel witout entering any card details and keep the page open for a long time. Please advise
Yes as I said earlier, you need to implement this in your integration not in Stripe component
For example, when user hits on submit button, you make a call to your API, in your backend you monitor the payment for 10sec for example, if nothing happens, your integration triggers something and handle it
once i hit submit button, i am calling checkout URL. Later my code will come to my control only either through Success URL, Failed URL or Webhook response only.
So you need to add another logic in your integration to handle the user action opening a Checkout sesison without completing it
You can't achieve this only by relying on Stripe API, this is not supported
got an idea upon your suggestion
while, calling checkout URL, i can keep a flag in DB, and i will keep monitoring the flag for a certain time.. if there is no changes in the flag i assume, there there no action happening from the checkout URL. so, that i can redirect back to home page
hope this works
I have another question:
yes that's a good option
Thank you.
At checkout page, i have a checkbox
how to remove that Checkbox from the payment checkout page
I don't want to show the checkbox - "Securely save my information for 1-click checkout" option
sure, i will check further