#jensen_84691
1 messages · Page 1 of 1 (latest)
Hello! 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.
- jensen_84691, 18 hours ago, 15 messages
- jensen_84691, 18 hours ago, 12 messages
- jensen_84691, 2 days ago, 64 messages
- jensen_84691, 3 days ago, 18 messages
- jensen_84691, 3 days ago, 40 messages
hello! I'm afraid i don't quite understand the question. The PaymentIntent object doesn't have any reference to a refund. Can you share more on what you're trying to do?
webhook I only listened to [checkout.session.completed], but there is no ID in it that I think can be refunded. What should I do
The Checkout Session object has a payment_intent parameter : https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
you can pass in that PaymentIntent id when creating a refund : https://stripe.com/docs/api/refunds/create#create_refund-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
$stripe->refunds->create(['paymentIntent' => 'pi_3Oa7kBJtbMy2qd3L1z6KPb6f']);
Is that right?
you can try running it