Skip to content

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