#adelvalle
1 messages · Page 1 of 1 (latest)
Hi!!
I have done a session with SEPA payment, and it's ok, but when the session goes to success url, i cant know if the payment has done or not.
the status is unpaid
but at Stripe I can see that the payment has done
So what is your question? How to know when the payment was successful?
We recommend to listen to webhook events for this. Are you using Checkout Session to accept payments?
Great! This is our recommended integration. So here's how you can listen to webhook event for Checkout: https://stripe.com/docs/payments/checkout/fulfill-orders
but is this possible in a web java application?
but the checkoutSession status is complete
not processing
I have an example: I paid with SEPA, and when the process goes to successURL, session status is complete, subscription is active
but paymenteStatus is unpaid
checkout session is not processing
SEPA is a delayed payment method, as mentioned here: https://stripe.com/docs/payments/sepa-debit
This means that it can take up to 14 business days to receive notification on the success or failure of a payment after you initiate a debit from the customer’s account, though the average is five business days.
and checkoutSession.getPaymentIntent is null
Can you share the Checkout Session ID?
cs_test_a11qvWnA1N5isRSdWhHRV7yS1AHGnyJXDyNUXe6JDMn0jqEGQZ2MXYL9rT
Thanks! Give me a few minutes to look into this.
The Checkout Session is complete and the PaymentIntent (pi_3LsPlfK8ASnZKS7J13XxxAVd) is succeeded. So what is the issue?
when the session goes to the sucessURL in java, the payments is unpaid
maybe it will be later?
maybe it will be later?
Exactly, as I mentioned in the beginning SEPA is a delayed payment method. That's why you should use Webhook events to know when the payment succeeded (and not rely on the sucessURL).
This is what you should do: https://stripe.com/docs/payments/checkout/fulfill-orders