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 to issue of exception being thrown for successful transaction #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

khantilpatel
Copy link

@khantilpatel khantilpatel commented Aug 28, 2018

We've had issues in production when capturing transaction for an authorized token the transaction was successful however the isSuccessfulResponse returned false. After bunch of logging we found that BluePay API was sending status value as APPROVED\r. Because of the appended character \r, method isSuccessfulResponse was returning false.

Note that we were not able to obtain any particular case when BluePay API would send such value, it'd just appear pretty randomly.

So to fix that I've trimmed the status and message values. We've deployed this fix to production and it seem to have fixed our issue. Hope this will help many others who are processing transactions in two steps Authorize & Capture.

We've had issues when capture transaction for an authorized token where the transaction was successful however the `isSuccessfulResponse` returned false. After bunch of logging we found that BluePay API was sending status value as `APPROVED\r`. Because of appended character `\r`, method `isSuccessfulResponse` was returning false.
@khantilpatel khantilpatel changed the title Fix to throwing exception for successful transaction Fix to issue of exception being thrown for successful transaction Aug 28, 2018
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.

1 participant