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

Problems with application fee #149

Open
bearn777 opened this issue Sep 6, 2019 · 1 comment
Open

Problems with application fee #149

bearn777 opened this issue Sep 6, 2019 · 1 comment

Comments

@bearn777
Copy link

bearn777 commented Sep 6, 2019

From official documentation (https://stripe.com/docs/upgrades#2019-03-14)
"The application_fee parameter on invoice API methods and the application_fee field on the invoice object have both been renamed to application_fee_amount."

In this case setApplicationFee method does not work correct and you will always get error, that parameter does not exists

@jupediaz
Copy link

jupediaz commented Mar 5, 2020

This issue seems closed, but still not solved on current code.

On src/Message/AuthorizeRequest.php

        if ($this->getApplicationFee()) {
            $data['application_fee'] = $this->getApplicationFeeInteger();
        }

Should be changed to

        if ($this->getApplicationFee()) {
            $data['application_fee_amount'] = $this->getApplicationFeeInteger();
        }

I have created a pull request to solve this: #172

Hope everything is fine and we can have this fixed.

Thank you very much.

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