We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit 197af8a8 authored by acampos1916's avatar acampos1916

Revert "[PW-2360]: Removing decode of paywithgoogle.token, expected format is JSON string"

This reverts commit 32120f62
parent 32120f62
...@@ -63,8 +63,9 @@ class GooglePayAuthorizationDataBuilder implements BuilderInterface ...@@ -63,8 +63,9 @@ class GooglePayAuthorizationDataBuilder implements BuilderInterface
$requestBody['paymentMethod']['type'] = 'paywithgoogle'; $requestBody['paymentMethod']['type'] = 'paywithgoogle';
// get payment data // get payment data
if ($token) { if ($token) {
$parsedToken = json_decode($token);
try { try {
$requestBody['paymentMethod']['paywithgoogle.token'] = $token; $requestBody['paymentMethod']['paywithgoogle.token'] = $parsedToken;
} catch (\Exception $exception) { } catch (\Exception $exception) {
$this->adyenLogger->addAdyenDebug("exception: " . $exception->getMessage()); $this->adyenLogger->addAdyenDebug("exception: " . $exception->getMessage());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment