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 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