Skip to content

Commit dcdf6e6

Browse files
committed
ACP2E-3028: Paylater message not showing in PDP for Canadian paypal merchant account
1 parent 0beb532 commit dcdf6e6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/code/Magento/Paypal/Block/PayLater/Banner.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public function getJsLayout()
105105
$componentAttributes = $this->jsLayout['components']['payLater']['config']['attributes'] ?? [];
106106
$config['attributes'] = array_replace($this->getStyleAttributesConfig(), $componentAttributes);
107107
$config['attributes']['data-pp-placement'] = $this->placement;
108+
$config['attributes']['data-pp-buyercountry'] = 'US'; // this should be dynamic. Possible values listed here: https://developer.paypal.com/limited-release/sdk-pay-later-messaging-cross-border/#link-renderthemessageswiththebuyercountryparameter
108109

109110
$this->jsLayout = [
110111
'components' => [

app/code/Magento/Paypal/view/frontend/web/template/paylater.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
'data-pp-style-text-size': getAttribute('data-pp-style-text-size'),
1616
'data-pp-style-color': getAttribute('data-pp-style-color'),
1717
'data-pp-style-ratio': getAttribute('data-pp-style-ratio'),
18+
'data-pp-buyercountry': getAttribute('data-pp-buyercountry')
1819
}" ></div>
1920

0 commit comments

Comments
 (0)