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")); });

Html code will be here

NEW YORK Bridgehampton
How to add an extra value to an already expensive real estate? The best way is to put a bewitching little detail in an interior, for instance, our KATSU boulders.
APARTMENT in Seliger City
Minimalistic, balanced and comfortable design
High-tech apartment
An exciting residential project, where one small yellow stone turned into a powerful invigorating accent.
APARTMENT IN SINGAPORE
A special order for an apartment in Singapore was featured in the Business Times in Singapore
Loft-style apartment
This is an apartment that belongs to our good friends in the center of St. Petersburg. She is a brilliant film and theater artist, and he is a cameraman.
Scandinavian-style house
When a great designer ordered our stones for their personal space, not for a customer. The Giant Stone model fits perfectly and accentuates the Scandinavian style of the cottage interior.