Skip to content

Commit

Permalink
[klarna][checkout] Fix default uris options are not set corretly to c…
Browse files Browse the repository at this point in the history
…onfig obj.
  • Loading branch information
makasim committed Mar 22, 2017
1 parent 045c712 commit 3c9165e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KlarnaCheckoutGatewayFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ protected function populateConfig(ArrayObject $config)
$klarnaConfig->merchantId = $config['merchant_id'];
$klarnaConfig->secret = $config['secret'];
$klarnaConfig->contentType = $config['contentType'];
$klarnaConfig->termsUri = $config['termsUri'];
$klarnaConfig->checkoutUri = $config['checkoutUri'];
$klarnaConfig->termsUri = $config['termsUri'] ?: $config['terms_uri'];
$klarnaConfig->checkoutUri = $config['checkoutUri'] ?: $config['checkout_uri'];
$klarnaConfig->baseUri = $config['sandbox'] ?
Constants::BASE_URI_SANDBOX :
Constants::BASE_URI_LIVE
Expand Down

0 comments on commit 3c9165e

Please sign in to comment.