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

Fix for issue #4 #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix for issue #4 #5

wants to merge 2 commits into from

Conversation

xanadu-3g
Copy link

Hi!
I've tried to fix issue #4, I might have broke some other functions, with replacing $this->SCA in the last line. I'm not aware why you were using the URL returned in the json instead of the original URL.

PS:
Thanks for the class.

It fixes 2 related bugs, when sending getStatement API calls. First SCA header fields were only added to POST requests, but getStatement is a GET and needs SCA depending on account country. And SCA->path doesn't contain the required GET parameters, such as currency.
@robclark56
Copy link
Owner

Thanks for the proposed changes.

Can you expand on this: " might have broke some other functions"

Can you please run this:
https://github.com/robclark56/TransferWise_PHP_SimpleAPIclass/blob/master/code/test.php

... with your changes

and confirm all works.

Thanks

Rob

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

Successfully merging this pull request may close these issues.

None yet

2 participants