#stone

1 messages · Page 1 of 1 (latest)

limber pendantBOT
compact flint
#

Hi there, are you talking about the PaymentIntent of the first invoice generated by the subscription?

grave briar
#

Maybe, I guess it's a way.
Please tell me how to do it according to your idea.

compact flint
#

OK, you can get it from subscription.latest_invoice.payment_intent

grave briar
#

No, that's not what I want.
I want to get the subscription ID through cs_live_xxxxx, but do not depend on the content of the checkout.session.completed/checkout.session.async_payment_succeeded event, because checkout.session.completed/checkout.session.async_payment_succeeded is very slow in SEPA payment to reach my server.
I want to be able to get the subscription ID before it even arrives.

compact flint
#

Hmm, you should receive a checkout.session.completed immediately when your customer completed the checkout

grave briar
#

But this event will be called 2-5 days later.

#

In the sepa payment situation.

compact flint
#

Do you have a subscription ID that I can take a look?

grave briar
#

sub_1MaQATIXF5VHSVPpDAVQS9L4

#

is checkout.session.completed
sync event?

#

My failure.

#

You are right

compact flint
#

The checkout.session.completed event happened at 2023-02-11 20:59:36 UTC https://dashboard.stripe.com/events/evt_1MaQAWIXF5VHSVPpCwr7dVbn

Immediately after the checkout session was confirmed successfully https://dashboard.stripe.com/logs/req_8h2NXeqlgABdKz

grave briar