Skip to content

Commit 71004ed

Browse files
committed
ACP2E-3028: Paylater message not showing in PDP for Canadian paypal merchant account
1 parent 4116ba0 commit 71004ed

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

app/code/Magento/Paypal/CustomerData/BuyerCountry.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@
44
* Copyright 2024 Adobe
55
* All Rights Reserved.
66
*
7-
* NOTICE: All information contained herein is, and remains
8-
* the property of Adobe and its suppliers, if any. The intellectual
9-
* and technical concepts contained herein are proprietary to Adobe
10-
* and its suppliers and are protected by all applicable intellectual
11-
* property laws, including trade secret and copyright laws.
12-
* Dissemination of this information or reproduction of this material
13-
* is strictly forbidden unless prior written permission is obtained
14-
* from Adobe.
157
* ************************************************************************
168
*/
179
declare(strict_types=1);
@@ -52,6 +44,9 @@ public function getSectionData()
5244
$country = $address->getCountryId();
5345
}
5446
} catch (NoSuchEntityException $e) {
47+
return [
48+
'code' => null
49+
];
5550
}
5651

5752
return [

app/code/Magento/Paypal/view/frontend/web/js/view/paylater.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ define([
4848
*/
4949
initialize: function () {
5050
let buyerCountry = customerData.get('paypal-buyer-country');
51+
5152
this.buyerCountry = buyerCountry().code;
5253

5354
if (!this.buyerCountry) {

0 commit comments

Comments
 (0)