#nirmalendu_62734

1 messages · Page 1 of 1 (latest)

clever lilyBOT
cosmic flicker
#

Hi there!

#

We know nothing about Salesforce here on Discord.

#

Are you using a plugin within Salesforce to use Stripe?

#

Or did you build your own integration with the Stripe API?

#

@mighty heron here

mighty heron
#

Hello

#

Final Response-- {
"id": "re_3NZpuBALTQAs5mrZ0Oprt4Cl",
"object": "refund",
"amount": 3050,
"balance_transaction": "txn_3NZpuBALTQAs5mrZ0I8dMoxZ",
"charge": "ch_3NZpuBALTQAs5mrZ0KifVegz",
"created": 1690893901,
"currency": "inr",
"metadata": {},
"payment_intent": "pi_3NZpuBALTQAs5mrZ0AUPFKF0",
"reason": null,
"receipt_number": null,
"source_transfer_reversal": null,
"status": "succeeded",
"transfer_reversal": null
}

#

We are doing post call out

#

and getting the correct response as above

#

but in stripe dashbaord when we are checking the amount is 30.50

#

instead of 3050 as refund amount

cosmic flicker
mighty heron
#

but we have a validation in place the refund amount cannot be greater than charge amount

#

the charge amount is 5888 INR

#

and so we are initiating partial refund as 3050

cosmic flicker
#

That's how the Stripe API works. If you want to refund 10$, in the API the amount should be 1000.

#

So you need to add some logic on your end to multiply the amount by 10 before sending it to Stripe.

mighty heron
#

any other work arounds

cosmic flicker
#

No that's the only way.

mighty heron
#

ok

#

thanks for your support