#Syouske
1 messages · Page 1 of 1 (latest)
Hi there, the py_ objects are charges objects, can you tell me what problem you are trying to solve?
i need to save py_ to refund it
but after the payment processing, stripe returns pi_
You can also create a refund with paymentIntent objects 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.
yes but it wont take the balance from stripe connect account
its taking the refund from main account
https://stripe.com/docs/api/refunds/create#create_refund-reverse_transfer you can set reverse_transfer to true to pull back the funds from the connected account to cover the refund
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
nice, thanks
do i need to do 2 refunds?
first, reverse the transfer
then refund the pi_?
No, you just need to create one refund with the payment_intent and set the reverse_transfer to true