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")); });
russian ballet
Create magic mystery even behind the scenes. Play with light and shadow. Dance and live on the edge of contrast. It's natural for the Russian soul. And who would know it better than a Regular Russian Ballerina Daria Rusakova, whose name in Russian is so close in meaning to the word «gift». And this is our common gift — the best of unique, mysterious Russia. There is always a place for art in life. Dance it out vibrantly! Yours, KATSU