We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 045c712 commit 3c9165eCopy full SHA for 3c9165e
KlarnaCheckoutGatewayFactory.php
@@ -66,8 +66,8 @@ protected function populateConfig(ArrayObject $config)
66
$klarnaConfig->merchantId = $config['merchant_id'];
67
$klarnaConfig->secret = $config['secret'];
68
$klarnaConfig->contentType = $config['contentType'];
69
- $klarnaConfig->termsUri = $config['termsUri'];
70
- $klarnaConfig->checkoutUri = $config['checkoutUri'];
+ $klarnaConfig->termsUri = $config['termsUri'] ?: $config['terms_uri'];
+ $klarnaConfig->checkoutUri = $config['checkoutUri'] ?: $config['checkout_uri'];
71
$klarnaConfig->baseUri = $config['sandbox'] ?
72
Constants::BASE_URI_SANDBOX :
73
Constants::BASE_URI_LIVE
0 commit comments