Skip to content

Commit

Permalink
Update: add Eureka scoring token response to exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
BeBlood committed Sep 7, 2020
1 parent 1ce7524 commit 72d9d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Gateway/Client/EurekaPaymentGatewayClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public function getScoringToken(string $type, array $options)

if ('false' === $crawler->filterXPath('//paymentagreement')->text()) {
throw new \UnexpectedValueException(
sprintf('The scoring token request failed: %s', $crawler->filterXPath('//responsemessage')->text())
sprintf('The scoring token request failed: %s. Scoring token response: %s', $crawler->filterXPath('//responsemessage')->text(), (string) $tokenResponse->getBody())
);
}

Expand Down

0 comments on commit 72d9d08

Please sign in to comment.