Skip to content

Commit 12ce929

Browse files
MC-34360: [Paypal Express Checkout] Can't place an order if the currency is euro
- use base currency code
1 parent c446aa3 commit 12ce929

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Paypal/Model/SmartButtonConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private function generatePaypalSdkUrl(string $page): string
131131
'merchant-id' => $this->config->getValue('merchant_id'),
132132
'locale' => $this->localeResolver->getLocale(),
133133
'intent' => $this->getIntent(),
134-
'currency' => $this->storeManager->getStore()->getCurrentCurrencyCode(),
134+
'currency' => $this->storeManager->getStore()->getBaseCurrencyCode(),
135135
];
136136
if ($disallowedFunding) {
137137
$params['disable-funding'] = $disallowedFunding;

app/code/Magento/Paypal/Test/Unit/Model/SmartButtonConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function setUp(): void
6161

6262
/** @var Store|MockObject $storeMock */
6363
$storeMock = $this->createMock(Store::class);
64-
$storeMock->method('getCurrentCurrencyCode')
64+
$storeMock->method('getBaseCurrencyCode')
6565
->willReturn('USD');
6666

6767
/** @var StoreManagerInterface|MockObject $storeManagerMock */

0 commit comments

Comments
 (0)