Closed code-quantum closed 6 years ago
Hello, unfortunately Swedbank Payment Portal doesn't support any other currencies, but only Euro at the moment. That's why a library do not allow to change currency code in Amount object.
It's unclear now when SPP will support multi currencies on HPS/HCC, but we'll update a library accordingly.
How to set currency for HPS paymant method?
$txnDetails = new TxnDetails( $riskAction, $merchantReferenceId, new Amount($purchaseAmount), new ThreeDSecure( 'Order nr: ' . $merchantReferenceId, $this->callback_domain, new \DateTime() ) );
If i looking at SwedbankPaymentPortal\SharedEntity\Amount class, I see that private $currency = 'EUR' is hardcoded and methods for modify currency is not provided.