#romas
1 messages · Page 1 of 1 (latest)
Can you share a cs_xxx ID?
hold on
cs_test_a1d2OmZTANhCRnF4qA6vFkJJFBJarLZrVAi8zVPzKFSsYi1Nke9rfsmazw
this is the latest
Can you help me understand the connection between the Checkout Session and the Invoice?
Well, I want to implement this logic:
- Customer goes to invoice;
- Selects credit card as payment and redirected to Stripe checkout;
- Enters cc details and submits payment;
Now, at this step I need to lock invoice in my internal system to deny user any payment with different gateways until cc payment clears out.
- After successful payment invoice unlocks (payment_intent.succeeded or checkout.session.completed)
Got it, taking a look!
The issue you have is that we don't create a Payment Intent (and therefore the payment_intent.created event isn't fire) until the customer attempts a payment, not on session creation.
ooo, so only on checkout session completed payment_intent could see session metadata?
ha, so only by customer ref id payment intent is related to checkout.session ?
Correct. We changed this is a recent API version
Not sure I understand
How would you implement my desired logic? What event would you listen on webhooks to make my desired "lock"?
Hmm, thinking
any thoughts?