#youngjunwoo92 - SC&T
1 messages ยท Page 1 of 1 (latest)
Hi ๐
- You would determine the amount to be refunded based on the single product. You can specify an amount along with the charge when creating a refund
- You can specify reversing the transfer when creating the refund
3). Stripe can debit the external account of the connect account if the refund exceeds their Stripe balance
Ahh Thank you. When creating paymentIntent for separate charges and transfer, if buyers put 3 items in shopping carts, is it good practice to use line_items?
Payment Intents do not support line items. You can use line items with Checkout Sessions though.
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items
Oh, then in that case, if buyer wanted to refund just 1 specific item, platform manually figure out how specific amount?
Are these defined as Products in the Stripe account? Are you using Price objects?
https://stripe.com/docs/api/products
https://stripe.com/docs/api/prices
When creating products in our database, are we supposed to create products object in the Stripe dashboard?
You aren't required to but it helps when you want to re-use Price objects rather than calculating the price yourself for each transaction
I understood. I am sorry to ask you so many questions, but one more thing for now. So in the same situation, where buyers buy 3 products from 3 different sellers. When creating paymentIntent, I have to specify sellers' account id in the transfer_data parameter to be able to use reverse_transfer when creating refunds?
I am confused because the document only shows how to create paymentIntent and transfer manually. It does not show how to transfer to the sellers when creating paymentIntent at the same time ๐ฆ
That is because, when you have multiple parties associated with a single payment, you need to create separate transfers. Your app needs to determine how to split the amounts.
You don't use transfer data when creating separate charges and transfers, just transfer group. You'll want to make sure you've reviewed the charge type closely.
https://stripe.com/docs/connect/charges-transfers
Let's say that I've created built api that is exactly same as in the docs. I created charge using amount, currency, and trasnfer_group Then, I transferred to 2 separate destination. In this case, when I create refund, am I supposed to fill transfer_reversal parameter with what I have put in transfer_group?
๐ stepping in here as @molten hatch needs to step away. Give me a moment to catch up
If you want to reverse transfers related to Separate Charges & Transfers then you have to reverse the transfers separately from the refund.
You can only reverse a transfer via a refund (with reverse_transfer param) if it is a destination charge.
oh okay, that makes sense. So platform needs to manually create reverse transfer
Yep you would use https://stripe.com/docs/api/transfer_reversals/create
transfer_group can be helpful to track the transfers related to a charge
So you know which to reverse if you refund a charge
how can I use transfer_group to find which to reverse?
Gotcha Thank you!