Skip to content

Commit

Permalink
XTC specific bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlkimMedia committed Jun 18, 2021
1 parent 2dfbe07 commit aa805b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public function getJs($placement = 'Cart')
$language = $this->configHelper->getLanguage();
$currency = $this->configHelper->getCurrency();
$checkoutSessionId = (!empty($_SESSION['amazon_checkout_session']) ? $_SESSION['amazon_checkout_session'] : '');
$jsPath = DIR_WS_CATALOG . 'includes/modules/payment/amazon_pay/js/amazon-pay.js';
$checkoutButtonColor = APC_CHECKOUT_BUTTON_COLOR;
$loginButtonColor = APC_LOGIN_BUTTON_COLOR;

Expand All @@ -124,6 +125,7 @@ public function getJs($placement = 'Cart')

$return = <<<EOT
<script src="https://static-eu.payments-amazon.com/checkout.js"></script>
<script src="$jsPath"></script>
<script type="text/javascript" charset="utf-8">
try{
Expand Down
9 changes: 7 additions & 2 deletions new_files/admin/amazon_pay_configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@
break;
}
}
require (DIR_WS_INCLUDES.'head.php');
?>
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $_SESSION['language_charset']; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<script type="text/javascript" src="includes/general.js"></script>
<style>
.alert{
padding:5px;
Expand Down

0 comments on commit aa805b0

Please sign in to comment.