#Slush

1 messages · Page 1 of 1 (latest)

still mangoBOT
fickle crag
#

Hi, yes - are you seeing any errors?

serene goblet
#

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

fickle crag
serene goblet
#

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

fickle crag
#

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.

serene goblet
#

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

fickle crag
#

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.

serene goblet
#

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?

fickle crag
serene goblet
#

So is it even possible to get the chargeID from a payment intent webhook?

shut jolt
#

yes it is possible it's right there in the charges property

serene goblet
#

var paymentIntent = stripeEvent.Data.Object as PaymentIntent;

#

So is it inside that variable?

shut jolt
serene goblet
#

So what about here:

#

When refunding a destination charge

#

That is asking for the charge ID not the payment intent ID

shut jolt
#

that's just a simple example

#

the API supports both, so pass the PaymentIntent id instead

serene goblet
#

Ohh awesome!!!

#

Thank you!