Closed timint closed 3 years ago
Hi,
If you'd like to use "DBNORDEAFI" you either enter it directly or use the constant \Svea\WebPay\Constant\PaymentMethod::NORDEA_FI
$order->usePaymentMethod(\Svea\WebPay\Constant\PaymentMethod::NORDEA_FI);
or
$order->usePaymentMethod('DBNORDEAFI');
The constants can be seen here: https://github.com/sveawebpay/php-integration/blob/master/src/Constant/PaymentMethod.php#L20
Thank you. Confirmed that the following works:
$order->usePaymentMethod(\Svea\WebPay\Constant\PaymentMethod::NORDEA_FI);
You should put ALL the definitions in the documentation.
I am unable to perform a specific test with Nordea Finland. I am told to use DBNORDEAFI.
$response = $swp->usePaymentMethod(\Svea\WebPay\Constant\PaymentMethod::DBNORDEAFI)
Fatal error: Uncaught Error: Undefined class constant 'DBNORDEAFI'
For the full set of code:
Using the following test account: