Answer the question
In order to leave comments, you need to log in
How to get the total value in the cart to send to the payment aggregator widget?
There is a code (bank_transfer.tpl - added a handler to the button):
<script >
var amount = \\тут проблема
button.onclick = function() {
var widget = new cp.CloudPayments();
widget.charge({ // options
publicId : 'pk', //id из личного кабинета
description : 'Оплата товаров Shone.kz', //назначение
amount : amount, //сумма
currency : 'KZT', //валюта
invoiceId : '1234567', //номер заказа (необязательно)
accountId : '[email protected]', //идентификатор плательщика (необязательно)
data : {
myProp : 'myProp value' //произвольный набор параметров
}
})
};
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question