var payments = new cp.CloudPayments({
language: "ru-RU",
email: "",
applePaySupport: true,
googlePaySupport: true,
yandexPaySupport: true,
tinkoffPaySupport: true,
tinkoffInstallmentSupport: true,
sbpSupport: true,
});
payments.pay("charge", {
publicId: "pk_876b5ec1a641e093cc80865ae9cb6",
description: "Пожертвование в пользу благотворительного фонда Солнечный город",
amount: 350,
currency: "RUB",
invoiceId: "123",
accountId: "123",
email: "",
skin: "classic",
requireEmail: true,
}).then(function(widgetResult) {
console.log('result', widgetResult);
}).catch(function(error) {
console.log('error', error);
});