#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, 0 days ago, 23 messages
• kencoca, 1 days ago, 6 messages
• kencoca, 1 days ago, 12 messages
Hello! Error seems quite self explanatory to me, use this endpoint: https://stripe.com/docs/api/checkout/sessions/expire
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But when I request to expire the CheckoutSession, it said that only CheckoutSession in open status can be expire
{
"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.
Again, seems self explanatory. Why do you expect to be able to cancel a payment that has completed?
Yes, it's just our business logic, quite hard to explain to you. However, we want to cancel a completed payment to return money to our customer
You wouldn't cancel it, you'd just refund it: https://stripe.com/docs/refunds
If we use refund then it will have a refund fee, right?
Depends. For card payments, no: https://support.stripe.com/questions/understanding-fees-for-refunded-payments
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
But that's the only way to 'return money to customer'