#adelvalle

1 messages · Page 1 of 1 (latest)

warped hedgeBOT
honest lance
#

Hi there!

#

What is your question?

nimble rampart
#

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

honest lance
#

So what is your question? How to know when the payment was successful?

nimble rampart
#

yes

#

checkoutSession, is it not there?

honest lance
#

We recommend to listen to webhook events for this. Are you using Checkout Session to accept payments?

nimble rampart
#

yes

#

Im using Checkout session

#

is it not a good idea?

honest lance
nimble rampart
#

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

honest lance
#

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.

nimble rampart
#

and checkoutSession.getPaymentIntent is null

honest lance
#

Can you share the Checkout Session ID?

nimble rampart
#

cs_test_a11qvWnA1N5isRSdWhHRV7yS1AHGnyJXDyNUXe6JDMn0jqEGQZ2MXYL9rT

honest lance
#

Thanks! Give me a few minutes to look into this.

nimble rampart
#

ok

#

thanks

honest lance
#

The Checkout Session is complete and the PaymentIntent (pi_3LsPlfK8ASnZKS7J13XxxAVd) is succeeded. So what is the issue?

nimble rampart
#

when the session goes to the sucessURL in java, the payments is unpaid

#

maybe it will be later?

honest lance
#

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).