Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Возможная информация на платежной форме

...

Название

...

Описание

...

Особенности

...

Обязательность

...

card

...

Номер карты

...

Поля форми

Назва

Опис

Особливості

card

Status
colourGreen
titleОБ'язковий

Номер картки

16 цифр

exp month

Status
colourGreen
title

...

exp month

...

Месяц окончание срока действия карты

...

ОБ'язковий

Термін дії (місяць)

2 цифри

exp year

Status
colourGreen
title

...

exp year

...

Год окончания срока действия карты

...

ОБ'язковий

Термін дії (рік)

4 цифри

cvv2

Status
colourGreen
title

...

ОБ'язковий

CVV код

...

3

...

цифри

amount

Status
colourGreen
title

...

amount

...

ОБ'язковий

Сума оплати

company

Status
colour

...

Yellow
title

...

company

не ОБ'язковий

Назва мерчанта

description

Status
colourYellow
title

...

description

...

не ОБ'язковий

Опис

Max 5000

...

символів

order

Status
colourYellow
title

...

не ОБ'язковий

Ордер

...

оплати

Max 32

...

символи

ext1ext10

Status
colourYellow
title

...

ext1ext10

...

не ОБ'язковий

10 додаткових полів

Max 1024 символа в

...

кожному ext

...

полі

email

Status
colourYellow
title

...

email

...

не ОБ'язковий

Пошта клієнта

Max 255

...

символів

first name

Status
colourYellow
title

...

first name

...

не ОБ'язковий

Ім'я клієнта

Max 32

...

символи

last name

Status
colourYellow
title

...

last name

...

не ОБ'язковий

Прізвище клієнта

Max 32

...

символи

phone

Status
colourYellow
title

...

не ОБ'язковий

Телефон

...

клієнта

Формат

...

телефону 380…

address

Status
colourYellow
title

...

address

...

Адрес клиента

...

не ОБ'язковий

Адреса клієнта

Max 255 символів

zip

Status
colourYellow
title

...

zip

...

не ОБ'язковий

Поштовий індекс клієнта

Max 32

...

символи

city

Status
colourYellow
title

...

city

...

не ОБ'язковий

Місто клієнта

Max 32

...

символи

country

Status
colourYellow
title

...

country

...

Страна клиента

...

не ОБ'язковий

Країна клієнта

Стандарт ISO 3166-1 alpha-2

state

Status
colourYellow
title

...

не ОБ'язковий

Штат

...

клієнта

Код штата,

...

провінції або області

Стандарт ISO 3166-2

...

Status
colourYellow
titleнет

Примеры кода

...


Приклади коду

Expand
title

...

Приклад коду IE форми
Code Block
languagehtml
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Payment Page</title>
        <link type="text/css" rel="stylesheet" href="../resources/css/bootstrap.min.css" />
        <link type="text/css" rel="stylesheet" href="../resources/css/bootstrapresponsive.min.css" />
        <link type="text/css" rel="stylesheet" href="../resources/css/base.css" />
    </head>
    <body>

<!-- header -->

        <div class="container" >
            <div class="row">
                <div class="span3 offset2">
                    <h1>Payment Form</h1>
                </div>
                <div class="span5">
                    <div class="language">
                        <ul class="inline">
                            <li><img id="en" lang="en_EN" src="../resources/img/en.png" title="English" /></li>
                            <li><img id="de" lang="de_DE" src="../resources/img/de.png" title="Deutsch" /></li>
                            <li><img id="fr" lang="fr_FR" src="../resources/img/fr.png" title="Francais" /></li>
                            <li><img id="it" lang="it_IT" src="../resources/img/it.png" title="Italiana" /></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="span8 offset2">
                    <hr>
                </div>
            </div>
        </div>

<!-- form -->

        <div class="container">
            <div class="row"><div class="span8 offset2">
                <div class="alert alerterror msg-error">Declined by processing</div>
            </div>
        </div>
        <form action="" method="post" name="process" id="process">
            <div class="row">
                <div class="span8 offset2">
                    <div class="form-inline product"></div>
                </div>
            </div>
            <div class="row">
                <div class="span8 offset2">
                    <legend>Enter your personal details</legend>
                    <div class="row">
                        <div class="span4">
                            <div class="form-horizontal form">
                                <label class="control-label" for="first_name">First name</label>
                                <div class="controls"><input type="text" name="first_name" value="John" /></div>
                            </div>
                        </div>
                        <div class="span4">
                            <div class="form-horizontal form">
                                <label class="control-label" for="last_name">Last name</label>
                                <div class="controls"><input type="text" name="last_name" value="Joe" /></div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="span8">
                            <div class="form-horizontal form">
                                <label class="control-label" for="address">Address</label>
                                <div class="controls" style="padding-right:24px;">
                                    <input type="text" name="address" value="Str. Prermohi 12" style="width: 100%;" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="span4">
                            <div class="form-horizontal form">
                                <label class="control-label" for="city">City</label>
                                <div class="controls">
                                    <input type="text" name="city" value="Gotham" />
                                </div>
                            </div>
                        </div>
                        <div class="span4">
                            <div class="form-horizontal form">
                                <label class="control-label" for="zip">ZIP/Postal code</label>
                                <div class="controls"><input type="text" name="zip" value="24958" /></div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="span4">
                            <div class="form-horizontal form">
                                <label class="control-label" for="country">Country</label>
                                <div class="controls">
                                    <select name="country">
                                        <option value="">Select please</option>
                                        <option value="UA" selected="selected">Ukraine</option>
                                        <option value="GB">United Kingdom</option>
                                        <option value="US">United States of America</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="span4">
                            <div class="form-horizontal form">
                                <label class="control-label" for="state">State</label>
                                <div class="controls">
                                    <select name="state">
                                        <option value="">Select please</option>
                                        <option value="NA" selected="selected">Non US/Canada/Australia</option>
                                        <optgroup label="US States">
                                            <option value="WA">Washington</option>
                                        </optgroup>
                                        <optgroup label="Canadian Provinces">
                                            <option value="BC">British Columbia</option>
                                        </optgroup>
                                        <optgroup label="Australian Territories">
                                            <option value="VIC">Victoria</option>
                                        </optgroup>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="span4">
                            <div class="form-horizontal form">
                                <label class="control-label" for="phone">Phone</label>
                                <div class="controls">
                                    <input type="text" name="phone" value="+380654124958" />
                                </div>
                            </div>
                        </div>
                        <div class="span4">
                            <div class="form-horizontal form">
                                <label class="control-label" for="email">Email</label>
                                <div class="controls">
                                    <input type="text" name="email" value="john_doe@mm.tt" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="span8 offset2">
                    <legend>Enter your card information</legend>
                    <div class="row">
                        <div class="span4">
                            <div class="form-horizontal form">
                                <div class="control-group">
                                    <label class="control-label" for="card_num">Card number</label>
                                    <div class="controls"><input type="text" name="card_num" value="" id="card_num" /></div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label" for="card_exp_month">Expiration date</label>
                                    <div class="controls">
                                        <select name="card_exp_month" id="card_exp_month" style="width: auto;">
                                            <option value="" selected="selected">Select</option>
                                            <option value="01">01</option>
                                            <option value="02">02</option>
                                            <option value="03">03</option>
                                            <option value="04">04</option>
                                            <option value="05">05</option>
                                            <option value="06">06</option>
                                            <option value="07">07</option>
                                            <option value="08">08</option>
                                            <option value="09">09</option>
                                            <option value="10">10</option>
                                            <option value="11">11</option>
                                            <option value="12">12</option>
                                        </select>
                                        <select name="card_exp_year" id="card_exp_year" style="width: auto;">
                                            <option value="" selected="selected">Select</option>
                                            <option value="2018">2018</option>
                                            <option value="2019">2019</option>
                                            <option value="2020">2020</option>
                                            <option value="2021">2021</option>
                                            <option value="2022">2022</option>
                                            <option value="2023">2023</option>
                                            <option value="2024">2024</option>
                                            <option value="2025">2025</option>
                                            <option value="2026">2026</option>
                                            <option value="2027">2027</option>
                                            <option value="2028">2028</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label class="control-label" for="email">CVC2/CVV2</label>
                                    <div class="controls" style="position:relative;">
                                        <img class="info" id="info" src="../resources/img/info.png" />
                                        <input type="password" name="cvv2" value="" maxlength="4" autocomplete="off" style="width: 30px;" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="span8 offset2">
                    <div class="form-actions submit">
                        <button id="sbmt" type="submit" class="btn btn-large btnprimary">PROCESS TRANSACTION</button>
                    </div>
                </div>
            </div>
        </form>
    </div>

<!-- modal -->

    <div id="info-modal" class="modal hide fade">
        <div class="modal-header">
            <button type="button" class="close">?</button>
            <h4>How to find the CVV / CVC on your credit card</h4>
        </div>
        <div class="modal-body">
            <p>The CVV / CVC is used to help validate that a genuine card is
                being used during a transaction. The credit card company uses those codes to
                verify that the person making this purchase actually has the credit card in
                their possession. It is required for online transactions starting on January
                1st, 2003.
            </p>
            <p>With a Visa or Master Card the CVV/CVC is a three-digit
                security code printed on the back side of the card.
            </p>
            <p style="text-align: center;">
                <img src="../resources/img/card.jpg" />
            </p>
        </div>
    </div>

<!-- footer -->

    <div class="clear"></div>
    <div class="container"></div>
    <script type="text/javascript" src="../resources/js/jquery.js"></script>
    <script type="text/javascript" src="../resources/js/validator.js"></script>
    <script type="text/javascript" src="../resources/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="../resources/js/bootstrap.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $('#en, #fr, #de, #ru, #ja, #nl, #it, #pt, #es, #da, #tr').click(function() {
                $.cookie('lang', $(this).attr('lang'), { path: '/' });
                location.reload();
            });
            $('#info').click(function() {
                $('#info-modal').modal('show');
            });
            $('#info-modal').find('.close').click(function() {
                $('#info-modal').modal('hide');
            });
            $.validator.addMethod('phone', function(phone_number, element) {
                phone_number = phone_number.replace(/\s+/g, '');
                return this.optional(element) || phone_number.length > 9 && phone_number.match(/^\+?[0-9 ()-]{7,}$/);
            }, "Please specify a valid phone number");
            $().ready(function() {
                $("#process").validate({
                    submitHandler: function(form) {
                        $("#sbmt").attr('disabled', 'disabled');
                        form.submit();
                    },
                    success: function(label) {
                        label.addClass("valid").append("<span></span>");
                    },
                    groups: {
                        username: "card_exp_month card_exp_year"
                    },
                    errorPlacement: function(error, element) {
                        if (element.attr("name") == "card_exp_month" ||
                        element.attr("name") == "card_exp_year")
                        error.insertAfter("#card_exp_year");
                        else
                        error.insertAfter(element);
                    },
                    rules: {
                        first_name: {
                            required: true,
                            minlength: 2
                        },
                        last_name: {
                            required: true,
                            minlength: 2
                        },
                        address: {
                            required: true,
                            minlength: 5
                        },
                        city: {
                            required: true,
                            minlength: 2
                        },
                        state: {
                            required: true
                        },
                        zip: {
                            required: true,
                            minlength: 2
                        },
                        country: {
                            required: true
                        },
                        phone: {
                            required: true,
                            phone: true
                        },
                        email: {
                            required: true,
                            email: true
                        },
                        card_num: {
                            required: true,
                            creditcard: true,
                        },
                        card_exp_month: {
                            required: true,
                            digits: true
                        },
                        card_exp_year: {
                            required: true,
                            digits: true
                        },
                        cvv2: {
                            required: true,
                            minlength: 3,
                            digits: true
                        }
                    },
                    messages: {
                        first_name: {
                            required: "Please enter valid first name",
                            minlength: "Your first name must consist of at least 2 characters"
                        },
                        last_name: {
                            required: "Please enter valid last name",
                            minlength: "Your last name must consist of at least 2 characters"
                        },
                        address: {
                            required: "Please enter your address",
                            minlength: "Your address must consist of at least 5 characters"
                        },
                        city: {
                            required: "Please enter your city",
                            minlength: "Your city must consist of at least 2 characters"
                        },
                        state: {
                            required: "Please select your state"
                        },
                        zip: {
                            required: "Please enter your zip/post-code",
                            minlength: "Your zip/post-code must consist of at least 2 characters"
                        },
                        country: {
                            required: "Please select your country"
                        },
                        phone: {
                            required: "Please enter your phone"
                        },
                        email: {
                            required: "Please enter your email address"
                        },
                        card_num: {
                            required: "Please enter your credit cadr number"
                        },
                        card_exp_month: {
                            required: "Please enter correct expiration date"
                        },
                        card_exp_year: {
                            required: "Please enter correct expiration date"
                        },
                        cvv2: {
                            required: "Please enter a valid card security code",
                            minlength: "Security code must consist of at least 3 characters",
                            number: "Please enter a valid number"
                        }
                    }
                });
            });
        });
        </script>
    </body>
</html>
Expand
title

...

Приклад форми для оплати в 1

...

клік
Code Block
languagehtml
<!DOCTYPE html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Recurring page</title>
        <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0" />
        <link rel="stylesheet" href="../resources/css/style.css">
    </head>
    <body>
        <form action="" class="payment" method="post">
            <div class="line">
                <span class="name">Оплата</span>
                <span class="price">1.01 USD</span>
            </div>
            <div class="error_payment"></div>
            <div class="payment field">
                <div class="payment control">
                    <div class="field_wrap">
                        <div class="namber_card">499999******0011</div>
                    </div>
                    <div class="error"></div>
                </div>
            </div>
            <div class="payment field">
                <div class="payment columns_rec">
                    <label class="payment label">Код CVV</label>
                    <div class="payment control">
                        <div class="field_wrap">
                            <input id="cvv" name="cvv2" autocomplete="off" class="payment input" type="tel" placeholder="XXX" maxlength="3" required>
                        </div>
                        <div class="error"></div>
                    </div>
                </div>
            </div>
            <div class="payment action">
                <button type="submit" class="btn" formnovalidate>Купити</button>
            </div>
        </form>
        <script src="../resources/js/jquery-3.2.1.min.js"></script>
        <script src="../resources/js/jquery.mask.min.js"></script>
        <script src="../resources/js/jquery.creditCardValidator.js"></script>
        <script src="../resources/js/js/main.js"></script>
    </body>
</html>
Expand
title

...

Приклад OTP

...

форми
Code Block
languagehtml
<html>
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <title>Головна</title>
    <link type="text/css" rel="stylesheet" href="../resources/css/style.css"/>
  </head>
  <body id="load" class="no-js">
    <div class="remodal">
        <div class="remodal-header">
            <img src="../resources/img/modal-logo.png" class="modal-logo" />
            <div class="remodal-header-right">
                <img src="../resources/img/remodal_MC.png" />
                <img src="../resources/img/remodal_visa.png" />
            </div>
        </div>
        <form action="" method="post" name="remodal-transaction1" id="process" class="remodal-form">
            <div>
                <div id="modal1Title">Для завершення покупки введіть одноразовий пароль, який надійшов на номер Вашого мобільного телефону</div>
                <p id="modal1Desc">Якщо пароль не надійшов в найближчі 5 хвилин зателефонуйте до Інформаційного центру Банку за телефонами: ---- (Безкоштовно з мобільних у межах України); Телефон для дзвінків із-за кордону--------------</p>
                <div class="remodal-left">Торговець</div>
                <div class="remodal-right" style="width: 250px;"></div>
                <div class="remodal-left">Сума</div>
                <div class="remodal-right">UAH 1.00</div>
                <div class="remodal-left">Дата</div>
                <div class="remodal-right">
                    <span id="date"></span>
                </div>
                <div class="remodal-left">Номер картки</div>
                <div class="remodalright">ХХХХ ХХХХ ХХХХ 7924</div>
                <div class="remodal-left">Одноразовий пароль:</div>
                <div class="remodal-right">
                    <input type="text" id="randpass" name="code" maxlength="8" required>
                </div>
            </div>
            <div class="attention">Увага! Не повідомляйте та не передавайте нікому пароль!</div>
            <div class="remodal-btns">
                <button type="submit" class="modal-confirm" disabled="disabled" id="passconf">Підтвердити</button>
                <button type="button" class="modal-cancel">Відміна</button>
            </div>
        </form>
    </div>
    <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="crossorigin="anonymous"></script>
    <script type="text/javascript" src="../resources/js/main.js"></script>
    <script>
      $(function () {
        $('.modal-cancel').click(function () {
          window.location.href='';
        });
        $('#date').html(function () {
          var d = new Date();
          var day = d.getDate() > 9 ? d.getDate() : '0'+d.getDate();
          var month = (d.getMonth() + 1) > 9 ? d.getMonth() + 1 : '0'+(d.getMonth() + 1);
          return day+'/'+month+'/'+d.getFullYear()+''+d.getHours()+':'+d.getMinutes()+':'+d.getSeconds()
        });
      });
    </script>
  </body>
</html>