#nirmalendu_62734
1 messages · Page 1 of 1 (latest)
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
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
This is the request you made to create the Refund: https://dashboard.stripe.com/test/logs/req_MmuzJ4U5tcSMbo
As you can see, you set amount: "3050", which is 30.50.
If you want 3050, then you need to set amount: "305000"
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
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.
any other work arounds
No that's the only way.