this.createCryptogram = function () { var result = checkout.createCryptogramPacket(); if (result.success) { // сформирована криптограмма alert(result.packet); } else { // найдены ошибки в введённых данных, объект `result.messages` формата: // { name: "В имени держателя карты слишком много символов", cardNumber: "Неправильный номер карты" } // где `name`, `cardNumber` соответствуют значениям атрибутов `` for (var msgName in result.messages) { alert(result.messages[msgName]); } } }; $(function () { /* Создание checkout */ checkout = new cp.Checkout( // public id из личного кабинета "test_api_pk_763343962bf0edd59a9a9ad01e744", // тег, содержащий поля данных карты document.getElementById("paymentFormSample")); });
Kola Peninsula
Historically, we, KATSU, are northerners. Our mission to incorporate the spirit of this silence and beauty in our stones with our own hands. To share this spirit with those who find unconditional happiness in simple observation of the primordial nature.
Model: BONGO
Color: Dark gray
Go to store
Info >
Model: ZEN
Color: Gray
Go to store
Model: BONGO
Color: Dark gray
Go to store
Info >
Info >
Model: BONGO
Color: Dark gray
Go to store
Info >
Info >
Model: ZEN
Color: Gray
Go to store