You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way the Stripe gateway in ActiveMerchant handles the application_fee parameter for #authorize and #capture is different from the way it handles refund_fee_amount in refund for non fractional currencies (e.g. JPY) which is a bit confusing.
The way the Stripe gateway in ActiveMerchant handles the
application_fee
parameter for#authorize
and#capture
is different from the way it handlesrefund_fee_amount
inrefund
for non fractional currencies (e.g. JPY) which is a bit confusing.For example in order to create a fee of 6 JPY you would pass
application_fee: 6
. In order to refund the same amount you'd have to pass inrefund_fee_amount: 600
because#localized_amount
(https://github.com/activemerchant/active_merchant/blob/master/lib/active_merchant/billing/gateway.rb#L269) divides the value by 100 before it gets passed to the Stripe API.ActiveMerchant version: 1.90
The text was updated successfully, but these errors were encountered: