Commit a623d7bf authored by Andy J's avatar Andy J

Article configuration finance box

parent cd8931e0
......@@ -9,7 +9,7 @@ $oPlugin = Plugin::getPluginById('jtl_paypal');
require_once str_replace('frontend', 'paymentmethod', $oPlugin->cFrontendPfad) . '/class/PayPalFinance.class.php';
$args_arr['io']->register('jtl_paypal_get_presentment', function($amount, $currency) use($oPlugin) {
$amount = (float)$amount;
$amount = (float) is_array($amount) ? $amount['price'] : $amount;
$currency = $currency !== null
? $currency
: $_SESSION['Waehrung']->cISO;
......
......@@ -42,7 +42,7 @@
$.evo.io().call('jtl_paypal_get_presentment', [amount, currency], this, function(error, data) {
if (error) return;
$(data.options.selector)
.replaceWith(data.response);
.html(data.response || '');
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment