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 ef980fc7 authored by Rik ter Beek's avatar Rik ter Beek

#123 fix isssue for paypal recurring contracts

parent f867a6fc
......@@ -119,8 +119,17 @@ class Agreement extends \Magento\Paypal\Model\Billing\Agreement
}
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',
$data['lastKnownShopperEmail']
$email
);
$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