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")); });
coast
We love to travel and be inspired by nature in very different places. But there is a special one among them. Probably the most important for us. Ladoga. A magical and mystical place that attracts and changes human destinies, in addition to being breathtakingly beautiful. It creates new mysterious and wonderful stories. In many ways, the story of KATSU is one of them. A story that is nowhere near its end. A story that is being written right now, because we come to Ladoga and stay here again and again.
< Info
Model: SEA BOULDER
Color: Dark gray
Go to store
< Info
Model: WHITE NOSE
Color: Dark gray
Go to store