Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stripe: Inconsistency in specifying application fees for charges and refunds #3110

Open
robinbrandt opened this issue Jan 14, 2019 · 1 comment

Comments

@robinbrandt
Copy link

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.

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 in refund_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

@curiousepic
Copy link
Contributor

Marking this "of interest" before a cleanup of stale issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants