Skip to content

Commit

Permalink
Merge pull request #59 from wirecard/checkoutPortal
Browse files Browse the repository at this point in the history
Update checkoutportal link
  • Loading branch information
rinnhofer authored Aug 4, 2017
2 parents de985d8 + 5a0a1ed commit 98ee7f8
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions Frontend/WirecardCheckoutSeamless/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,23 @@ public function getInfo()
$shopversion = '>5.2.21';
}

$copLink = '<a href="https://checkout.wirecard.com/cop/'
. '?shopsystem=Shopware'
. '&shopversion=' . urlencode($shopversion)
. '&integration=WCS'
. '&pluginversion=' . $this->getVersion()
. '" target="_blank">Wirecard Checkout Portal</a>';

$language = Shopware()->Locale()->getLanguage();

switch ($language) {
case 'en':
$copLink = '<a href="https://checkoutportal.com/gb/shopware/" target="_blank">Wirecard Checkout Portal</a>';
break;
case 'it':
$copLink = '<a href="https://checkoutportal.com/it/shopware/" target="_blank">Wirecard Checkout Portal</a>';
break;
case 'nl':
$copLink = '<a href="https://checkoutportal.com/nl/shopware/" target="_blank">Wirecard Checkout Portal</a>';
break;
case 'de':
default:
$copLink = '<a href="https://checkoutportal.com/de/shopware/" target="_blank">Wirecard Checkout Portal</a>';
break;
}

$image = dirname(__FILE__) . '/wirecard-logo.png';
$imageData = base64_encode(file_get_contents($image));
Expand Down

0 comments on commit 98ee7f8

Please sign in to comment.