#dalbeer
1 messages · Page 1 of 1 (latest)
not really but we can open a new one! What is your question, how can we help?
The scenario is that a user has placed an order for two items, but the user has canceled one of the ordered items. How can I refund the payment for that specific item?
what API did you use to take the payment? direct PaymentIntents, an Invoice, a CheckoutSession, something else?
currently doing with this stripe.PaymentIntent.create()
then you would calculate the amount that one of the items cost, and call the Refund API with that amount.
https://stripe.com/docs/api/refunds/create#create_refund-amount
https://stripe.com/docs/api/refunds/create#create_refund-payment_intent
i send the amount of 10 with the help curl but it didnot allow me
what was the exact error message and request ID req_xxx?
the amount i send in the body
could you share the exact error message and request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
note that amount:10 means for example $0.10, not $10.00 .
req_IQ77eadtTb1AP8
that request makes no sense, sorry
then how can i request i dont know
I'd suggest reading https://stripe.com/docs/refunds?dashboard-or-api=api#issuing and looking at the examples there
i need the same paymentintent id while accepting the total payment and split the total payment with specific items amount is it right ?
Hi! I'm taking over this thread.
So you have two succesfull PaymentIntent, and want to refund one of them?
no
i have one paymentintent with one order which have two order items
i had cancel one of the item and want to refund with that item amount
So create a partial refund for that PaymentIntent.
For example if the PaymentIntent was for $10, you can create a refund for $4.
Make sure to include the PaymentIntent ID and the amount you want refunded. https://stripe.com/docs/api/refunds/create