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

Charge convenience method doesn't authorize - FIXED: needs to set a confirmOrder arg #74

Open
b-yond opened this issue Mar 15, 2019 · 1 comment

Comments

@b-yond
Copy link

b-yond commented Mar 15, 2019

The confirmOrderReference function expects an 'authorization_amount' parameter.

You're setting this index for the authorize function in $authorizeParameters, but the confirmOrderReference will always return a Draft status without that parameter. If the status is "Draft", the authorize() function is never called, because of the condition in line 1428 if ($oroStatus['State'] === 'Open') {

I added this @ line 1368 and it worked fine:
$confirmParameters['authorization_amount'] = $requestParameters['charge_amount'];

Let me know if you need any more explanation.

@williamgalloh
Copy link

I have noticed the same issue as @b-yond.

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