#Slush
1 messages · Page 1 of 1 (latest)
Hi, yes - are you seeing any errors?
No just wondering.
Also when issuing a refund to that payment intent ID
Will it subtract the money from both my account for the application fee and the destination account that collected the money
To learn more about refunds on destination charges, please visit https://stripe.com/docs/connect/destination-charges#issuing-refunds. You can choose to refund the application fee as well, https://stripe.com/docs/connect/destination-charges#refunding-app-fee
Yes I know, but I am just making sure that the refund doesnt fully subtract from my account
it also subtracts from the sellers account as well
Along with that while reading I am seeing this:
var options = new RefundCreateOptions
{
Charge = "{CHARGE_ID}",
RefundApplicationFee = true,
ReverseTransfer = true,
};
Is the Charge_ID the same as a Payment Intent ID?
Are they interchangeable? As what I am storing in my DB is the payment intent ID not the charge ID
In this case, the 'my account' the Platform account?
If so, the funds will be deducted from the Platform account. You can pull back the funds from the connected account to cover the refund, by setting the reverse_transfer parameter to true as you've shown above.
Please review this this document, https://stripe.com/docs/connect/destination-charges#issuing-refunds
Ahh understood!
Is the Charge_ID the same as a Payment Intent ID?
Are they interchangeable? As what I am storing in my DB is the payment intent ID not the charge ID
Missed that question, no these are not interchangeable. If you pass a Payment Intent is on the charge parameter above, you'd get an error.
So I would need to save the chargeID rather than the payment intent ID?
Or is there a simple way to get the charge ID from the payment intent ID?
That is correct. There is not, the Payment Intent Retrieve API, https://stripe.com/docs/api/payment_intents/retrieve will not return the charge id.
So is it even possible to get the chargeID from a payment intent webhook?
yes it is possible it's right there in the charges property
var paymentIntent = stripeEvent.Data.Object as PaymentIntent;
So is it inside that variable?
but you can just pass the payment_intent parameter on Refund creation for example: https://stripe.com/docs/api/refunds/create#create_refund-payment_intent
So what about here:
When refunding a destination charge
That is asking for the charge ID not the payment intent ID