#kencoca
1 messages · Page 1 of 1 (latest)
Hello kencoca, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• kencoca, 1 days ago, 6 messages
• kencoca, 1 days ago, 12 messages
Can you share the log that you complete the payment?
Ok so that Payment is generated when you confirmed a Checkout Session https://dashboard.stripe.com/test/logs/req_5WGEunGkPgkW2T
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
This CheckoutSession, despited being confirmed after your deactivation, but was created before deactivation
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Deactivate a PaymentLink wouldn't affect the previously generated CheckoutSesison from it, it just prevent to generate more Checkout Sessions after that
I have also tried to expire the CheckoutSession but it said that the CheckoutSession still open therefore it throw an exception. Any advise?
Ok, please wait
Oh, it was my mistake, I did not read the error message correctly
{
"error": {
"message": "Only Checkout Sessions with a status in ["open"] can be expired. This Checkout Session has a status of complete.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_gbMp7WVJVtXxHi?t=1697718399",
"type": "invalid_request_error"
}
}
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
If so, after I update the CheckoutSession then it will not able to complete the payment on the payment link, am I right?
The Checkout Session is already paid, so you can't change it anymore (which is also expected)
But if it is still open, then you can expire it
But PaymentLink deactivation doesn't have anything to do with any CheckoutSession it already generated. You would need to expire every one of those Checkout Session if that's what you want
I got your point, thank so much!
I want to ask one more thing: How I can get the SessionCheckout from a paymentLink ?
List Checkout Session, filter by payment_link https://stripe.com/docs/api/checkout/sessions/list#list_checkout_sessions-payment_link
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.