We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
try { require_once FS_DIR_APP . 'ext/sveawebpay/autoloader.php'; $config = Svea\WebPay\Config\ConfigurationService::getTestConfig(); $swp = Svea\WebPay\WebPay::createOrder($config); $swp->addCustomerDetails(....); $swp->addOrderRow($orderRows); $response = $swp->usePaymentMethod(\Svea\WebPay\Constant\PaymentMethod::DBNORDEAFI) ->setPayPageLanguage($order->data['language_code']) ->setReturnUrl(document::ilink('order_process')) ->setCancelUrl(document::ilink('checkout')) ->getPaymentUrl(); } catch ( \Exception $e ) { die($e->getMessage()); }
Using the following test account:
'commonCredentials' => array( 'merchantId' => '6708', 'secret' => 'a1.........................................................31' ),
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
Thank you. Confirmed that the following works:
You should put ALL the definitions in the documentation.
No branches or pull requests
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:
The text was updated successfully, but these errors were encountered: