-
Notifications
You must be signed in to change notification settings - Fork 33
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
Credit Card Charge Response getBody() method returns an empty value #30
Comments
Seconded, we just started getting reports today of payments failing, and this seems to be the root. I'd guess their API just implemented some sort of idempotency check today, ignoring duplicate requests (with the same request-id), and unfortunately this SDK specifically performs exactly that. |
Yeah we are also facing the same issue with charge from Friday. Can you please share any solution? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This wasn't an issue until today, no other website or code changes were made in the last week. My only guess is that intuit changed their API response handling.
Within the PaymentClient class the "charge" method has a duplicate httpClient->send method call. This is now causing the first call to have a valid "$response->getBody()" value, while the second call, which is the one that gets returned by the "charge" method to have an empty body value. Up until today the second "send" method call returned a valid body response. Today's issue caused the credit card to be charged successfully, but the order to fail because the body was empty and the response couldn't be verified as successful or not. Commenting out line 95 resolves the issue.
Line 95: $response = $this->httpClient->send($request);
Another item to note, there is also a duplicate "send" method call on line 110 within the voidChargeTransaction method of this same class.
The text was updated successfully, but these errors were encountered: