We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 97734102 authored by Rik ter Beek's avatar Rik ter Beek Committed by GitHub

Merge pull request #125 from Adyen/develop-rik

#123 fix isssue for paypal recurring contracts
parents 6bc793cd ef980fc7
...@@ -119,8 +119,17 @@ class Agreement extends \Magento\Paypal\Model\Billing\Agreement ...@@ -119,8 +119,17 @@ class Agreement extends \Magento\Paypal\Model\Billing\Agreement
} }
if ($data['variant'] == 'paypal') { if ($data['variant'] == 'paypal') {
$email = "";
if (isset($data['tokenDetails']['tokenData']['EmailId'])) {
$email = $data['tokenDetails']['tokenData']['EmailId'];
} elseif (isset($data['lastKnownShopperEmail'])) {
$email = $data['lastKnownShopperEmail'];
}
$label = __('PayPal %1', $label = __('PayPal %1',
$data['lastKnownShopperEmail'] $email
); );
$this->setAgreementLabel($label); $this->setAgreementLabel($label);
} }
......
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