VEPAY

API. Integration

MFIs: https://api.vepay.online/mfo

Request server: https://api.vepay.online/

Test request server: https://test.vepay.online

Data is sent in the POST request body in the JSON format and the UTF-8 encoding. MFI/Merchant identifier and key are given after registration in the system. Authorization parameters are contained in the request header:

X-Mfo (for MFI API) X-Login (Crowdfunding API and Merchant API)intMFI/Merchant identifier
X-TokenstringAuthorisation token

Token algorithm:

SHA1(SHA1(key) + SHA1 (request body)), where SHA1 produces a 40-character string with a hexadecimal hash value.

If the request is successfully handled, an HTTP 200 code will be returned. In the event of an authorization error, an HTTP 401 Unauthorized code will be returned. In the event of other errors, a 500 Internal Server Error or another relevant code will be returned.

Also, the following JSON-formatted fields are returned in the response body:

ParameterDescriptionExample
nameHTTP error descriptionUnauthorized
messageAdditional error message
codeError0
statusHTTP error code401

Example of code, API integration

    <?php

    $data = json_encode(["id" => 123]);
    $login = "123";
    $key = "12345456780";
    $token = sha1(sha1($key) . sha1($data));
    $link  = "https://api.vepay.online/mfo/out/state";
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
    curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'POST');
    curl_setopt($curl, CURLOPT_URL, $link);
    curl_setopt($curl, CURLOPT_HEADER, false);
    curl_setopt($curl, CURLOPT_HTTPHEADER, [
        'Content-type: application/json',
        'Accept: application/json',
        'X-Mfo: '.$login,
        'X-Token: '.$token,
    ]);
    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
    curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
    $out = curl_exec($curl);
    curl_close($curl);
    $Response = json_decode($out, true);
    print_r($Response);

  

Example of payment for services via the Merchant API

  1. Payment: a payment request is sent via the API.

/merchant/pay

    {
    "amount": 100,
    "extid": "4",
    "descript": "Order 4"
}

  

Response:

    {
    "status": 1,
    "id": 11022,
    "url": "https://test.vepay.online/pay/form/11022",
    "message": ""
}

  
  1. The user is redirected to the payment page (through the URL contained in the response).

Online store payment form

  1. If the status is not sent in the return request, the status must be verified:

/merchant/state

    {
    "id": 11022
}

  

Response:

    {
    "status": 1,
    "message": "Успешно"
}

  

В коде ответа может присутствовать параметр RC (response code). Справочник по rc-кодам:

КодЗначениеДействиеОписаниеVISAMCМир
00Successful approval/completion or V.I.P. PIN verification is successfulApprovedОперация одобрена+++
01Refer to card issuerDeclineСвязаться с банком, выпустившим карту++
02Refer to card issuer, special conditionDeclineСвязаться с банком, выпустившим карту. Возможны особые условия.+
03Invalid merchant or service providerDeclineНеверно указан мерчант или сервис+++
04Pick up cardDeclineИзъятие карты+++
05Do not honorDeclineНе оплачивается+++
06ErrorDeclineОшибка транзакции+
07Pick up card, special condition (other than lost/stolen card)DeclineИзъятие карты, при иных условиях, чем потеря карты или украденная карта.+
08Honor with IDApprovedОдобрение операции+
10Partial approvalApprovedЧастичное одобрение++
11V.I.P. approvalApprovedЕсли генерируется, то заменяется для возвращения на код 00 по причине соблюдения безопасности.+
12Invalid transactionDeclineНеверная транзакция+++
13Invalid amount (currency conversion field overflow); or amount exceeds maximum for card programDeclineОтклоняется, т.к. недостаточно средств на счете.+++
14Invalid account number (no such number)DeclineНеправильный номер счета+
14Invalid card numberDeclineНеправильный номер карты++
15No such issuerDeclineНеизвестный банк, выпустивший карту.+++
19Re-enter transactionDeclineПовторная транзакция+
21No action taken (unable to back out prior transaction)DeclineТранзакция не проводится, нет данных для ее отката.+
25Unable to locate record in file, or account number is missing from the inquiryDeclineНе найдены данные в базе или неправильный номер счета в запросе.+
28File is temporarily unavailableDeclineДанные временно недоступны+
30Format errorDeclineНеправильный формат запроса. Операция отклонена++
39No credit accountDeclineНенадежный счет+
41Pick up card (lost card)DeclineИзъятие карты, карта числится утерянной.+++
43Pick up card (stolen card)DeclineИзъятие карты, карта числится украденной.+++
51Insufficient fundsDeclineНедостаточно средств+++
52No checking accountDeclineНет текущего счета+
53No savings accountDeclineНет сберегательного счета+
54Expired cardDeclineЗакончился срок действия карты+++
55Incorrect PINDeclineНеверный PIN+++
57Transaction not permitted to cardholderDeclineОперация не разрешена владельцу карты+++
58Transaction not allowed at terminalDeclineТранзакция на терминале запрещена+++
59Suspected fraudDeclineПодозревается мошенничество+
61Activity amount limit exceededDeclineПревышено число попыток. Данный код может использоваться для переадресации,++
62Restricted card (for instance, in Country Exclusion table)DeclineЗапрет на карту+++
63Security violationDeclineНарушение правил безопасности+++
64Transaction does not fulfill AML requirementDeclineТранзакция не удовлетворяет правилам контроля за "отмыванием" денег+
65Activity count limit exceededDeclineПревышен лимит количества действий++
70Contact Card IssuerDeclineТребуется контакт с банком - эквайером+
71PIN Not ChangedDeclinePIN не изменен. Операция отклонена+
75Allowable number of PIN-entry tries exceededDeclineПревышено допустимое количество попыток ввода PIN- кода+++
76Unable to locate previous message (no match on retrieval reference number)DeclineНевозможно найти предыдущее сообщение (нет совпадений по поисковому номеру)+
76Invalid/nonexistent “To Account” specifiedDeclineОперация отклонена+
77Previous message located for a repeat or reversal, but repeat or reversal data inconsistent with original messageDeclineПредыдущее сообщение находится в состоянии повторения или отмены,но повторение или отмена, несовместимых с текущим сообщением+
77Invalid/nonexistent “From Account” specifiedDeclineОперация отклонена+
78“Blocked, first used”—Transaction from new cardholder, and card not properly unblockedDeclineКарта была заблокирована и не разблокирована нормально.+
78Invalid/nonexistent account specified (general)DeclineОперация отклонена+
78Invalid/nonexistent account specifiedDeclineВведен неправильный/ несуществующий счет+
79Transaction reversedDeclineТранзакция отменена+
80Visa transactions: credit issuer unavailable.Private label: invalid dateDeclineОперации VISA: кредитный эмитент недоступен. Примечание: недействительная дата+
81PIN cryptographic error found (error found by VIC security module during PIN decryption)DeclineОбнаружена криптографическая ошибка PIN (ошибка найдена модулем безопасности VIC при расшифровке PIN-кода)+
81Domestic Debit Transaction Not Allowed (Regional use only)DeclineОперация отклонена+
82Negative Online CAM, dCVV, iCVV, or CVV results Or Offline PIN authentication interruptedDeclineОтрицательные результаты online проверок CAM, dCVV, iCVV или CVV или автономная аутентификация PIN прервана+
84Invalid Authorization Life CycleDeclineНеправильный процесс авторизации. Операция отклонена+
85No reason to decline request for account number verification, address verification, CVV2 verification, or credit voucher or merchandise return+Нет причин отклонять запрос на проверку номера счета, проверка адреса, CVV2 подтверждение или кредитный ваучер или возврату товара.++
86Cannot verify PINDeclineНевозможно проверить PIN+++
87Purchase Amount Only, No Cash Back AllowedApprovedТолько покупки, кэшбек запрещен.+
88Cryptographic failureDeclineПроблема декодирования. Операция отклонена++
89Unacceptable PIN— Transaction Declined—RetryDeclineНедопустимый PIN, транзакция отклонена, повтор.+
91Issuer unavailable or switch inoperative (STIP not applicable or available for this transaction) Issuers can respond with this code, which V.I.P. passes to the acquirer without invoking stand-in processing (STIP). Issuer processors use the code to indicate they cannot perform authorization on issuers’ behalf. Code causes decline at POS.DeclineЭмитент недоступен или коммутатор не работает (STIP не применимо или доступно для этой транзакции) Эмитенты могут ответить этим кодом, по которому VIP клиент переходит к эквайеру без вызова stand-in обработки (STIP). Процессинги эмитента используют код для указания того, что они не могут выполнить авторизацию от имени эмитента. Код вызывает отклонение операции в POS.+++
92Financial institution or intermediate network facility cannot be found for routingDeclineФинансовая организация или сетевые ресурсы не могут найти маршрутизацию до объекта+++
93Transaction cannot be completed; violation of lawDeclineТранзакция не может быть завершена; обнаружено нарушение законодательства+
94Duplicate transaction. Transaction submitted containing values in tracing data fields that duplicate values in a previous transaction.DeclineДублирующая транзакция. Сопровождающие данные аналогичны значениям в предыдущей транзакции.+++
96System malfunctionDeclineНеисправность системы+++
B1Surcharge amount not permitted on Visa cards(U.S. acquirers only)DeclineДоплата не допускается на картах Visa(Только для США). Только для POS, для ATM можно.+
N0Force STIPDeclineЗадействовать STIP+
N3Cash service not availableDeclineРабота с наличными запрещена+
N4Cashback request exceeds issuer limitDeclineЗапрос кэшбека превысил лимит+
N7Decline for CVV2 failureDeclineОтклонено т.к. CVV2 неверен+
N8Transaction amount exceeds pre - authorized approval amountDeclineСумма транзакции превышает предварительно авторизованную сумма+
P2Invalid biller informationDeclineНеверная информация биллера+
P5PIN change/unblock request declinedDeclineЗапрос на изменение/разблокировку PIN отклонен+
P6Unsafe PINDeclineНебезопасный PIN+
R0Stop payment orderDeclineОстановлено платежное поручение+
R1Revocation of authorization orderDeclineАвторизация отозвана+
R3Revocation of all authorizations orderDeclineВсе авторизации отозваны+
Z3Unable to go online; declinedDeclineНе возможно выполнить онлайн+
XAForward to issuerDeclineОтправить банку, выпустившему карту+
XDForward to issuerDeclineОтправить банку, выпустившему карту+
Q1Card authentication failed Or Offline PIN authentication interruptedDeclineОшибка аутентификации карты или прервана аутентификация с помощью PIN+

Enrecoms Enterprises Ltd is company duly organized under the laws of Cyprus, is a payment gateway with registration number HE 351678.

Enrecoms Enterprises Ltd acts as a Technical Service Provider, by transmitting technical information and requests and does not access or control the funds.

Write to us atinfo@vepay.online
Contact phone+35725654097

The information published on this website is not a public offer. You may publish information from the vepay.online website provided you make reference to the source.

Media representatives can obtain photo and video materials in their original resolution upon request to info@vepay.online.

We use cookies to personalise the content, tailor advertisements, measure their effectiveness and ensure security. By continuing to use this website, you agree to our use of cookies to collect information on VEPAY and other sites. Check out our cookie policy or go to ‘Cookie Settings’.