Skip to content

Commit 5331471

Browse files
ENGCOM-4780: Fix the invalid currency error in credit card payment of PayPal Payflow Pro or Payments Pro #22399
- Merge Pull Request #22399 from Hailong/magento2:fix-paypal-payflow-pro-failure-with-cad-currency - Merged commits: 1. 43a22d4
2 parents 729650d + 43a22d4 commit 5331471

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/Paypal/Model/Payflow/Service/Request/SecureToken.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function requestToken(Quote $quote)
6464
$request->setTrxtype(Payflowpro::TRXTYPE_AUTH_ONLY);
6565
$request->setVerbosity('HIGH');
6666
$request->setAmt(0);
67+
$request->setCurrency($quote->getBaseCurrencyCode());
6768
$request->setCreatesecuretoken('Y');
6869
$request->setSecuretokenid($this->mathRandom->getUniqueHash());
6970
$request->setReturnurl($this->url->getUrl('paypal/transparent/response'));

0 commit comments

Comments
 (0)