Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Возможная информация на эквайринговой форме

Название

Описание

Особенности

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

card

Номер карты

ДА

exp month

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

ДА

exp year

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

ДА

cvv2

CVV код карты

ДА

amount

Сумма к оплате

ДА

amount

Сумма к оплате

ДА

company

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

НЕТ

description

Описание товара или услуги

НЕТ

order

Ордер платежа

НЕТ

ext1ext10

Дополнительные поля

НЕТ

email

Почта клиента

НЕТ

first name

Имя клиента

НЕТ

last name

Фамилия клиента

НЕТ

phone

Телефон клиента

НЕТ

address

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

НЕТ

zip

Почтовый индекс клиента

НЕТ

city

Город клиента

НЕТ

country

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

НЕТ

state

Штат клиента

НЕТ


Возможная информация на форме оплаты в 1 клик

Description - описание продукта

Amount - сумма операции

Currency - валюта операции

Order - клиентский идентификатор операции

Ext1.... ext10

Company - Название компании

First Name - Имя владельца карты

Last Name - Фамилия владельца карты

Email - Email

Card - PAN в формате 6+4

Currency - Валюта операции


Примеры кода

Для просмотра примера раскройте список

 Пример исходного кода эквайринговой формы
<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>
 Пример исходного кода формы оплаты в 1 клик
<!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>
 Пример исходного кода OTP формы
<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>
  • No labels