Garanti Virtual POS is a secure payment solution created to receive credit card payments for online sales.
Merchants can open an online branch in their stores and turn it into a sales platform that never closes with Garanti Virtual POS. This contributes to increasing both the number of customers and turnover.
The following transactions are generally performed under Garanti Virtual POS:
1. Sales Transactions
2. Common Payment Page Operations
3. Cancellation Procedures
4. Return Procedures
5. Closing Operations
6. Inquiry Procedures
In this document, the steps required for merchants to be able to provide non 3Ds Pre-Authorization Closure transactions under Garanti Virtual POS, the operations to be performed within each step, and the structures of the transaction requests sent and response messages received are explained.
It is the process for closing the transaction for which pre-authorization is received. Closing transaction is the transaction that ensures the accounting of the amount blocked on the card.
The settlement amount can be greater or less than the pre-authorization amount. According to the workplace parameters, a certain margin is allowed by the guarantee. For settlements outside this margin, 13 invalid amount error is received.
The authorization on the card is no longer valid after 15 days. For settlements made after this period, if the card limit is available, the settlement transaction can be made. Otherwise, the transaction will receive an insufficient limit error.
3D Secure is a version of the application on VirtualPoS where cardholders are verified with a password on PoS. The cardholder is directed to the verification screens of the card bank to use a password in the transaction. The cardholder enters the information requested by his/her bank on these screens and shows that the card actually used is his/her own card.
After verification, the verification status is returned to the merchant bank (merchant). Then, depending on the status of the 3D information, the provisioning process is carried out or the transaction is terminated.
3D Secure is supported by Master, Visa and American Express (Amex) cards. Merchants using 3D model (information about merchant models is given below) are required to come directly to provisioning without performing 3D verification for cards other than Mastercard, Visa and Amex. Since 3D secure is not supported, the responsibility for Fraud in such transactions belongs to the merchant. The merchant must take measures to protect itself.
This is when the transaction is concluded without touching any 3D secure stage during the authorization flow. In this type of transaction, the customer's "I didn't do it" objections turn into a chargeback request. The chargeback process is evaluated by requesting evidence from the merchant that the transaction was made by the customer. In 3D transactions, "I didn't do it" requests are terminated on the bank side in transactions with successful verification.
For Virtual POS Sales transactions, it is possible for the merchant to proceed with 2 different methods. If the merchant wishes, they can make all the improvements they will make in the Test environment. Alternatively, the necessary developments for these transactions can be made directly in the broadcast environment.
According to the method to be chosen by the merchant, before starting Virtual POS sales transactions, the first operations must be performed according to the appropriate one of the following headings:
If the work to be done is carried out in a test environment, the following predefined values can be used as they are:
Parameter | Value |
---|---|
MerchantID | 7000679 |
ProvUserID | PROVAUT / PROVRFN / PROVOOS |
ProvisionPassword | 123qweASD/ |
TerminalID | 30691297 |
In the studies to be carried out in the test environment "https://sanalposprovtest.garantibbva.com.tr/VPServlet" url'i will be used.
A panel where the operations performed in the test environment can be monitored and displayed bu from address you can access.
Variable | Value |
---|---|
User Name | 99999999999 |
Password | Destek.1 |
Code | 147852 |
Not: In the event of an error in the password process, please try a second time before making a second attempt. Send Us a Question Please provide information with the form.
List of all test cards that can be used in the test environment from this page you can reach.
Bu yöntem ile ilerlendiğinde, üye işyeri tarafından ilk adım olarak kurulumda kullanılacak olan şifreler (“PROVAUT”,“PROVOOS”, “PROVRFN” ve “3D” (storekey) şifreleri) Sanal POS İlk Adımlar dokümanı içerisinde belirtildiği şekilde sanal pos yönetim panelinden oluşturmalıdır.
Sonraki adımlarda, bu şekilde oluşturulan şifre ve hesaplar kullanılacaktır.
PROD ortamında yapılacak çalışmalarda "https://sanalposprov.garanti.com.tr/VPServlet" url'i kullanılacaktır.
This document explains step by step how to create the data required for the <HashData> tag in the request message, which is used under many transaction types.
The <HashData> tag in the request messages is the field that allows the password verification of the user. Hash creation details are explained separately below.
In the new VirtualPoS application, the HASH structure is used to prevent the password of the terminal from circulating openly.
Hash account:
1. SHA1 in the calculation of hashedpassword information
2. SHA512 algorithm is used to calculate the hashvalue.In the hash calculation, a two-part HASH structure is used. In the first stage, the hashedpassword value will be obtained using the SHA1 algorithm by juxtaposing the provisioning password with the terminal number.
The operations required to generate hash are presented below for different programming languages:
The request structure required for all non 3Ds Virtual POS transactions is specified in the table below. The information and explanations required for each tag under the main tag in the first column in the table should be examined and the request message should be provided according to the rules specified in this table:
Within this structure, many tags contain sub-tags within themselves. Under the relevant heading where each tag is described, the usage rules of tags without subtags and the details of tags with subtags are presented in a separate heading.
Bottom Label | Maks Size | Data Writing Format | Description and notes |
---|---|---|---|
<Mode> | PROD | This is the field where the process mode is written | |
<Version> | 16 byte | No format requirement | This is the field where the Api version used is written. Within the scope of hash calculation as Sha512, 512 value must be sent in this field. |
<Terminal> | In order to provide virtual pos verification, parameters such as virtual pos number user information are sent. This tag contains sub tags. The tags and rules it contains are given in the following headings. | ||
<Customer> | This is the field where Customer Information is sent. It is mandatory to send the information in the tag. This tag contains sub tags. The tags and rules it contains are given in the following headings. | ||
<Order> | This is the field where information and details of the order are sent. This tag contains sub tags. The tags and rules it contains are given in the following headings. | ||
<Transaction> | This is the field where transaction information and financial information are sent. This tag contains sub tags. The tags and rules it contains are given in the following headings. |
Virtual such as virtual pos number user information to ensure pos verification parameters are sent.
The sub-tags within this tag and their details are given below:
Bottom Label | Max Size | Data Writing Format | Description and notes |
---|---|---|---|
<ProvUserID> | 32 byte | No format requirement | This is the field where the provision user code of the terminal is sent. Prov user, Cancel refund user or OOS user can be found here |
<HashData> | 32 byte | Hash algorithm SHA512 format. After hash conversion, lower case letters must be converted to upper case. Details are given below. | This is the field where the user's password verification is performed. Hash creation details are explained separately in this document. |
<UserID> | No format requirement | This is the field where the user who made the transaction (Agent - Sales Representative) is sent. | |
<ID> | 9 byte | Nümerik | The field where the terminal number is sent |
<MerchatID> | 9 byte | Nümerik | This is the field where the workplace number is sent. |
This is the field where Customer Information is sent. It is mandatory to send the information in the tag.
Bottom Label | Max Size | Data Writing Format | Description and notes |
---|---|---|---|
<IPAdress> | 20 byte | No format requirement | This is the field where the IP address of the customer who made the transaction is sent. It must be sent compulsorily in order to ensure fraud controls. |
<EmailAddress> | 64 byte | This is the field where the E-Mail address of the customer who made the transaction is sent. |
This is the field where the information and details of the order are sent in the request.
Bottom Label | Data Writing Format | Description and notes |
---|---|---|
<OrderID> | Alfanümerik | This is the field where the order number is returned. |
<GroupID> | Alfanümerik | The field where the GroupID number is returned. This tag contains sub tags. Details about the sub tags are given in the headings below. |
This is the field where transaction information and financial information are sent in the request message in non 3Ds pre-authorization closing transactions.
Bottom Label | Maks Size | Data Writing Format | Description and notes |
---|---|---|---|
<Type> | 32 byte | Alfanümerik | This is the field where the Transaction Type is sent. Details about transaction types will be given separately in the document. Attention should be paid to the use of other fields according to the transaction type. |
<ListPageNum> | |||
<Amount> | 17,2 number | The numeric is sent as LLLLLLKK. The last 2 digits represent cents. 1,00 TL -> 100 11,22 TL->1122 0,01TL -> 1 | This is the field where the amount information is entered. If the transaction is a "Partial Refund" transaction, the amount entered in this field is refunded. |
<CurrencyCode> | 3 byte | Nümerik | This is the field where exchange rate information is sent. 949 -> TL will be informed for other exchange rates according to your authorization. |
<CardholderPresentCode> | 2 byte | Nümerik | Enter 0 for normal transactions and 13 for 3D transactions. |
<MotoInd> | 1 byte | Alfanümerik | It takes Y and N values. N is sent for Ecommerce transactions. Y is sent for transactions with Moto transaction status. |
For Virtual POS transactions, the response structure returned from the service after the request sent in the previous topics is generally specified in the table below. The information and explanations required for each tag under the main tag in the first column in the table should be examined and the request message should be provided according to the rules specified in this table:
In the Virtual POS cash sales transaction, the response structure is generally as follows:
The tags in the answer structure given above and the sub tags under these tags are given in the heading below:
Bottom Label | Data Writing Format | Description and notes |
---|---|---|
<Mode> | PROD - TEST | This is the field where the process mode is written |
<Terminal> | In order to provide virtual pos verification, parameters such as virtual pos number and user information are sent. This tag contains sub parent and child tags within itself. The sub tags it contains are given in the headings below. | |
<Customer> | This is the area where the customer information sent in the request structure is sent back for verification purposes. This tag contains sub tags within itself. The sub tags it contains are given in the headings below. | |
<Order> | This is the area where the information and details of the order are sent. This tag contains sub tags within itself. The sub tags it contains are given in the headings below. | |
<Transaction> | This is the field where transaction and financial information is returned. This tag contains sub parent and child tags within itself. The sub tags it contains are given in the headings below. |
It is the field where the parameters sent in the request, such as virtual pos number user information, are returned in the response in the same way in order to provide virtual pos verification.
The sub-tags within this tag and their details are given below:
Bottom Label | Maks Size | Data Writing Format | Description and notes |
---|---|---|---|
<ProvUserID> | 32 byte | No format requirement | This is the field where the provision user code of the terminal is sent. Prov user, Cancel refund user or OOS user can be found here |
<UserID> | No format requirement | This is the field where the user who made the transaction (Agent - Sales Representative) is sent. | |
<ID> | 9 byte | Nümerik | The field where the terminal number is sent |
<MerchatID> | 9 byte | Nümerik | This is the field where the workplace number is sent. |
This is the field where the customer information sent in the request is returned in the same way in the response.
Bottom Label | Maks Size | Data Writing Format | Description and notes |
---|---|---|---|
<IPAdress> | 20 byte | No format requirement | This is the field where the IP address of the customer who made the transaction is sent. It must be sent compulsorily in order to ensure fraud controls. |
<EmailAddress> | 64 byte | This is the field where the E-Mail address of the customer who made the transaction is sent. |
This is the field where the order information sent in the request is returned in the same way in the response.
Bottom Label | Data Writing Format | Description and notes |
---|---|---|
<OrderID> | Alfanümerik | This is the field where the order number is returned. |
<GroupID> | Alfanümerik | The field where the GroupID number is returned. This tag contains sub tags. Details about the sub tags are given in the headings below. |
Bottom Tags | Data Writing Format | Description and notes |
---|---|---|
<Response> | This tag contains sub tags. Details about the sub-tags are given in the headings below. | |
<RetrefNum> | Nümerik | The transaction number generated by Virtualpos is returned |
<AuthCode> | Nümerik | This is the field where the confirmation code is returned. |
<BatchNum> | This is the field that returns which batche the transactions will enter. | |
<SequenceNum> | This is the field where the name of the cardholder is sent. | |
<ProvDate> | YYYYMMDD | This is the field where the provision date is returned. |
<CardNumberMasked> | This is the field where the first 6 and last 4 digits of the card number and the fields in between are returned with *. | |
<CardHolderName> | This is the field where the name of the cardholder is sent. | |
<CardType> | This is the field where the type of card processed is returned. | |
<HashData> | This is the field where the HashData information of the transaction is returned. | |
<HostMsgList> | This tag contains sub tags. Details about the sub-tags are given in the headings below. | |
<RewardInqResult> | This tag contains sub tags. Details about the sub-tags are given in the headings below. | |
<GarantiCardInd> | ||
<CampaignChooseLink> |
Alt Tags | Description and notes |
---|---|
<Source> | This is the field where the source information is returned. |
<Code> | This is the field where Approved - declined information is returned. |
<ReasonCode> | This is the field where the answer code is returned. |
<Message> | This is the field where the message information is returned. |
<ErrorMsg> | This is the field where the error message is returned. |
<SysErrMsg> | This is the field where the system error message is returned. |
Bottom Labels | Data Writing Format | Description and notes |
---|---|---|
<HostMsg> | This is the field where campaign messages are returned. |
Bottom Labels | Data Writing Format | Description and notes |
---|---|---|
<RewardList> | This tag contains sub tags. Details about the sub-tags are given in the headings below. | |
<ChequeList> | This tag contains sub tags. Details about the sub-tags are given in the headings below. |
Below are the github repo links for custom code examples written in different programming languages, including this transaction type. You can examine the codes written with predefined values through the link of your preferred programming language.
Error codes from this page you can reach.
List of test cards from this page you can reach.
We would love to hear from you. Do you have problems/questions about services ? Send us detailed email about it ?
Send Us a Question Send Us a Question