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

Dividing with non-numeric #2

Open
bojmaliev opened this issue Feb 2, 2021 · 0 comments
Open

Dividing with non-numeric #2

bojmaliev opened this issue Feb 2, 2021 · 0 comments

Comments

@bojmaliev
Copy link

For some transactions, If they were declined we have self-closed CAPTURE_AMT tag which means It's isset but its empty.
Exception is thrown when we try to divide "" with 100.
My suggestion is to add: !empty when checking if it is isset

$paymentData[Payment::PROP_AMOUNT] = $responseParams['capture_amt'] / 100;

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

1 participant