Paynet API

Summary

Paynet API uses the REST service. Due to the use of the HTTP protocol is designed to use the HTTP response code to indicate API errors. Basic authentication is used to secure the structure to interact with the API. Services API JSON, XML, and form parameters as application/x-www-form-urlencoded format support. All answers can be returned in JSON or XML format.

If you want to send the XML data in the XML response service using HTTP header to be sent in the following headings.

                    Content-Type "application/xml; charset = UTF-8" 
			        Accept: "application/xml; charset = UTF-8"

If you want to use the service to send data Json Json HTTP response header to be sent in the following headings.
                    Content-Type: "application/json; charset = UTF-8" 
			        Accept: "application/json; charset = UTF-8"

Service use the application/x-www-form-urlencoded If you want to send data to answer Json HTTP header to be sent in the following headings.
                    Content-Type "application/x-www-form-urlencoded; charset = UTF-8" 
			        Accept: "application/json; charset = UTF-8"
Service and URLs Script Object Test System Live System
Domain address will be used to invoke the REST API service. https://pts-api.Paynet.com.tr https://api.Paynet.com.tr
JavaScript library to be used for integration of embedded forms. https://pts-pj.Paynet.com.tr/public/js/Paynet.min.js https://pj.Paynet.com.tr/public/js/Paynet.min.js
JavaScript library to be used for integration of the Custom form. https://pts-pj.Paynet.com.tr/public/js/Paynet-custom.min.js https://pj.Paynet.com.tr/public/js/Paynet-custom.min.js
All services can be reached via secure channel (https). You can request secret keys and publishable keys which you will use in test system and live system from mail address destek@paynet.com.tr You can send your technical questions to email address api.destek@paynet.com.tr about integration.



AUTHENTICATION

Paynet service API to authenticate with basic authentication is a method you can. There are two kinds of API Key;
1 Publishable key:
Paynet is used in the client-side JavaScript integration in embedded form, and Custom Forms.
2. Secret key:
Paynet API is used to authenticate to the service. Secret key must share with others.

The structure of the HTTP Basic Authentication as the type of authentication used. Secret key Authentication headers sent in the request. The request must be sent to all the authentication header.

Authorization: Basic sck_pcs_jecryozq0khnsv9elaf/sıbvvxq A+Biwa





HTTP Status Codes

In Paynet API Services, it uses http response codes to indicate the success or failure of the request. 2XX codes shows success, 4XX codes shows an error about incorrect request parameter and 5XX codes shows an error based on the server. If service response is equal to 200, response object cantains “code” ve “message”. If service response is equal to any number except 200, , response object cantains a json format in following format;

Error Object
type see the type of error. Error types.
message Error message
code HTTP Status Code see. HTTP status code
result_code See return codes
Example json object 
{
"type": "authorization_err is",
"message": "Unauthorized credential",
"code": 401,
"result_code": 7
}

HTTP STATUS CODES

200 - OK operation successful
400 - Bad Request In case of incomplete or erroneous request parameters sent
401 - Unauthorized Authorization error
402 - Request Failed the current status of request parameters, but the process fails
404 - Not Found No desired item (item null status)
500, 502, 503, 504 - Server Errors Global case that something goes wrong in any

TYPES OF ERRORS

api_error Error due to Paynet API
invalid_request_error Sent input parameters are not right or wrong format.
authorization_error Authentication Error
no_data_error Operation could not be found.
404 - Not Found No desired item (item null status)

RETURN CODES

Code name Code
successful0
unsuccessful 1
companyblocked 2
agentblocked 3
agentnotfound 4
duplicatedata 5
noprocess6
unauthorized7
servererror8
notimplemented 9
timeOut 10
badrequest 11
nodata 12
paynetjnosession 13
paynetjwrongbin 14
paynetjunmatchtran15
paynetj3derror16
paynetjusedsession17
wrongcarddata18
wrongtransactiontype19
wrongtransactiontype20
wrongratiogey21
oldsuccessful100




INTEGRATION EMBEDDED FORM

The easiest way to get paid by Paynet Paynet.js is to bury your payment form. Paynet.js ensures the security of card information for you, it makes all the verifications. Sensitive card information does not circulate in any way unsafe environment. You just received your payment. payments by Paynet.js consists of two phases;

  • Paynet.js you place your form. Paynet.js taking your card information form "token_id" and "session_id" It adds to the information and post your form. Thus, along with other inputs in your form "token_id" and "session_id" values it would have been the post. Adding Sample script
  • You can complete credit card payment process using the "Payment Confirmation" API service after you took “token_id” ve “session_id” informations in your server. Important: The credit card will not be charged until "Payment Confirmation" API service response.

Step 1: Paynet.js add to your page

Paynet.js you can add to your page as follows. Added to this page with your data-button_label’ script with the specified text "Checkout" button interests. Your customers can enter the credit card information to process payment by pressing this button. When the payment is complete Paynet.js "token_id" and "session_id" adds parameters can be hidden in your form and post form. With post-process form with the parameters that you add to your form and token_id session_id information comes to your web server. You can confirm the payment with these values. Step 2 If you do not approve the payment processing is done for withdrawals from the card.

Important: Note the key points to be; attirubute class script in the tag "Paynet-button" should be. Client side authentication "data-key" is provided by the attributes specified in the key. you must send in the key of publishable data-key attribute.

                <form action = "[your web site]" method="POST" > 
                    <script 
                                class="Paynet-button" 
                                type="text/javascript" 
                                src="https://pts-pj.Paynet.com.tr/public/js/Paynet.min.js" 
                                data-key="[Publishable key]" 
                                data-amount="2000" 
                                data-ratio_code="oran kodunuz var ise"
                                data-button_label="Paymnet Yap" 
                                data-image="[image_url]">
                    </script>
                  </form>
                    
                   
                
Script Parameters
data-key Required Company publishable key. You can get the address from destek@paynet.com.t test and live system.
data-amount Required The amount to be charged from your credit card. The amount of the payment multiplied by one hundred. "10.00 TL" => Must be sent as "1000".
Data-name Optional title that will appear during checkout.
The data-description Optional The description you posted here appear in the list that will appear during checkout process açıklaması.Paynet API Operations and Paynet process list.
data-agent Optional The current account code or the company making the payment. In this area, the company sent to dealers in the current account code or the code under the Paynet dealers. The company will use its dealer code needs to be done about the definition of Paynet systems.
data-add_commission_amount Optional true/false, default false. The Commission will determine the amount that has been added to the payment amount. True amount of commission is added to the amount to be withdrawn from your credit card.
data-no_instalment Optional true/false, default false. if true, does not allow shooting installment, it made a single shot.
data-pos_type Optional

Paynet posture or the company is determined to use it to do their sweeps up posture.
Paynet pos: 5 (default)
Company POS: 1

data-tds_required Optional true/false, default true
False: If 3Dsiz POS transaction supports action to allow the user to operate the 3Dsiz. True: If the process is to be supported by POS transaction 3Dsiz prevents the user 3Dsiz making process.
data-ratio_code Optional You can customize the table to appear in the rate and payment APIs odeme.Paynet.com.tr. If you send the code that defines the rate table in this area, then the code defined in your rate and payment table appears.

Step 2: Payment to approve
the session_id reached token_id parameters to your server and you must confirm the payment card information before your system. Refer. V1/transaction/charge
this step will not be shooting from credit card transactions to complete.


           '' EXAMPLE OF A PAYMENT APPROVED SERVICE WITH ASP
            dim XmlHttp
			dim PostURL
			dim ResponseXml			
			dim session_id
			dim token_id
			
			session_id = Request.Form["session_id"]
			tolen_id   = Request.Form["token_id"]
			
			PostURL="https://pts-api.Paynet.com.tr/v1/transaction/charge"
		
			Set XmlHttp = Server.CreateObject("Msxml2.ServerXMLHTTP.3.0")
			XmlHttp.Open "POST", PostUrl, false
		
			XmlHttp.SetRequestHeader "Content-Type", "application/xml; charset=UTF-8"
			XmlHttp.SetRequestHeader "Accept", "application/xml; charset=UTF-8"
			
			XmlHttp.setRequestHeader "Authorization", "Basic sck_pcs_rMnxDSW/43243434/YAzXXXXXXXXXXXX"
			
			XmlHttp.Send  "<?xml version="" 1.0"" encoding="" utf-8"" ?><ChargeParameters><session_id>"&session_id&"</session_id><token_id>"&token_id&"</token_id><reference_no>referans numaranız</reference_no><transaction_type>Sales</transaction_type></ChargeParameters>"
			ResponseXml = XmlHttp.ResponseText
		
			Set oXML = Server.CreateObject("MSXML.DOMDocument")
			oXML.Async = false
			oXML.loadXml( sAPIRESULTXML )
		
			If ( oXML.getElementsByTagName("is_succeed") == "true" ) Then
				Response.Write "Başarılı"
			else
				Response.Write "Başarısız"				
			end if

			<?php  //PHP İLE YAPILMIŞ ÖRNEK BİR Paymnet ONAYLAMA SERVİSİ
			
			$secret_key = "sck_pcs_rMnxDSW/43243434/YAzXXXXXXXXXXXX";
			$PostURL = "https://pts-api.Paynet.com.tr/v1/transaction/charge";
			
			$session_id = $_REQUEST["session_id"];
			$token_id = $_REQUEST["token_id"];
			
			
			$params = array(
					'session_id' => $session_id,
					'token_id' => $token_id,
					'transaction_type' => 1,
					
			);
			
			$options = array(
					'http' => array(
							'header'  =>"Accept: application/json; charset=UTF-8\r\n".
							"Content-type: application/json; charset=UTF-8\r\n".
							"Authorization: Basic ".$secret_key,
							'method'  => 'POST',
							'content' => json_encode($params),
							'ignore_errors' => true
					),
			);
			
			$context  = stream_context_create($options);
			$result = json_decode(@file_get_contents($PostURL, false, $context));
			
			if($result->is_succeed == true)
			{
				echo "Başarılı";
			}
			else
			{
				echo "Başarısız";
			}
			
			?>
                
                    

Service Parameters
Service Name Explanation
Paynet.onPaymentClick The service which you can check related condition after clicking with created Paynet.js the complete payment (paynetj-button) button., Click for details.
Paynet.updateamount The service which you can update the amount charged from the credit card and ratio code after generating the script or define the amount or ratio code informations in this step.Click for details.




CUSTOM INTEGRATION OF FORM

Another easy way of getting paid by Paynet Paynet-custom.js is to bury your payment form. screen with pay-custom.js Paynet allows you to design according to your own design. It ensures the security of card information for you, it makes all the verifications. Sensitive card information does not circulate in any way unsafe environment.
Payments by Paynet-custom.js consists of three stages;

  • Paynet-custom.js you place your form.
  • You will pay your edit form you want your screen. Please specify which areas of the data-Paynet attributes to HTML elements. For example, you can get your credit card number input data-Paynet = "number" you need to add the attribute.
  • Users enter the card details on the payment button Paynet pressure-custom.js card information based on your form "token_id" and "session_id" It adds to the information and post your form. You in your backup server "token_id" and "session_id" information based "payment confirmation" the service using a credit card to complete the withdrawal process.

Step 1: Paynet-custom.js embed your form

Paynet-custom.js can add to your page as follows. Added to this page to request your script can be designed in line.
Caution should be points:

  • The data-from attirubute in the script tag must have taken the form of payment information.
  • attirubute class in the script tag "Paynet-button" should be.
  • As surely hidden in your data-form Paynet = "installmentkey" has the attributes to be hidden input. This information is used to set the installment Hidden 'the user chooses. The data selected from the table that the rate of Paynet.services.installments service or the method Paynet.events.oncheckBin instalment_key value should be assigned. You can look at the rate of receipt of the following information.

Added to your page script

                
                <script type="text/javascript"
                     class="Paynet-button"
                     src="https://pts-pj.Paynet.com.tr/public/js/Paynet-custom.js"
                     data-form="#checkout-form"
                     data-key="[Publishable key]"
                     data-amount="200"
                     data-ratio_code="oran kodunuz var ise"                                             
                     data-description="Paymnet açıklaması">
                </script>
 

Creating your HTML form

                
                <form action="[post adress]" method="post" name="checkout-form" id="checkout-form">
                <input type="text" name="cardHolderName"  data-Paynet="holderName" placeholder="Card Holder Name"  />
                <input type="text" name="cardNumber"      data-Paynet="number"     placeholder="Credir Card No"               />
                <select name="expMonth" id="expMonth" data-Paynet="exp-month" >                       
                <option value="1">1</option>
                            ...
                <option value="11">11</option>
                <option value="12">12</option>
                </select>
                        
                <select name="expYear" id="expYear" data-Paynet="exp-year" >
                <option value="">...</option>                
                <option value="2018">2018</option>
                <option value="2019">2019</option>
                </select>
                
                <input type="password"   name="cvv"               data-Paynet="cvv"   />                
                <input type="hidden"     name="installmentKey"    data-Paynet="installmentKey"  />
                <button type="submit" data-Paynet="submit">Paymnet</button>
                    </form>
    

receipt of the information rate

                    
                    /// When customers enter the first 6 digits of the card used to indicate the rate information. 
                    Paynet.events.oncheckBin the (function (d) { 
                
                    $ ( '. installment-table'). html ( ''); 
                    d.bank.installments.sort ( function (current, next) { 
                        if (current.instalment> next.instalment) return 1; 
                        if (current.instalment <next.instalment) return -1; 
                        return 0; 
                    }); 
                
                    $ ( '# banklogo'). attr ( 'src', d.bank.logourl); 
                    $ ( '. bank_logo'). show (); 
                    according to the ratio /// choose which card details are shown 
                    for (var i = 0; i <d.bank.installments.length; i ++ ) { 
                        $ ( ". installment-table"). append ( 
                
                        '<li> <input type = radio name =' installment 'of value = " 
                        + d.bank.installments [i] .instalment_key 
                        +" /> " 
                        + d. bank.installments [i] .Desc 
                        + "-" 
                        + d.bank.installments [i] .instalment_amount 
                        + "TL" 
                        + "</ li> 
                        "); 
                    } 
                
                    $ ( '. installment-table'). show () ; 
                 
                
                    }); 
                   /// customer to determine the rate at which select 
                   $ (document) .one (the "clicker", "input [name = installment-table]: radio", function () {                             
                        $ ( '# installmentkey'). val ($ (this) .val ());                                         
                   });
                    
            

Custom forms of integration demo here can reach and examine the source code download sample projects in detail.

Paynet-custom.js parameters you can use when you add your page;

Script Parameters
Data-key Required Company publishable key. You can get the address from destek@paynet.com.t test and live system.
data-amount Required The amount to be charged from your credit card. What is the payment amount, you should send it. What should send him to pay the amount. For example: "100.55 TL" => "100.55" should be sent as.
data-description Optional Paynet API is shown here in action list and description sent Paynet process list.
data-agent Optional The current account code or the company making the payment. In this area, the company sent to dealers in the current account code or the code under the Paynet dealers. The company will use its dealer code needs to be done about the definition of Paynet systems.
data-add_commission_amount Optional true/false, default false. True/false, Default: false. It is determined whether the amount of the commission can be added to the payment amount. When True, the commission amount is added to the amount to be charged from the credit card.
data-no_instalment Optional true/false, default false. if true, does not allow shooting installment, it made a single shot.
data-pos_type Optional

It must be defined which one will be used Paynet POS or the company's own swept POS
Paynet pos: 5 (default)
Company POS: 1

data-tds_required Optional true/false, default true
False: If 3Dsiz POS transaction supports action to allow the user to operate the 3Dsiz. True: If the process is to be supported by POS transaction 3Dsiz prevents the user 3Dsiz making process.
data-ratio_code Optional You can customize the table to appear in the rate and payment APIs odeme.Paynet.com.tr. If you send the code that defines the rate table in this area, then the code defined in your rate and payment table appears.

Step 2: Custom forms are designed.
Page to receive the payment information is created a peaceful balance in accordance with your preferences. In the ID form-data form script attributes = "[id form you]" should be stated. Your form input elements must also be specified with a data-attributes of Paynet. When you place your form of payment with the button held Paynet-custom.js, "token_id" and "session_id" adds parameters can be hidden in your form and post form. With post-process form with the parameters that you add to your form and token_id session_id information comes to your web server.

Script Parameters
number Required Credit card number information
installmentkey Required The ID of the selected payment
Holder renovation Required The name of the cardholder
data-agent Required The current account code or the company making the payment. In this area, the company sent to dealers in the current account code or the code under the Paynet dealers. The company will use its dealer code needs to be done about the definition of Paynet systems.
exp-month Required The expiration date of the credit card information last month
exp-year Required The expiration date of the credit card information of last year
CVV Required CVC Credit card information
desc Optional description information about payments
e-mail Optional E-mail information of the person paying
phone Optional The people paying the phone information
do3d Optional information as to whether the payment 3D

Step 3: Payment confirmation
by reaching session_id token_id parameters to your server and you can confirm the payment card information before your system. Refer. V1/transaction/charge .

The following events and services at Paynet-custom.js can use JavaScript libraries to create a more flexible application.

Event parameterize
Event Name Explanation
the Paynet.events.oncheckBin Credit card number is entered when the event enables us to callback. Click for details.
Paynet.events.validationError Validation of validation error when the page is the event that will help us capture. Click for details.
Paynet.events.onPaymentClick When the button is clicked employees paid event. Click for details.
the Paynet.events.onAuthentication The authorization stage event callback that allows you to investigate. Click for details.
Paynet.events.onTdsRedirect 3D event is running in the process of routing. Click for details.
the Paynet.events.onCreateToken In the token forming stage is eventtime CallBack enables us to investigate. Click for details.
Paynet.events.onLoad Custom forms page is loaded when the event is running. Click for details.
Service Parameters
Service Name Explanation
the Paynet.services.checkBinin According to the bin number, credit card number is the service that you can use to find out which is owned by the bank. Click for details.
Paynet.services.installments Service that allows you to create client-side in the rate table. Click for details.
Paynet.services.updateAmount Service you can update the information amount to be chatged from the credit card. Click here for details.
Paynet.services.updateRatioCode You can update information services amount to be charged from the credit card and the rate code. Click for details.




services

Processing Services

pass from credit card transactions, Transaction list includes services such as transaction details. Service details are described below.

Payment Confirmation (v1/transaction/charge)

Paynet.js and either buried or credit card in the form of custom integration starts with Paynet-custom.js to terminate the payment, the service was made of the amount of the credit card shooting. This service is needed to add to the information hidden session_id and token_id Paynet.js the form to use.

URLs v1/transaction/charge
Request

{
"Session_id": "js_eaaaad3fkwdiouwo+dceqn2gusaklsmlıojv37zıjonkyg6 +",
"token_id": "jt_eaaaakfn6agfkgvak1yvpabfkf4f4rhv7ir1ljbaxveltc \ /+uefytymeo2bgvonmsju06j \/znv42tdqznyb2aowezme-",
"reference_no": "1234",
"transaction_type": 1
}

Response

{
"Xact_id": "xk_eaaaae3ovgioqa0xc vq16tjyl6qerwf6hgcegxlatx7qg9 ++",
"xact_date": "0001-01-01T00: 00: 00",
"transaction_type": 1,
"pos_type" 5,
"is_tds": true,
"agent_id": "20081",
"user_id": "Paynetj",
"email": null,
"phone": null,
"bank_id": "BONS",
"instalment": 3
"ratio": 0021,
"card_no_masked": "444444 0004 ****** ",
" card_holder ":" gokhan ",
" amount ": 5000,
" net_amount ": 4764,
" COMISSION ": 200,
" comission_tax ": 36,
" currency "," TL ",
" authorization_code ":" aut-3060 ",
" the reference_co ":" ref-3060 ",
" order_id ":" order-3060 ",
" is_succeed ": true,
" Paynet_error_id ":" ",
" paynet_error_message ":" ",
" bank_error_id ":" ",
" bank_error_message ":" ",
" bank_error_short_desc ":" ",
" bank_error_long_desc ":" ",
" agent_reference_no ": null,
" object_name "," transaction ",
" code ": 0,
" message " "BA \ u015fur \ u0131l \ u0131 \ u0130 \ u015fle I"
}

Request Parameters
Parameter Name Type summary information
session_id String (max 100) [Required] attach the parameters you've Paynet.js the form.
token_id String (max 100) [Required] attach the parameters you've Paynet.js the form.
reference_no String (max 50) [Optional] will send you a reference number to associate with the process. Order number, invoice number. If you send the value of a unique reference number, you can check the status of the process in case you did not receive a response from the transaction service charge on the check transansactio service. In this way we will be protected from repeated withdrawals.
transaction_type Char(1) [Required] whether you can determine whether the process of selling the Pre-provision. Currently only for Sale "1" You can use the value.
Response Parameters
Parameter Name Type summary information
xact_id String (max 100) Process id
xact_date datetime Date of transaction
transaction_type Char(1) 1: sales
pos_type Char(1) 5: Paynet POS
is_tds Boolean If true, the process 3D
agent_id String (max 10) Paynet dealers who process the current account code
user_id String (max 10) returns as the default Paynetj
e-mail String (max 60)
phone String (max 10)
bank_id Char(4) The Bank's code Paynet Systems
instalment int number Installment
ratio float rate used in payment.
card_no_masked String (max 25) Masked card number
card_holder String (max 50) Card owner
amount decimal The amount charged from credit card
net_amount decimal excludes Commission
comission decimal Commission amonut
comission_tax decimal Tax Commission
currency Char(3) Currency
authorization_code String (max 10) Bank confirmation code
reference_code String (max 50) Bank reference code
order_id String (max 50) Bank order no
is_succeed Boolean True if the operation is successful. If the operation is successful and returns HTTP 200 is_succeed true. The Bank did not check http 200 and is_succedd returns false.
Paynet_error_id string Paynet system error code
paynet_error_message string Paynet system error message
bank_error_id String (max 50) the banking system error code
bank_error_message String (max 50) Error messages of the banking system
bank_error_short_desc String (max 250) Error messages of the banking system
bank_error_long_desc string Error messages of the banking system
agent_reference_no String (max 50) Your reference number used in the payment transaction. same reference_no
object_name String transaction
code System code see results. Return codes
message string System message

Payment Financialization (v1/transaction/capture)

It is the the service which can do Financialization of the confirmed pre-provisioned credit card transaction as related amount or less than related amount In custom or embadded form integration which is initiated by Paynet-js or Paynet-custom.js. To use this service, you must approve the transaction_type value (3: PreAuth) as a pre-provisioned transaction in the payment authorization service.

URLs v1/transaction/capture
Request

{
"Xact_id": "xk_eaaaanfhow7siofxo8lhpmruxp0hx3we8nmjsmgud * w3uısj"
"amount": "100"
}

Response

{
"Xact_id": "xk_eaaaaıo6j * mz24gkfpk739cueul9p7okyavbuo0rbe7wkyxg"
"xact_date": "2016-04-08T10: 27: 22.0296925+03: 00"
"transaction_type" 4
"pos_type" 5
"is_tds": true,
"agent_id": "20005 "
" user_id ":" cardholder "
" email ":" "
" phone ":" "
" bank_id ":" AXSS "
" instalment "3
" ratio ": 0:04
" card_no_masked ":" 435 508 4358 ****** "
" card_holder ":" GJH "
" amount "0
" net_amount ": 56.55
" COMISSION's ": 2.37
" comission_tax ": 0:43
" currency ":"TL"
" authorization_code ":" aut-8229 "
" reference_code ":" ref -8 229 "
" order_id ":" order-8229 "
" is_succeed ": true,
" Paynet_error_id "" "
" Paynet_error_messag the "" "
" bank_error_id "" "
" bank_error_messag the "" "
" bank_error_short_desc "" "
" bank_error_long_desc " ""
"object_name": "transaction"
"code": 0
"message": "successful Transaction"
}

Request Parameters
Parameter Name Type summary information
xact_id String (max 100) [Required] process id
amount string the desirable amount of manic Capture done.
Response Parameters
Parameter Name Type summary information
xact_id String (max 100) Process id
xact_date datetime Date of transaction
transaction_type Char(1) 1: 4 sales: Capture Up
pos_type Char(1) 5: Paynet POS
is_tds Boolean If true, the process 3D
agent_id String (max 10) Paynet dealers who process the current account code
user_id String (max 10) the user that
e-mail String (max 60)
phone String (max 10)
bank_id Char(4) The Bank's code Paynet Systems
instalment int number Installment
ratio float rate used in payment.
card_no_masked String (max 25) Masked card number
card_holder String (max 50) Card owner
amount decimal The amount charged from credit card
net_amount decimal excludes Commission
comission decimal Commission amonut
comission_tax decimal Tax Commission
currency Char(3) Currency
authorization_code String (max 10) Bank confirmation code
reference_code String (max 50) Bank reference code
order_id String (max 50) Bank order no
is_succeed Boolean True if the operation is successful. If the operation is successful and returns HTTP 200 is_succeed true. The Bank did not check http 200 and is_succedd returns false.
Paynet_error_id string Paynet system error code
paynet_error_message string Paynet system error message
bank_error_id String (max 50) the banking system error code
bank_error_message String (max 50) Error messages of the banking system
bank_error_short_desc String (max 250) Error messages of the banking system
bank_error_long_desc string Error messages of the banking system
object_name string transaction
code System code see results. Return codes
message string System message

Payment Financialization the Cancel (v1/transaction/capture_reversal)

Successful Captureıl used for cancellation of credit card transactions.

URLs v1/transaction/capture_reversal
Request

{
"Xact_id" "xk_eaaaahtqbs04hq4su877zqıinuıhj * pvko0sjyhthodvxjpf"
}

Response

{
"Xact_id": "xk_eaaaahtqbs04hq4su877zqıinuıhj * pvko0sjyhthodvxjpf"
"xact_date": "2016-04-07T15: 33: 09 543"
"transaction_type" 6
"pos_type" 5
"is_tds": false,
"agent_id": "20005"
"user_id" "PaymentApi"
"email": ""
"phone": ""
"bank_id": "FOUNDATION"
"instalment" 0
"ratio": 0:02
"card_no_masked": "402 940 5945 ******"
"is card_hold" "cardholder"
"amount" 15
"net_amount": 14.65
"COMISSION the" 0.3
"comission_tax": 0:05
"currency": "TL"
"authorization_code" ""
"reference_code" ""
"order_id" ""
" is_succeed ": true,
" Paynet_error_id "" "
" Paynet_error_messag the "" "
" bank_error_id "" 6000 "
" bank_error_message ":" Invalid IP Address "
" bank_error_short_desc "" "
" bank_error_long_desc "" "
" object_name ":" the transaction "
" code ": 1
" message ":" "
}

Request Parameters
Parameter Name Type summary information
xact_id String (max 100) [Required] process id
Response Parameters
Parameter Name Type summary information
xact_id String (max 100) Process id
xact_date datetime Date of transaction
transaction_type Char(1) 4: Capture on 6: Capture Cancelled
pos_type Char(1) 5: Paynet POS
is_tds Boolean If true, the process 3D
agent_id String (max 10) Paynet dealers who process the current account code
user_id String (max 10) the user that
e-mail String (max 60)
phone String (max 10)
bank_id Char(4) The Bank's code Paynet Systems
instalment int number Installment
ratio float rate used in payment.
card_no_masked String (max 25) Masked card number
card_holder String (max 50) Card owner
amount decimal The amount charged from credit card
net_amount decimal excludes Commission
comission decimal Commission amonut
comission_tax decimal Tax Commission
currency Char(3) Currency
authorization_code String (max 10) Bank confirmation code
reference_code String (max 50) Bank reference code
order_id String (max 50) Bank order no
is_succeed Boolean True if the operation is successful. If the operation is successful and returns HTTP 200 is_succeed true. The Bank did not check http 200 and is_succedd returns false.
Paynet_error_id string Paynet system error code
paynet_error_message string Paynet system error message
bank_error_id String (max 50) the banking system error code
bank_error_message String (max 50) Error messages of the banking system
bank_error_short_desc String (max 250) Error messages of the banking system
bank_error_long_desc string Error messages of the banking system
object_name string transaction
code System code see results. Return codes
message string System message

Pre-Authorization Cancel (v1/transaction/preauth_reversal)

It is used for cancellation of pre-autorisation the credit card transactions.

URLs v1/transaction/preauth_reversal
Request

{
"Xact_id" "xk_eaaaanfhow7siofxo8lhpmruxp0hx3we8nmjsmgud * w3uısj"
}

Response

{ "Object_name": "transaction_preauth_reversed_request", "code": 0, "message": "Successful Transaction"}

Request Parameters
Parameter Name Type summary information
xact_id String (max 100) [Required] process id
Response Parameters
Parameter Name Type summary information
object_name string transaction_preauth_reversal
code System code see results. Return codes
message string System message

Payment Control (v1/transaction/check)

It returns information on the details of a credit card transaction made. You can use for quick access to post-process the payment information.

URLs v1/transaction/check
Request

{
Xact_id "xk_eaaaaah7vyf9hg4+gr9ezqimwaa8py6p4eroe4buuhrclxgo"
}

Response

{
"Data": [
{
"xact_id": "xk_eaaaajsdkı0vroqqwbjo2iq7lttglkxmfkld4zszot8kwsg" on
"xact_date": "2015-08-03T11: 42: 06 513",
"transaction_type": 1,
"pos_type" 5,
"agent_id": "20000" ,
"is_tds": true,
"bank_id": "PARFUM",
"instalment": 3,
"card_no": "415 514 3588 ******",
"card_hold": the "Mike",
"card_type": "cc "
" ratio ": 0.03
" amount ": 15:55,
" netamount ": 15,
" COMISSION the "0.47,
" comission_tax ": 0.08,
" currency "," TL ",
" the authorization_co ":" aut-2444 "
"reference_code": "ref-2444",
"order_id": "order-2444",
"is_succeed": true,
"xact_transaction_id": "01CFB16C-C343-4311-B886-3DF73BB1CC39",
"email": "",
" phone ":" ",
" note ":" \ to complete your u00d6deme i \ u00e7 information to enter, press the OK button \ u0131n \ u0131z ",
" agent_reference ":" 1234 ",
" object_name "," transaction ",
" code ": 0,
"message": "Be \ u015fur \ u0131l \ u0131 \ u0130 \ u015fle I"
}
],
"object_name", "transaction",
"code": 0,
"message": "Be \ u015fur \ u0131l \ u0131 \ u0130 \ u015fle I "
}

Request Parameters
Parameter Name Type summary information
xact_id String (max 100) Paynet process ID
reference_no String (max 50) Your reference number used in the payment transaction. It is advised to send a unique number for each process.
Response Parameters
Parameter Name Type summary information
xact_id String (max 100) Process id
xact_date datetime Date of transaction
transaction_type Char(1) 1: sales, 2: Pre-provision
pos_type Char(1) 1: Sweep up 5 POS: POS Paynet
is_tds boolean If true, the process 3D
agent_id String (max 10) Paynet dealers who process the current account code
e-mail String (max 60) not used
phone Char(10) not used
note String (max 140) The description you use during checkout (data-description)
ratio float rate used in payment.
agent_reference String (max 50) Your reference number used in the payment transaction. same reference_no
bank_id Char(4) The Bank's code Paynet Systems
instalment int number Installment
card_type Char(2) cc: Credit card
card_no String (max 25) Masked card number
card_holder String (max 50) Card owner
amount decimal The amount charged from credit card
netamount decimal excludes Commission
comission decimal The Commission tututar
comission_tax decimal Tax Commission
currency Char(3) Currency
authorization_code String (max 10) Bank confirmation code
reference_code String (max 50) Bank reference code
order_id String (max 50) Bank order no
is_succeed Boolean It indicates that the process was successful.
xact_transaction_id 32 Guider Paynet process tracking number
object_name string transaction
code string System code see results. Return codes
message string System message

Transaction Detail (v1/transaction/detail)

It returns information on the details of a credit card transaction made. You can query the reference number that you use in Charge PayNet service or transaction number. If there is more than one transaction with the same reference numbers, it returns all transactions with a list.

URLs v1/transaction/detail
Request

{
Xact_id "xk_eaaaaah7vyf9hg4+gr9ezqimwaa8py6p4eroe4buuhrclxgo"
}

Response
            { 
                "Data": [ 
                        { 
                         "xact_id": "xk_eaaaaecdqpdzhcx1tblmmlrmwzzqmvxfkbh41vjaztxrgldh", 
                         "xact_date": "2015-12-04T18: 14: 28 377", 
                         "transaction_type": 1, 
                         "pos_type" 5, 
                         "agent_id": "10000" , 
                         "is_tds": true, 
                         "bank_id": "BONS", 
                         "instalment": 0, 
                         "card_no": "444444 ****** 4448", 
                         "card_hold will", "AA", 
                         "card_type": "cc " 
                         " ratio ": 0.02 
                         " amount ": 813.75, 
                         " netamount ": 794.54, 
                         " COMISSION's ": 16:28, 
                         " comission_tax ": 2.93, 
                         " currency "," TL ", 
                         " the authorization_co ":" aut-4276 " 
                         "reference_code": "ref-4276", 
                         "order_id": "order-4276", 
                         "is_succeed": true, 
                         "reversed": false, 
                         "reversed_xact_id": "xk_eaaaagzefdubyb3r9qz0yj \/y3tw7k1nc6sjxlrf a * 0zrk6sc", 
                         "xact_transaction_id": " 58573BB6-1F67-4DB1-841B-E44D8EA2873F ", 
                         " email "," yakup.kaymaz@isisbilisim.com.t is ", 
                         " phone ":" ", 
                         " note ":" ", 
                         " agent_reference ":" ", 
                         " company_amount ": 813.75, 
                         " company_commissio's ": 16:28, 
                         " company_commission_with_tax ": 19.2104, 
                         " company_net_amount ": 794.5396, 
                         " agent_amount ": 0, 
                         " agent_commissio's ": 0, 
                         " agent_commission_with_tax ": 0, 
                         " agent_net_amount ": 0, 
                         " company_cost_ratio ": 0.02, 
                         "company_pay_ratio": 0, 
                         "company_vdat to": "0001-01-01T00: 00: 00", 
                         "agent_vdat to": "0001-01-01T00: 00: 00", 
                         "xact_type_desc": "Buy \ u0131 \ u015fur " 
                         " bank_name ":" Bonus ", 
                         " payment_string ":" Bonus Single \ u00e7ek I ", 
                         " pos_type_desc ":" Paynet POS ", 
                         " renovation agent_name ":" ARENA B \ u0130lg \ u0130say SAN. AND T \ u0130c. to. \ U015 to. ", 
                         " Company_name ":" ARENA B \ u0130lg \ u0130say SAN. AND T \ u0130c. to. \ U015 to. ", 
                         " Instalment_text ":" PE \ u015fur's ", 
                         " ipaddress ":" 212.156.16.214 ", 
                         " client id ":" 9cb93236-41d8-4656-ad4d-746693b0f0a0 ", 
                         " object_name "" transaction ", 
                         " code ": 0, 
                         " message ":" Be \ u015fur \ u0131l \ u0131 \ u0130 \ u015fle I " 
                       } 
                      ], 
                      " object_name "," transaction ", 
                      " code ": 0, 
                      " message ": "BA \ u015fur \ u0131l \ u0131 \ u0130 \ u015fle I" 
                }
                            
Request Parameters
Parameter Name Type summary information
xact_id String (max 100) Paynet process ID
reference_no String (max 50) Your reference number used in the payment transaction. It is advised to send a unique number for each process.
user_id String (max 10) Paynet user code
Response Parameters
Parameter Name Type summary information
xact_id String (max 100) Process id
xact_date datetime Date of transaction
transaction_type Char(1) Sales 1 Reversal 2 PreAuth 3 Capture 4 PreAuthReversal 5 CaptureReversal 6 Query 7 Credit 9 PointUse 10 PointReturn 11
xact_type_desc String (max 50) Transaction Type Description
pos_type Char(1) 1: Sweep up POS 5: Paynet POS
pos_type_desc String (max 100) Pose type description
is_tds boolean If true, the process 3D
agent_id String (max 10) The current account code of Paynet dealers who process
agent_name String (max 50) Dealer Name
company_name String (max 50) The parent company name
e-mail String (max 60) not used
phone String (10) not used
note String (max 140) The description you use during checkout (data-description)
ratio float rate used in payment.
agent_reference String (max 50) Your reference number used in the payment transaction
bank_id Char(4) The Bank's code Paynet Systems
bank_name String (max 100) The name of the Bank
instalment int number Installment
instalment_text String (max 100) Installment description
payment_string String (max 100) Payment plan
card_no String (max 25) Masked card number
card_holder String (max 50) Card owner
card_type Char(2) cc: Credit card
amount decimal the amount charged from credit card
netamount decimal excludes Commission
comission decimal The commission
comission_tax decimal Tax Commission
currency Char(3) Currency
authorization_code String (max 10) Bank confirmation code
reference_code String (max 50) Bank reference code
order_id String (max 50) Bank order no
is_succeed boolean It indicates that the process was successful.
reversed boolean True/False returns true if the operation was canceled
reversed_xact_id String (max 100) It shows which transaction is canceled for transactions which transaction type is cancellation.
reversal_available boolean Authority for ability to repayment
xact_transaction_id 32 Guider Paynet process tracking number
company_amount decimal Parent Company gross receivable as a result of this transaction
company_commission decimal Comission amount which it will be invoiced to parent company according to the transaction.
company_commission_with_tax decimal Comission amount (added VAT) which it will be invoiced to parent company according to the transaction.
company_net_amount decimal This process results in the net amount to be paid to the parent company
agent_amount decimal As a result of this process will take Reseller Gross
agent_commission decimal This process results in dealer commissions
agent_commission_with_tax decimal This process resulted in dealers commission with VAT
agent_net_amount decimal the net amount to be paid to the dealer in this transaction
company_cost_ratio float The main value of the company commission
company_pay_ratio float Payment rate Between Company and Dealer
ipaddress String (max 15) ip address of the transaction
client_id 32 Guider client id of the transaction
object_name string transaction
code string System code see results. Return codes
message string System message

Process List (v1/transaction/list)

It is used to take transaction list performed via Paynet.

URLs v1/transaction/list
Request

{ "datab": "2015-04-04", "datbi": "2015-05-05"}

Response
                           { 
                           "In companyco": "10000", 
                           "CompanyName": "ARENA B \ u0130lg \ u0130say SAN. VE \ u0130c. to. \ U015 to.", 
                           "Total" 18, 
                           "total_count": 1, 
                           "limit": 1000, 
                           "ending_before" 0, 
                           "starting_after" 0, 
                           "total_amount": 359,778.00, 
                           "object_name": "transaction_list", 
                           "has_more": false, 
                           "Data": [ 
                                { 
                                "merchant_id": "100 100 000" 
                                "in companyco": "10000", 
                                "CompanyName": "ARENA B \ u0130lg \ u0130say SAN. VE \ u0130c. to. \ u015 to.", 
                                "agent_id": "20000", 
                                "agent_referans_no": "12471", 
                                " but agent_name ":" BURLA MAK to TİC.VE INVESTMENT A. \ u015 to. ", 
                                " xact_id ":" xk_eaaa NEW * ptb1bujhrj0q5vntse1l9odulzjnvzcodwngdyuo ", 
                                " xact_date "" 12/10/2015 ", 
                                " is_tds ": true, 
                                " bank_id ":" AXSS " , 
                                "bank_name": "Axess", 
                                "card_no": "434 678 0002 ******", 
                                "card_holder": "fsfsfs", 
                                "card_type": "bC", 
                                "card_type_NAME": "Credit Card \ u0131" , 
                                "the authorization_co": "aut-2545", 
                                "the reference_co": "ref-2545", 
                                "order_id": "order-2545", 
                                "postype_desc": "Paynet POS", 
                                "xact_typ": the "S", 
                                "xacttype_desc "" Buy \ u0131 \ u015fur ", 
                                " fiscal_period_id ":" 201 512 ", 
                                " sector_id ":" 0001 ", 
                                " sectorid_desc ":" know \ u015fur I ", 
                                " Channel_Name ":" Paynet Api ", 
                                " ipaddress ":" 10.1.2.176 ", 
                                " client id ":" ", 
                                " xact_transaction_id ":" 0110CBF1-3D81-4C94-9B4B-F4D94F035E09 ", 
                                " terminal_id ":" ", 
                                " is_succeed ": true, 
                                " reversed ": false, 
                                " a is_reconcil " : false, 
                                "is_payup": false, 
                                "is_onchargeback": false, 
                                "is_transferred": false, 
                                "reversed_xact_id": "", 
                                "channel_id": 2, 
                                "pos_type" 5, 
                                "instalment": 3, 
                                "amount": "150.00", 
                                "net_amount" "144.69", 
                                "COMISSION's": "4.50", 
                                "comission_tax": "0.81", 
                                "currency", "TL", 
                                "ratio": "3 00 ", 
                                " user_id ":" Paynetj ", 
                                " entry_date ":" 10/12/2015 23:05:11 ", 
                                " xact_not to ":" ", 
                                " xact_agent_reference ":" ", 
                                " company_pay_ratio "," 30.00 " , 
                                "company_cost_ratio" "3.00", 
                                "will ana_firma_brut_al" "45.00" 
                                "ana_firma_komisyo the": "0.00", 
                                "ana_firma_komisyonu_kdv_dahil" "0.00" 
                                "ana_firma_odenecek_net_tutar": "45,00" , 
                                "will bayi_brut_al" "105.00", 
                                "bayi_komisyon": "4.50", 
                                "bayi_komisyonu_kdv_dahil": "5.31", 
                                "bayiye_odenecek_net_tutar": "99.69", 
                                "cp_mfi_vdat to" "01/01/1900" , 
                                "cp_mfi_vdate_day": 0, 
                                "ap_mfi_vdat to" "01/01/1900", 
                                "ap_mfi_vdate_day": 0 
                                } 
                                .... 
                          ] 
                          }
                            
Request Parameters
Parameter Name Type summary information
agent_id String (max 10) [Optional] to filtering by Paynet dealer code.
bank_id Char(4) [Optional] to filter according to the bank code
datab Date [Required] Start Date
datbi Date [Required] Deadline
show_unsucceed boolean [Optional] this parameter to "true" makes the processing fails with successful operations. Default value is "false"
limit int [Optional] The number of data to be returned. Default returns 10 records.
ending_before int [Optional] Integer values. Bring records from the specified index to the number of the previous limit. If sent ending_before 90, 15 sent to the limit. 75. With 90 sends records from the records.
starting_after int Integer value. Bring records from the specified index to the number of the previous limit. If sent ending_before 90, 15 sent to the limit. 75. With 90 sends records from the records. [Optional] Integer values. It brings up a number of the next record from the specified index limit. If it starting after sent 15, 15 sent to the limit. 15. With 30 sends records from Records
Response Parameters
Parameter Name Type summary information
in companyco String (max 10) The parent company code
CompanyName String (max 50) The parent company name
xact_date datetime Transaction date in the format DD.MM.YYYY
entry_date datetime Transaction's time DD.MM.YYYY HH: SS: hh
total int The total number of line
total_count int The total number of rows displayed
total_amount int Total transaction value
limit int Sent limit information
ending_before int The information sent ending_before
starting_after int The information is sent starting_aft
object_name string transaction_list
has_more boolean If true, it means that more of the rows sent to the specified criteria.
merchant_id String (max 50) Members workplace number of transaction
company_cost_ratio float The parent company commission rate. Just come in the report taken by the parent company.
agent_id String (max 10) Stand code Paynet
user_id String (max 10) Paynet user code
xact_not to String (max 140) sent description during processing
xact_agent_reference String (max 50) The reference number is entered during processing
agent_referans_no String (max 50) Home Company Dealer Code. code the retailer's parent company,
agent_name String (max 50) Dealer Name
xact_id String (max 100) Paynet transaction number
is_tds Boolean Transactions made with the 3D secure/done that
bank_id Char(4) Bank code
bank_name String (max 100) The name of the Bank
card_no String (max 25) Card number
card_holder String (max 50) The name of the cardholder
card_type Char(2) card type
card_type_NAME String (max 20) Card Type Description
authorization_code String (max 10) Bank confirmation code
reference_code String (max 50) Bank reference code
order_id String (max 50) Bank order number
postype_desc String (max 100) Pose type description
xact_type Char(2) Transaction Type CD Return CR Financialization PI cancel of the score PR provision R Cancel R RC cancel of the Financialization RP Cancel OF the Provision S Sales Query Q DS duesales
xacttype_desc String (max 50) Process description
fiscal_period_id Char(6) financial terms of the transaction in the form YYYYMM.
sector_id Char(4) Sector id
sectorid_desc String (max 20) Industry description
Channel_Name String (max 50) Description of the channels of the transaction
ipaddress String (max 15) ip address of the transaction
client_id 32 Guider client of the transaction
xact_transaction_id 32 Guider Paynet tracking code
terminal_id String (max 50) terminal number of the transaction
is_succeed Boolean The operation was successful or failed. The transaction amount is then drawn about the success with a credit card. If the board fails for some reason it could not be shot.
reversed Boolean Whether the cancellation process
is_reconcile Boolean Whether Bank Reconciliation is processed
is_payup Boolean Whether Payment will be made to the company
is_onchargeback Boolean Whether there is chargeback request
is_transferred Boolean It is transferred to your current account transactions.
reversed_xact_id String (max 100) It shows which record is cancellation record
channel_id int id of the channel of the transaction
pos_type Char(1) Pos type
instalment int number Installment
amount decimal the amount charged from credit card
net_amount decimal excludes Commission
comission decimal Commission amonut
comission_tax decimal Tax Commission
currency Char(3) Currency
ratio float The commission rate
company_pay_ratio float Payment Distribution rate to main company. It is 50 for %50.
company_cost_ratio float Parent Company% Commission
ana_firma_komisyo the decimal Parent Company TL Commission (except KDV)
ana_firma_komisyonu_kdv_dahil decimal Home Companies Commission TL (KDV Including)
ana_firma_odenecek_net_tutar decimal Parent Company Net Amount Payable
cp_mfi_vdate_day int Parent Company Payment Blockage (Days)
cp_mfi_vdat to Date Home Company Payment Term
ana_firma_brut_al decimal Parent Company Gross Receivables
bayi_brut_al decimal Reseller Gross Receivables
bayi_komisyon decimal Stand TL Commission (except KDV)
bayi_komisyonu_kdv_dahil decimal Dealer Commission TL (KDV Including)
bayiye_odenecek_net_tutar decimal Net Amount Payable Dealer
ap_mfi_vdate_day int Dealer Payment Blockage (Days)
ap_mfi_vdat to int Dealer Payment due

Marking Process (v1/transaction/mark_transferred)

If you want to return only non-transferred records from list service while transferrring paynet transactions to your system, you can mark the transaction as transferred with this service.

URLs v1/transaction/mark_transferred
Request

{
Xact_id "xk_eaaaaah7vyf9hg4+gr9ezqimwaa8py6p4eroe4buuhrclxgo"
}

Response

{ "Object_name": "transaction_mark_transferred", "message": "Successful Trading", "code": 0}

Request Parameters
Parameter Name summary information
xact_id [Required]
Paynet transaction number

Transaction Reversal (v1/transaction/reversed_request)

Successful cancellation of credit card transactions, is used for a refund or partial refund. The important point here is the date of the transaction. Transactions made on the same day the entire amount will be canceled. Outdated procedures all be returned, or you can return the part. Partial refunds can not be made in transactions made on the same day.

URLs v1/transaction/reversed_request
Request

{
Xact_id "xk_eaaaaah7vyf9hg4+gr9ezqimwaa8py6p4eroe4buuhrclxgo"
}

Response

{ "Object_name": "transaction_reversed_request", "message": "Successful Trading", "code": 0}

Request Parameters
Parameter Name summary information
xact_id [Required]
Paynet transaction number
amount [Optional] amount to be returned. The amount will be returned to state multiplied by a hundred. "10.00 TL" => "1000" should be sent. If sent or not sent 0 is returned all the transaction amount.
succeedurl [Optional] The refund request is approved or removed from a post-operation check is performed on the condition succeedurl address.
Response Parameters
Parameter Name Type summary information
object_name string Dones object name made APIs
code string code of return results
message string Description of the return result code

succeedurl Address Post had Parameters

In the case of approval or rejection requested in response to a request from the return service, the adrese specified in the succeedUrl parameter specified in the v1/transaction/reversed_request service is posted in JSON format. If this parameter has a null value post-processing is not performed.

Request Parameters
Parameter Name Type summary information
xact_id string Paynet transaction number of extradition proceedings
code string The outcome of extradition proceedings code 0: refund/cancellation request has been approved 1: refund/cancellation request was approved
status string state status regarding extradition proceedings as a result of
message string Note on the return is a result of

Transaction Reversal List (v1/transaction/reversal_list)

It is used to take list of cancellation/refund transactions from paynet.

URLs v1/transaction/reversal_list
Request

{ "Agent_id": "", "bank_id": "", "datab": "2015-04-04", "datbi": "2016-11-05", "ending_before" 0, "starting_after": 0 "limit": 1}

Response
                                     {   
                                       "In companyco": "10000", 
                                       "companyname": "ARENA COMPUTER IND. AND TRADE INC", 
                                       "total" 24, 
                                       "total_count": 2, 
                                       "limit": 1, 
                                       "ending_before" 0 , 
                                       "starting_after" 0, 
                                       "total_amount": 24781.00 ", 
                                       " object_name ":" transaction_list ", 
                                       " has_more ": true, 
                                       " Data ": [   
                                          {   
                                             " xact_id ":" xk_eaaaaacduon4k5wz6wqq7nmcnpk * tmqglhdlwpkh5etf * ict ", 
                                             " the company_co ":" 10000 ", 
                                             " agent_id ":" 20060 ", 
                                             " user_id ":" aygul a ", 
                                             " bank_id "" wrld ", 
                                             " bank_name "" YKB ", 
                                             " instalment "0, 
                                             " Amount ": 2000, 00, 
                                             "entry_date" "06/10/2015", 
                                             "xact_date" "10/06/2015", 
                                             "status": "Cancelled", 
                                             "cardholder", "test", 
                                             "Cardno": "450 634 ***** * 5746 ", 
                                             " email ":" ", 
                                             " phone ":" ", 
                                             " the authorizationco ":" aut-2315 ", 
                                             " the referenceco ":" ref-2315 ", 
                                             " deleted ": false, 
                                             " DELETE_REASON ":" " , 
                                             "reversed_xact_id": "xk_eaaaafnhzuqrk0p7fmbrpbztopww2hwnrkgl71ı6w4u1czzb", 
                                             "renovation company_name": "ARENA COMPUTER INDUSTRY. AND TRADE INC ", 
                                             " agent_name ":" SMART COMPUTER SYSTEMS ", 
                                             " remain_amount ": 0, 
                                             " credit_amount ": 0, 
                                             " requested_amount ": 0 
                                          } 
                                       ] 
                                    }
                            
Request Parameters
Parameter Name Type summary information
agent_id String (max 10) [Optional] to filtering by Paynet dealer code.
bank_id Char(4) [Optional] to filter according to the bank code
datab Date [Required] Start Date
datbi Date [Required] Deadline
limit int [Optional] The number of data to be returned. Default returns 10 records.
ending_before int [Optional] Integer values. Bring records from the specified index to the number of the previous limit. If sent ending_beforee 90, 15 is sent as limit.It sends records between 75th and 90th records.
starting_after int Integer value. Bring records from the specified index to the number of the previous limit. If sent ending_before 90, 15 sent to the limit. 75. With 90 sends records from the records. [Optional] Integer values. It brings up a number of the next record from the specified index limit. If it starting after sent 15, 15 sent to the limit. 15. With 30 sends records from Records
Response Parameters
Parameter Name Type summary information
company_code String (max 10) The parent company code
company_name String (max 50) The parent company name
xact_date datetime Transaction date in the format DD.MM.YYYY
entry_date datetime Refund/cancellation date in the format DD.MM.YYYY
total int The total number of line
total_count int The total number of rows displayed
total_amount int Total transaction value
limit int Sent limit information
ending_before int The information sent ending_before
starting_after int The information is sent starting_aft
object_name string transaction_list
has_more boolean If true, it means that more of the rows sent to the specified criteria.
agent_id String (max 10) Stand code Paynet
user_id String (max 10) Paynet user code
agent_name String (max 50) Dealer Name
xact_id String (max 100) Paynet transaction number
reversed_xact_id String (max 100) Paynet cancellation/refund process ID
bank_id Char(4) Bank code
bank_name String (max 100) The name of the Bank
card_no String (max 25) Card number
card_holder String (max 50) The name of the cardholder
authorization_code String (max 10) Bank confirmation code
reference_code String (max 50) Bank reference code
status Boolean Transaction cancellation/refund status
deleted Boolean Did you process the cancellation/refund were rejected?
delete_reason Boolean Transaction cancellation/refund rejection reasons
instalment int number Installment
amount decimal the amount charged from credit card
remain_amount decimal Return/After canceling the remaining amount
credit_amount decimal Return/canceled amount amount
requested_amount decimal Return/cancel the desired amount

Add Related to Information Processing (v1/transaction/add_info)

e-mail about your process after receipt of payment, phone, reference code and allows you to add notes or update.

URLs v1/transaction/add_info
Request

{
"Xact_id": "xk_EAAAAEwBHM0lIgwZbfPU5TmiHhhc/ARIrakW/9476pYzEyta",
"note": "note field",
"phone": "2123646464",
"email", "mail@mail.co me",
"agent_reference": "agent_referen of space"
}

Response

{ "Object_name": "transaction_add_info", "message": "Successful Trading", "code": 0}

Request Parameters
Parameter Name summary information
xact_id [Required]
Paynet transaction number
note [Optional]
notes regarding payment information
e-mail [Optional]
mail information about payments
phone [Optional]
phone information about payments
agent_reference [Optional]
dealers reference number information about payments
Response Parameters
Parameter Name Type summary information
object_name string Dones object name made APIs
code string code of return results
message string Description of the return result code

Transaction Slip (v1/transaction/slip)

It is the service that you can use when you want to slip on your successful operation.

URLs v1/transaction/briefs
Request

{
"Xact_id": "xk_EAAAAEwBHM0lIgwZbfPU5TmiHhhc/ARIrakW/9476pYzEyta",
"email", "mail@arena.com.t is",
"send_mail": "true"
}

Response

{
"Url": "https://pts.Paynet.com.tr/s/Paynetslip?xact_id=xk_eaaaaewbhm0lıgwzbfpu5tmihhhc/***********;companycode=****&agentıd=**** "
" but object_name ":" transaction_slip ",
" code ": 0,
" message ":" successful Transaction "
}

Request Parameters
Parameter Name Type summary information
xact_id string [Required]
Paynet transaction number
e-mail string [Optional]
requested e-mail address to send Slip
send_mail boolean [Optional]
Did you send mail?
phone string [Optional]
required phone information to be sent Slip
send_sms boolean [Optional]
Did you send SMS?
Response Parameters
Parameter Name Type summary information
object_name string Dones object name made APIs
code string code of return results
message string Description of the return result code
url string URL address where you can see the slip

Download Signature (v1/transaction/upload)

With this service; taken as payment approval process you can upload data about your successful operation signature image format base64.

URLs v1/transaction/upload
Request

{
"Xact_id": "xk_EAAAAEwBHM0lIgwZbfPU5TmiHhhc/ARIrakW/9476pYzEyta",
"pars_base64": "base64'l the state of the signature data"
}

Response

{
"Object_name": "file_upload",
"code": 0,
"message": "Successful Transaction"
}

Request Parameters
Parameter Name Type summary information
xact_id string [Required]
Paynet transaction number
pars_base64 string [Required]
Image converted to base64 format of the data
pars_file_name string [Optional]
The name of the image data
Response Parameters
Parameter Name Type summary information
object_name string Dones object name made APIs
code string code of return results
message string Description of the return result code

Rate Services

Rate Table (v1/ratio/Get)

Paynet service can call rate table with the secret key. Suitable for use on the server side.

URLs v1/ratio/Get
Request

{ "bin": "434 678", "amount": 100}

Response

{
"Data": [
{
"bank_id": "AXSS",
"bank_logo": "http: // localhost: 64 102/img/banklogo/small/axss.png",
"bank_name": "Axess",
"ratio" : [
{
"ratio": 0.02,
"instalment_key": "ji_eaaaaıi3zzumsf9+s+onpvyg8g1psxu5ymrpxegbh1typ/dn",
"instalment": 0,
"instalment_amount" 2.0,
"total_net_amount": 1.96,
"total_amount" 2.0,
"Commision" : 0.04,
"commision_tax" 0.00,
"desc": "Advance"
},
{
"ratio": 0.03,
"instalment_key": "ji_eaaaaavoywdjz57gmbr3qb a+0anhrnlwpystlebzewfzoqgz",
"instalment": 3,
"instalment_amount": 0.67,
"total_net_amount" : 1.92,
"total_amount" 2.0,
"Commission,": 0.06,
"commision_tax": 0.02,
"desc": "3 Month"
},
{
"ratio": 0.03,
"instalment_key": "ji_eaaaaj by+t5ymv2wli8awuqnpfjyuq92xtgeıphzlip8n4jg",
"instalment "6,
" instalment_amount "0.33,
" total_net_amount ": 1.92,
" total_amount "2.0,
" Commission, ": 0.06,
" commision_tax ": 0.02,
" desc ":" 6 Month "
},
{
" ratio ": 0:02 ,
"instalment_key": "ji_eaaaagam87sdwvgsgj4fvwiqk/yewk5p2r3xdfoctgltin9x7te0ahdpfevja6ı6ocw7qw ==",
"instalment": 101,
"instalment_amount": 0.02,
"total_net_amount": 1.96,
"total_amount" 2.0,
"Commission,": 0.04,
"commision_tax" 0.00,
" desc ":" Rate Usage "
}
]
}
],
" but object_name ":" ratio_get ",
" code ": 0,
" message ":" successful Transaction "
}

Request Parameters
Parameter Name Type summary information
pos_type int [Optional] It defines which one will be used Paynet POS ratio or company POS ratio. Paynet works pose as default.
amount string [Optional] The total amount drawn from credit card. According to the submitted amount instalment_amount, total_net_amount, total_amount, Commission, calculates commision_tax values.
addcomission_to_amount boolean [Optional] true/false, default false. The Commission will determine the amount that has been added to the payment amount. True amount of commission is added to the amount to be withdrawn from your credit card.
bin string [Optional] The first 6 digits of your credit card is sent just returned from the bank that owns the card rates.
agent_id string [Optional] The parent company, wants to see the proportion of dealers; Paynet should give the value of the dealer code.
ratio_code string [If you send the code you define the optional rate table in this area, then the code defined in your rate and payment table appears.
Response Parameters
Parameter Name Type summary information
instalment_key string The ID of the respective rate. Custom Forms Integration of the payment process, which would be sent late this ID.
instalment int number Installment
instalment_amount decimal The amount of payment will be withdrawn from the credit card
desc String (max 50) Installment description
bank_id Char(4) The Bank's code Paynet Systems
bank_logo String (max 60) Bank logo
bank_name String (max 100) The name of the Bank
ratio float rate used in payment.
total_amount decimal The total amount drawn from credit card
total_net_amount decimal excludes Commission
the commission decimal The commission
commission_tax decimal Tax Commission

Rate Table (v1/ratio/Get_public)

Paynet is the service that gives rates-service on the client-side.

URLs v1/ratio/Get_public
Request

{ "bin": "434 678", "amount": 100}

Response

{
"Data": [
{
"bank_id": "AXSS",
"bank_logo": "http: // localhost: 64 102/img/banklogo/small/axss.png",
"bank_name": "Axess",
"ratio" : [
{
"ratio": 0.02,
"instalment_key": "ji_eaaaaıi3zzumsf9+s+onpvyg8g1psxu5ymrpxegbh1typ/dn",
"instalment": 0,
"instalment_amount" 2.0,
"total_net_amount": 1.96,
"total_amount" 2.0,
"Commision" : 0.04,
"commision_tax" 0.00,
"desc": "Advance"
},
{
"ratio": 0.03,
"instalment_key": "ji_eaaaaavoywdjz57gmbr3qb a+0anhrnlwpystlebzewfzoqgz",
"instalment": 3,
"instalment_amount": 0.67,
"total_net_amount" : 1.92,
"total_amount" 2.0,
"Commission,": 0.06,
"commision_tax": 0.02,
"desc": "3 Month"
},
{
"ratio": 0.03,
"instalment_key": "ji_eaaaaj by+t5ymv2wli8awuqnpfjyuq92xtgeıphzlip8n4jg",
"instalment "6,
" instalment_amount "0.33,
" total_net_amount ": 1.92,
" total_amount "2.0,
" Commission, ": 0.06,
" commision_tax ": 0.02,
" desc ":" 6 Month "
},
{
" ratio ": 0:02 ,
"instalment_key": "ji_eaaaagam87sdwvgsgj4fvwiqk/yewk5p2r3xdfoctgltin9x7te0ahdpfevja6ı6ocw7qw ==",
"instalment": 101,
"instalment_amount": 0.02,
"total_net_amount": 1.96,
"total_amount" 2.0,
"Commission,": 0.04,
"commision_tax" 0.00,
" desc ":" Rate Usage "
}
]
}
],
" but object_name ":" ratio_get ",
" code ": 0,
" message ":" successful Transaction "
}

Request Parameters
Parameter Name Type summary information
pos_type int [Optional] It defines which one will be used; Paynet POS rates or company POS rates Paynet works pose as default.
amount string [Optional] The total amount drawn from credit card. According to the submitted amount instalment_amount, total_net_amount, total_amount, Commission, calculates commision_tax values.
addcomisson_to_amount boolean [Optional] true/false, default false. The Commission will determine the amount that has been added to the payment amount. True amount of commission is added to the amount to be withdrawn from your credit card.
bin string [Optional] The first 6 digits of your credit card is sent just returned from the bank that owns the card rates.
agent_id string [Optional] The parent company, wants to see the proportion of dealers; Paynet should give the value of the dealer code.
ratio_code string [Optional] If you send the code you define ratios table in this area, defined rates and payment table appears in.
Response Parameters
Parameter Name Type summary information
instalment_key string The ID of the respective rate. Custom Forms Integration of the payment process, which would be sent late this ID.
instalment int number Installment
instalment_amount decimal The amount of payment will be withdrawn from the credit card
desc String (max 50) Installment description
bank_id Char(4) The Bank's code Paynet Systems
bank_logo String (max 60) Bank logo
bank_name String (max 100) The name of the Bank
ratio float rate used in payment.
total_amount decimal The total amount drawn from credit card
total_net_amount decimal excludes Commission
comission decimal The commission
comission_tax decimal Tax Commission

Rate Type Regulation (v1/ratio/set_typ A)

Creating a new type your rate or allows you to change the properties of an existing rate type and added/edited rate of return code type.

URLs v1/ratio/set_typ to
Request

{
"ratio_code": "S3E746PV",
"description": "Rate type description",
"is_default": false,
"is_cumulative": true
}

Response

{
"ratio_code": "S3E746PV",
"renovation object_name": "ratio_set_typ to",
"code": 0,
"message": "Successful Transaction"
}

Request Parameters
Parameter Name Type summary information
ratio_type string [Optional] Rate code according to rate type which you will define. If the new rate type wished to establish these parameters shouldn’t be sent.
description string [Required] The description of the type of rate you define.
is_default Boolean [Optional] true/false, default false. The default rate type determines whether to use the API.
is_cumulative Boolean [Optional] true/false, default true. Rate determines the method of calculation. Parameter to "true" rate calculation method is sent as "Fixed Funding Ratio" as used by adding selected will and as +/- on the entered rates APIs in Paynet rate of "false" rate calculation method is sent as a "rate to be displayed" as is selected and rates the entered value is displayed in the same API.
Response Parameters
Parameter Name Type summary information
ratio_code string Added or edited rate type code.
object_name string Return the name of the object made API.
code string Code of return results. Refer. Return codes
message string Description of the return result code.

Rate Type Deletion (v1/ratio/delete_type)

It is a service that allows you to delete the type of rate you define.

URLs v1/ratio/delete_typ to
Request

{
"ratio_code" "S3E746PV"
}

Response

{
"Object_name": "ratio_delete_typ to",
"code": 0,
"message": "Successful Transaction"
}

Request Parameters
Parameter Name Type summary information
ratio_code string [Required] code of rate type you want to delete
Response Parameters
Parameter Name Type summary information
object_name string Return the name of the object made API.
code string Code of return results. Refer. Return codes
message string Description of the return result code.

Identification rate (v1/ratio/define)

This is a service which supports to define ratios to a ratio type and to block installment and bank.

URLs v1/ratio/treasure
Request

{
"ratio_code": "S3E746PV",
"banks": [
{
"bank_id": "MAXMIN",
"is_blocked": "false",
"instalments": [
{
"instalment", "3",
"ratio": " 0:13 ",
" is_blocked ":" false "
},
{
" instalment "," 6 ",
" ratio ":" 0:15 ",
" is_blocked ":" false "
}
]
},
{
" bank_id ":" wrld ",
" is_blocked ":" false ",
" instalments ": [
{
" instalment "," 3 ",
" ratio ":" 0:12 ",
" is_blocked ":" false "
}
]
},
{
" bank_id ":" AXSS ",
" is_blocked ":" true "
}
]
}

Response

{
"Object_name": "ratio_def to",
"code": 0,
"message": "Successful Transaction"
}

Request Parameters
Parameter Name Type summary information
ratio_code string [Required] rate code definition of the type of rate you want to do.
banks Sequence [Required] holding banks to do the series of rate definition.
bank_id Char(4) [Required] Description of the 4-character code representing the bank will be made. Refer. Bank Codes
instalments Sequence [Optional] "banks" at the bottom of the array are arranged for each object that holds the details of the payment. If these banks for a blocked bank "instalments" There is no need to send the series.
instalment Int [Required] will be justified or rate the definition of the number of installments to be made. Refer. Installment codes
is_blocked Boolean [Optional] true/false, default false. as to whether or blocking of bank financing, "banks" or "instalments" can be attached to objects in the array.
ratio float [Optional] Default: 0. it is the ratio should be sent at certain intervals depending on the method of calculation. "cumulative" Rate calculation management may be the minimum rate of -0.20, the maximum may be 0.20. "Net" Rate calculation management may be minimum rate of type 0, the maximum may be 0.20. if Installment is blocked or the ratio is "0" there is no need to submit this parameter.
Response Parameters
Parameter Name Type summary information
object_name string Return the name of the object made APIs
code string Code of return results. Return Code "0" to define the successful construction scheme. Apart from this, all return codes that identify the error occurs, specifies the definitions are not saving. Refer. Return codes
message string Description of the return result code
Bank Codes
bank_id description
ADVTAdvantage
AXSS Axess
BONS Bonus
DENZ Denizbank
FINS CardFinans
MAXM Maximum
PARF Paraf
VAKF Vakıfbank
WRLD WorldCard
ZDGR Other Banks
Installment Codes
instalment description
0One shot
33 Month
66 Month
99 Month


Dealer Services (Agent)

Auto to log in (v1/agent/AutoLogin)

It allows you to login odeme.paynet.com.tr automaticly via API.

URLs v1/agent/AutoLogin
Request

{ "Agent_id": "54 280", "user_name": "PaymentApi"}

Response

{
"Url": "https://pts.Paynet.com.tr/account/Paynetagentgate?al=eaaaalubfzv0gz3ylrgyypdqeqeuvr%2fzqjelge7j2fvecuodbyb%2bfxqneblgwjb0wjuemfc0kvz04%2bmltmwsm1ybluc%3d",
"renovation object_name": null,
"code": 0,
"message" "successful Transaction"
}

Request Parameters
Parameter Name Condition Type summary information
user_name Required string Paynet user name
agent_id Required string Paynet dealer code
Response Parameters
Parameter Name Type summary information
URLs string Will allow you to automatically log in to your account Paymnet.Paynet.com.t url address
object_name string Return the name of the object made APIs
code string code of return results
message string Description of the return result code

Login service (v1/agent/login)

In the login service returns the results of verification dealer and user information.


URLs v1/agent/log in
Request

{ "Agent_id" "Stand Your Code," "user_name": "Paynetap" and "password", "PaymentApi"}

Response

{
"Userauthorizationcontain is": {
"transactionauthorizatio's": true,
"reportauthorizatio's": true,
"masteruserauthorizatio's": true,
"alluserreportauthorizatio's": true,
"reversetransactionauthorizatio's": true
},
"session_key": "mbl_pcs_cs73ar0x00iznqwawk ******* ** ",
" expired_date ":" 2016-04-09 ",
" logo_url ": null,
" agent_id ":" 54266 ",
" USER_NAME ":" dimples Yılmazel ",
" user_id ": null,
" user_email ":" dummy ",
" user_pho the ":" dummy ",
" the company_co ":" dummy ",
" company_desc ":" dummy ",
" agent_name ":" MACİT SILVER AND KUYUM.BİLİŞ I TEKN.L ",
" adress1 ":" ESENTEPE MAH . FSM BOULEVARD ",
" adress2 ":" SPRING SITE 96/1B ",
" the county_co ":" 33 ",
" county_n ": the" dummy ",
" the city_co ":" ",
" city_name ":" dummy ",
" zip_code ":" ",
" email ": null,
" phone ":" dummy ",
" tax_office ":" İKİTELLİ ",
" TAX_ID ":" dummy ",
" sector_id ":" 0001 ",
" referans_no ":" 39720 " ,
"SEGMENT_ID": "TestTM",
"segment_text": "Informatics",
"is_agent_blocked": false,
"is_agent_deleted": false,
"is_activ": false,
"is_company": false,
"object_name": "login",
" code ": 0,
" message ":" successful Transaction "
}

Request Parameters
Parameter Name Condition Type summary information
user_name Required string Paynet user name
password Required string Your password Paynet
agent_id Required string Paynet dealer code
pushtoken_id Required string Device ID
company_code Optional string The parent company code can be sent as an option
os_type Optional string The operating system of the device
device_type Optional string Device Model
Response Parameters
Parameter Name Type summary information
session_key string Paynet service API key value that you can use in
expired_date string expiration date value of sessionkey
logo_url string Logo-URL registered in Paynet-system
agent_id string Dealer code
user_name string User name
user_id string User code
user_email string User e-mail address
user_phone string User phone number
company_code string The parent company code
company_desc string The parent company name
agent_name string Dealer name
adress1 string dealer address1
adress2 string dealer Address2
county_code string Dealer provincial code
county_name string Dealer province name
city_code string Dealer county code
city_name string Dealer county name
zip_code string Dealer postcode
phone string dealer phone
tax_office string registered in the tax office Paynet Systems
TAX_ID string tax number registered in the Paynet system
sectorıd string Industry code
referans_no string Referance number
SEGMENT_ID string code segments registered in the Paynet
segment_text string segment name registered in the Paynet system
is_agent_blocked boolean Stand lock status
is_agent_deleted boolean Stand removal status
is_activ boolean Dealer activity status
is_select_customer boolean Indicates The parent company or intermediate dealers
is_company boolean Does the dealer parent company Login?
TransactionAuthorization boolean Payment can Process
ReportAuthorization boolean see the process list
MasterUserAuthorization boolean MASTER users
AllUserReportAuthorization boolean Other users of the Vision process
ReverseTransactionAuthorization string Cancellation/Refund Can
code string code of return results
message string Description of the return result code

Limit (v1/agent/limit_info)

You can use it to view your defined limits in Paynet.

URLs v1/agent/limit_info
Request

{}

Response

{
"Td_defined_limit": "500000.00"
"defined_limit": "100000.00"
"td_used_limit" "0.00"
"used_limit" "10.00"
"td_available_limit": "500,000.00" ,
"available_limit": "99990.00",
"renovation object_name": "get_limit",
"code": 0,
"message": "successful Transaction"
}

Response Parameters
Parameter Name Type summary information
td_defined_limit string Definition 3D limit
defined_limit string Defined limits
td_used_limit string Used 3D limit
used_limit string The limit used
td_available_limit string Available 3D limit
available_limit string available limit




Payment Order (Common Payment)

are services that can be used when you want to charge your customers. Common payment page or by sending a link via email or SMS, you can take the form of payments on the link. Succeed_url after the payment, or you can integrate the system using error_url and confirmation_url parameters.

Creating Payment Order (v1/mailorder/create)

this service allows you to generate payment order to your customers You can use this service with GET method over URL or POST method to send your request parameters in JSON or XML format. You can instantaneously generate a payment order via SMS or Mail or produced URL With this service generated URLs, sent mail or SMS you specify "expire_date" applies to the period.

POST Method

Post method to send payment orders via the authentication mechanism we have given you through basic authentication is provided by the secret key.

URLs v1/mailorder/create
Request {
"Amount": 120,
"expire_date to" 12,
"but name_surn": "Onur Ozdemir",
"email", "onur.ozdemir@arena.com.t is",
"phone": "5358407813",
"send_mail": true,
"send_sms": true
}
Response {
"Url": "https://pts.Paynet.com.tr/s/m?id=22c1ec4b-3c97-41bf-8e07-d352d403b1c0",
"renovation object_name": "mailorder",
"code": 0,
" message ":" successful Processing "
}
Request Parameters
Parameter Name Condition Type summary information
pos_type Optional integer Defines which one is used PAYNET pos or company pos. Default is paynet pos
addcomission_to_amount Optional boolean Defines whether comisson will be added to the amount charged from credit card. Default is false.
agent_id Optional string If Payment will be transferred to the any dealers current account of the company, dealer code is shown in this area. Vendors must be defined in the definition of Paynet systems.
name_surname Required string The name of the person who received the payment was soyaa
user_name Optional string user information that make up the payment order is not mandatory.
amount Required decimal Payment
e-mail Optional string an email address to send the payment order, it is mandatory if send_mail-parameter is true.
send_mail Optional boolean It determines whether the payment order sent by e-mail. Email parameter is mandatory with true. Default false
phone Optional * string number to send the SMS to be reminded by SMS, the payment
send_sms Optional boolean It determines whether the payment order is sent via SMS. True if the parameter is mandatory phone. Default is false.
expire_date Optional double URLs are used to determine the validity of the payment. Time is sent. It sent as 72 to 72 hours the period of validity.
note Optional string description will be displayed to the person to pay at checkout.
agent_note Optional string Once the payment processing is made to appear in reports description information.
reference_no Optional string reference number will be associated with the payment process, invoice number, order number like.
instalment_key Optional string The ID of the related rate. If the person who send the payment order choose bank and installment,The process is executed with sending this ID.
succeed_url Optional string If the action is successful, the end of the URL parameter sent in the transaction number (xact_id) is done by adding the routing parameters. If the check is sent Paynet payment default results page is displayed.
error_url Optional string The operation failed last transaction number of submitted URLs in this parameter (xact_id) is done by adding the routing parameters. If the check is sent Paynet failed to pay the default page will be displayed.
confirmation_url Optional string If the operation is successful, the URLs listed below confirmation_url address here is that in the post-post PARAMETERS our belirtiğim parameters are in JSON format.
send_confirmation_email Optional boolean Default is true, the parent company of the successful payment to the definition in the Paynet e-mail address sends mail.
multi_payment Optional boolean Default is true. This allows you to make payments on multiple cards.
Response Parameters
Parameter Name Type summary information
URLs string URL link to process the charge. End-user completes payment process writing credit card informations using this link.
object_name string Dones object name made APIs
code string code of return results
message string Description of the return result code

Get Method

Authentication for generating payment order over GET method is done with given public key. All parameteres used in POST method are used in this service.

                Example Getti Requesten 
https://pts-api.Paynet.com.tr/v1/mailorder/create?public_key=pbk_pcs_z3abiızq0kjtgfp37mgvqof32muag+dy&name_surname=onur%20ozdemiri&amount=15&email=ornek_mail@arena.com.tr&expire_date=48
Request Parameters
Parameter Name Condition Type summary information
public_key Required string It ensures that the authentication system.
pos_type Optional integer Paynet whether it will be used to determine the postural Company's own posture for me. Paynet works pose as default.
addcomission_to_amount Optional boolean The Commission determines the amount should be added to the amount to be withdrawn from the credit card. Default is true.
agent_id Optional string Payment will be transferred to the company's current dealer of a dealer code is sent to the dealers in this area. Vendors must be defined in the definition of Paynet systems.
name_surname Required string The name of the person who received the payment surname
user_name Optional string user information that make up the payment order is not mandatory.
amount Required decimal Payment
expire_date Optional double URLs are used to determine the validity of the payment. Time is sent. It sent as 72 to 72 hours the period of validity.
note Optional string description will be displayed to the person to pay at checkout.
agent_note Optional string Once the payment processing is made to appear in reports description information.
reference_no Optional string reference number will be associated with the payment process, invoice number, order number like.
succeed_url Optional string The operation is successful if done redirect URLs sent in this parameter. If the check is sent Paynet payment default results page is displayed.
error_url Optional string The operation failed done redirect URLs sent in this parameter. If the check is sent Paynet failed to pay the default page will be displayed.
confirmation_url Optional string If the operation is successful, the URLs listed below confirmation_url address here is that in the post-post PARAMETERS our belirtiğim parameters are in JSON format.
send_confirmation_email Optional boolean Default is true, the parent company of the successful payment to the definition in the Paynet e-mail address sends mail.
multi_payment Optional boolean Default is true. This allows you to make payments on multiple cards.

Post paid for the confirmation URL Parameters Address

If payment order is sent succesfully by end-user, payment information is posted to the adress in confirmation_url-parameter in the v1/mailorder/create service in JSON format If this parameter has a null value post-processing is not performed.

Request Parameters
Parameter Name Type summary information
referance_no string reference number is associated with the payment transaction (Invoice, such as order number)
xact_date datetime The time of the payment.
agent_id string This defines dealer code, If the payment will be transferred to dealers current account.
bank_id string bank account number where the payment
instalment int The number of installments in which the payment
card_type string Card type of payment processed.
card_holder string Name and surname information of the card owner
card_number string The first 6 and last 4 numbers of the card number, the payment
amount decimal The gross amount of the payment made
netamount decimal the net amount of the payment made
comission decimal The amount of commission payments made
comission_tax decimal The tax commission deducted from the payment made
currency string exchange rate of payment processed.
authorization_code string confirmation code returned from the bank
order_id string sales code returned from the bank
is_succeed boolean It specifies that the payment was received successfully

Orders List (v1/mailorder/list)

It is used to take transaction lists processed over payment order from paynet.

URLs v1/mailorder/list
Request

{
"Agent_id": "20008",
"datab": "2015-04-04",
"datbi": "2016-05-05",
"ending_before" 0,
"starting_after": 0
}

Response
   {   
   "Total": 306, 
   "total_count": 10, 
   "total_amount": 2441.00 ", 
   " limit ": 10, 
   " ending_before "0, 
   " starting_after "0, 
   " has_more ": true, 
   " Data ": [   
      {   
         "company_code": "10031", 
         "agent_id": "20008", 
         "xact_id": "no process", 
         "referenceno": "", 
         "email", "hakan.kocaturk@arena.com.t is" 
         "user_name": "", 
         "amount": 200.0000, 
         "currency": "TRY", 
         "installment": 3, 
         "phone": "", 
         "bank_id": "AXSS", 
         "expire_date": "2015-06 -17T01: 52: 00 ", 
         " create_dat to ":" 2015-06-16T13: 53: 18 933 ", 
         " note ": null, 
         " agent_note ":" ", 
         " succeed_url ":" ", 
         " error_url ": null, 
         "confirmation_url": "", 
         "bank_name": "Axess", 
         "status": 2, 
         "sendconfirmation_mail": false, 
         "send_sms": false, 
         "send_mail": false, 
         "multi_payment": false 
      }, 
        ... 
   ] , 
   "but object_name": "mailorderlist", 
   "code": 0, 
   "message": "successful Transaction" 
}
                            
Request Parameters
Parameter Name Type summary information
agent_id String (max 10) [Optional] to filtering by Paynet dealer code.
datab Date [Required] Start Date
datbi Date [Required] Deadline
limit int [Optional] The number of data to be returned. Default returns 10 records.
ending_before int [Optional] Integer values. It Brings records the amount of the number of limit before index defined. 75. With 90 sends records from the records.
starting_after int Integer value. Bring records from the specified index to the number of the previous limit. If sent ending_before 90, 15 sent to the limit. 75. With 90 sends records from the records. [Optional] Integer values. It brings up a number of the next record from the specified index limit. If it starting after sent 15, 15 sent to the limit. 15. With 30 sends records from Records
Response Parameters
Parameter Name Type summary information
company_code String (max 10) The parent company code
agent_id String (max 10) dealer code
expire_date double URLs are used to determine the validity of the payment.
total int The total number of line
xact_id String (max 100) Paynet transaction number
bank_id Char(4) Bank code
bank_name String (max 100) The name of the Bank
reference_no String (max 50) Bank reference code
installment int number Installment
amount decimal The amount charged from credit card
currency Char(3) Currency
phone string phone number to send the SMS to be reminded by SMS, the payment order
send_sms boolean It determines whether the payment order is sent via SMS. True if the parameter is mandatory phone. Default is false.
note string The description displayed to the person to pay at checkout.
agent_note string description information appears in the report when the payment is made.
succeed_url string If the action is successful, the end of the URL parameter sent in the transaction number (xact_id) is done by adding the routing parameters. If the check is sent Paynet payment default results page is displayed.
error_url string The operation failed last transaction number of submitted URLs in this parameter (xact_id) is done by adding the routing parameters. If the check is sent Paynet failed to pay the default page will be displayed.
confirmation_url string If the operation is successful, the URLs listed below confirmation_url address here is that in the post-post PARAMETERS our belirtiğim parameters are in JSON format.
status Char(1) 1: waiting for payment 2: payment is successfull 3: time out
send_confirmation_mail boolean The parent company's payments to defined Paynet sends the e-mail address is successful, the e-mail.
send_mail boolean It determines whether the payment order sent by e-mail. True to the parameters required by an email.
multi_payment decimal This allows you to make payments on multiple cards.
total_count int The total number of rows displayed
total_amount int Total transaction value
limit int Sent limit information
ending_before int The information sent ending_before
starting_after int The information is sent starting_aft
object_name string transaction_list
has_more boolean If true, it means that more of the rows sent to the specified criteria.




Examples

Embedded System Case

Firstly, process of embadding Paynet.js to your form. In this stage, script which will make needed payment processes is genereted. It is expected to place inside of HTML form. Example, “Paymnet yap”-button is shown with text defined in "data-button_label" . Your customers can enter the credit card information to process payment by pressing this button.

MVC Controller (the method of filling sample scripts)

[HttpPost] 
public ActionResult EmbeddedformIndex (demoparamet the parameter) 
{ 
 viewbag.data_key = parameter.data_key; 
 viewbag.data_amount = parameter.data_amount; 
 viewbag.data_descriptio of the = parameter.data_descriptio; 
 viewbag.data_imag parameter.data_imag A = A; 
 viewbag.data_agent = parameter.data_agent ?? ""; 
 Viewbag.data_button_label = parameter.data_button_label; 
 viewbag.data_no_instalment = parameter.data_no_instalment; 
 viewbag.data_add_commission_amount = parameter.data_add_commission_amount; 
 viewbag.data_pos_typ parameter.data_pos_typ A = A; 
                
 return View ( "embeddedform");
 

the script is produced in the following table according to the values of the above and it is placed to inside of html form tag in the page of payment to be processed.

script

                

@using (Html.BeginForm("SaveOrder", "Demo", System.Web.Mvc.FormMethod.Post, new { id = "payment-form", @class = "smart-form", role = "form", style = "min-width: 300px; max-width: 1500px" }))
{
                @Html.AntiForgeryToken()
        <script type="text/javascript"class ="Paynet-button"
                src="https://pts-pj.Paynet.com.tr/public/js/Paynet.min.js"
                data-key="@(new HtmlString(ViewBag.data_key))"
                data-amount="@(new HtmlString(ViewBag.data_amount))"
                data-description="@(new HtmlString(ViewBag.data_description))"
                data-image="@(new HtmlString(ViewBag.data_image))"
                data-agent="@(new HtmlString(ViewBag.data_agent))"
                data-add_commission_amount="@(new HtmlString(ViewBag.data_add_commission_amount))"
                data-no_instalment="@(new HtmlString(ViewBag.data_no_instalment))"
                data-button_label="@(new HtmlString(ViewBag.data_button_label))"
                data-name="@(new HtmlString(ViewBag.data_name))"
                data-tds_required="@(new HtmlString(ViewBag.data_tds_required))"
                data-pos_type="@(new HtmlString(ViewBag.data_pos_type))">
        </script>
        <input type=”hidden” name=”ref_val” value=”12345” />
}
  
                                                                            

Once the payment is complete, we add the script starts with Paynet.js form in session_id, and puts token_id values. We make the credit card payment process to terminate the charge process with these values. The following example is post the form to display the values .Net code charge service payment process is completed by the async post.

MVC Controller (the method of filling sample scripts)

[HttpPost]
 public ActionResult ChargeTransaction (string session_id, string token_id, string ref_val)
 {
         ChargeParameters param = new ChargeParameters();
        
         param.session_id = session_id;
         param.token_id = token_id;
         param.reference_no = ref_val;
         param.transaction_type = TransactionType.Sales;
        
         PaynetClient.PaynetClient.apiKey = "sck_pcs_NMwN0RK90kgWeE/iSyRaTqx0tLCVFd3y";
         var Response = PaynetClient.PaynetClient.ChargeTransaction(param);
         IDictionary requestForm = new Dictionary();
         foreach (string key in Request.Form.AllKeys)
         {
                 String value = Request.Form[key];
                 requestForm.Add(key, value);
         }
         ViewBag.Response = Response;
         ViewBag.RequestForm = requestForm;
        
             return View("Result");
 }

Paynet.js in 2 service is available. These are;

  • Paynet.onPaymentClick :

    Complete payment (Paynetj-button) click event service that allows you to be able to control.

         Paynet.onPaymentClick (function () {   
              if (condition) { 
                return true; // Embedded forms of payment screen appears. 
              } Else { 
                alert ( "Warning.");   
                Return false; // embedded form does not open the payment screen. 
             }   
        });
     
  • Paynet.updateamount : updateamount service is available in Paynet.js. This service code update rate with the amount of information created after a script or an embedded form allows you to give at this stage.

    If you want to change the amount with rate code as an example Paynet.updateamount ( '110.45' 'rate code'); form, if you want to change only the amount of Paynet.updateamount ( '110.45'); We can use the form of service.

         Paynet.onPaymentClick (function () {   
                 if (condition) {   
                     Paynet.updateamount ( '110.45'); 
                } else {   
                   alert ( "Warning.");   
                     Return false;    
               }});
     

Custom Form Example

Developer can design inputs in payment form as s/he desired. Firstly, developer must generate the script which will generate basic elements raleted to payment The value set here include basic input-related payments.

MVC Controller (the method of filling sample scripts)

[HttpPost]
public ActionResult CustomFormIndex(DemoParameter parameter)
{
        ViewBag.data_key =ConfigReader.Read("PaynetIV.Client.PublicKey");
        ViewBag.data_amount = parameter.data_amount;
        ViewBag.data_description = parameter.data_description;
        ViewBag.data_image = parameter.data_image;
        ViewBag.data_agent = parameter.data_agent ?? ""; ViewBag.data_button_label = parameter.data_button_label;
        ViewBag.data_no_instalment = parameter.data_no_instalment;
        ViewBag.data_add_commission_amount=parameter.data_add_commission_amount;
        ViewBag.data_pos_type = parameter.data_pos_type;
        ViewBag.data_tds_required = parameter.data_tds_required; 
         return View("CustomForm");
 }
 

script

the script is produced in the following table according to the values of the above and it is placed to needed area in the page to be processed.


 <script type="text/javascript"
                 class="Paynet-button"
                 src="https://pts-api.Paynet.com.tr/v1/js/Paynet-custom.js"
                 data-form="#checkout-form"
                 data-key="@(new HtmlString(ViewBag.data_key))"
                 data-amount="@(new HtmlString(ViewBag.data_amount))"
                 data-description="@(new HtmlString(ViewBag.data_description))"
                 data-agent="@(new HtmlString(ViewBag.data_agent))"
                 data-add_commission_amount="@(new HtmlString(ViewBag.data_add_commission_amount))"
                 data-no_instalment="@(new HtmlString(ViewBag.data_no_instalment))"
                 data-tds_required="@(new HtmlString(ViewBag.data_tds_required))"
                  data-pos_type="@(new HtmlString(ViewBag.data_pos_type))">
</script>
 

HTML Page


<form action="the process of charge adress" method="post" name="checkout-form" id="checkout-form">
<div >
<input type="text" name="cardHolderName" id="cardHolderName" data-Paynet="holderName" placeholder="Card Holder Name" value="" />
</div>
<div >
<input type="text" name="cardNumber" maxlength="16" id="cardNumber" data-Paynet="number" placeholder="Cart No" value="" />
</div>
<div >
<div >
<select name="expMonth" id="expMonth" data-Paynet="exp-month" >
                <option value="">...</option>
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
                <option value="4">4</option>
                <option value="5">5</option>
                <option value="6">6</option>
                <option value="7">7</option>
                <option value="8">8</option>
                <option value="9">9</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>
</select>
</div>
</div>
<div >
<div >
<select name="expYear" id="expYear" data-Paynet="exp-year" >
                <option value="">...</option>
                <option value="2015">2015</option>
                <option value="2016">2016</option>
                <option value="2017">2017</option>
                <option value="2018">2018</option>
                <option value="2019">2019</option>
</select>
</div>
</div>
<div >
<div >
<input type="password" maxlength="4" name="cvv" id="cvv" data-Paynet="cvv" placeholder="CVV" value="" />
</div>
</div>
<div id="isTds" >
<label>
<input type="checkBinox" name="tds" id="tds" data-Paynet="do3D" checked="checked" />3D Paymnet
</label>
</div>
<div >
</div>
<input type="hidden" name="installmentKey" id="installmentKey" data-Paynet="installmentKey" value="" />
<button type="submit" data-Paynet="submit">Paymnet</button>
</form>
    

HTML page under the tag above will form the elements of the complete charge, you can edit the design format you want. data-paynet elements is required to take needed input datas related to payment. This should set the value of the form elements in the tag.

The data-Paynet elements;

  • number: your credit card number information
  • installmentkey: ID of the selected payment
  • Holder Game: The name of the card holder
  • exp-month: Credit card information is the expiration date of the month
  • exp-year: Credit card information is the expiration date of the year
  • CVV: CVC Credit card information
  • desc: description information about payments
  • phone: the phone information of the person paying
  • email: e-mail information of the person paying
  • do3d: the knowledge of whether the payment 3D

including 10 inputs (input) are elements that holds the information.

Located in the Paynet-custom.js and in the form of payment you can receive callback event on the page;

  • Paynet.events.oncheckBin : The event to take callback from checkBinin service while entering credit card number. For example, card number after the input error message if it does not match with any of a bin numbers we can use to print.

    Use of

     Paynet.events.onCheckBin(function (d) {
                        
     if (d && d.ok) {
    bankID = d.bank.id;
     clearError();
     if (d.bank.id != $('#bank_id').val())
     {
         showError("", "Uyumsuz kart numarası");
                        
     }
     else
     {
     if (d.tdsState == 'required') {
             $('#tds').attr('checked', 'checked');
             $('#tds').attr('disabled', 'disabled');
                         $('#isTds').hide();
             } else if (d.tdsState == 'optional') {
             $('#tds').attr('checked', 'checked');
             $('#tds').removeAttr('disabled', 'disabled');
                         $('#isTds').show();
             }<
                        }
                      
     } else
          {
             clearError();
             $('#isTds').hide();
          } 
     });
    
    Response Parameters
    Parameter Name Type summary information
    bank_id Char(4) The Bank's code Paynet Systems
    bank_logo String (max 60) Bank logo
    bank_name String (max 100) The name of the Bank
    tds_enabl to Boolean 3D processing permit
    instalment_key datetime Date of transaction
    instalment int number Installment
    instalment_amount decimal The amount of payment will be withdrawn from the credit card
    desc String (max 50) Installment description
    bank_id Char(4) The Bank's code Paynet Systems
    bank_logo String (max 60) Bank logo
    bank_name String (max 100) The name of the Bank
    ratio float rate used in payment.
    total_amount decimal The total amount drawn from credit card
    total_net_amount decimal excludes Commission
    comission decimal The commission
    comission_tax decimal Tax Commission
  • Paynet.events.validationError : is the event callback can get the input value is incorrect in form.
  • Paynet.events.onPaymentClick : An event is triggered when clicking on the Pay button.

    Example; use of method which calls to delete error mesages in the page before submitting the form , when click the PAY button.

    Use of

                   Paynet.events.onPaymentClick(function () {
                         clearError();
                         });
    
  • Paynet.events.onauthentication : It is the event that take callback of method of authentication in paynet api service. Example; , if private key which is sent to the API service does not match, displaying error message from the auth service in the page.

    Use of

                Paynet.events.onAuthentication(function (c) {
                      if (!c.ok) {
                         showError(c.code, c.message);
                       }
                      }); 
                
    Response Parameters
    Parameter Name summary information
    type return type
    message Error message
    code HTTP Status Code see. HTTP status code
    result_code See return codes
  • Paynet.events.onTdsRedirect : 3D process is directed to the callback event can get in the bank system. For example 3D directed to a process in the banking system to the console screen "3D redirected for authentication" in the form of logs disposal.

    Use of

                     Paynet.events.onTdsRedirect (function () { 
                         console.log ( 'redirected to 3D validation'); 
                         });                 
                        
  • Paynet.events.onCreateToken :It is the event to take callback in 3D payments while directing to bank system. Example; logging “3D doğrulama için yönlendiriliyorsunuz” to console page in 3D payments while directing to bank system

    Use of

                    Paynet.events.onCreateToken(function (c) {
                         if (!c.ok) {
                         showError(c.code, c.message);
                         } });                
    
    Response Parameters
    Parameter Name summary information
    token_id was the number given to the process by the system
    post_url 3D transactions to be posted in the URL address
    is_tds Indicates that the process is the 3D
    type return type
    message Error message
    code HTTP Status Code see. HTTP status code
    result_code See return codes
  • Paynet.events.onload : It is the event to take callback at the moment of loaded Paynet-custom.js library.

    Use of

                           Paynet.events.onload (function () { 
                             console.log ( 'Paynet loaded library'); 
                             });
                            

There are 3 services in Paynet-custom.js These are;

  • Paynet.services.checkBin of : There is checkBin service in Paynet-custom.js. this service can be used for custom use of card number input with checkBin service. Example; there is 4 number input in the page but it is hold in one input at background. So, if customer uses en event, customer can take callback from onCheckBin event after calling checkBin related to code which customer wrote.

    Examples of Paynet.services.checkBin ( '4444440000000001'); We can use the form of service.

    Response parameters to Click
  • Paynet.services.installments :

    This is a service that allows you to create a service with rate tables on the client side. Service can call the JavaScript library, you can create your own design from RESPONSE also appropriately.

    Paynet.services.installments (function (d) {/> 
     // set rates that you will block 
     });
    
    Response parameters to Click
  • Paynet.services.updateamount :

    Once this service with the amount of information generated in the token create custom payment page that you create is serving the updating facilities.

                            

    Paynet.services.updateamount ($ ( "# amount"). Val ()
    function (d) {
    if (d && d.ok) {alert ( "Amount updated.")}
    })

  • In Paynet.services.updateratioco :

    This service keeps you informed with the creator token After creating the custom payment page that you create is defined with the update service that the opportunity to bring your rate according to the rate code.

                            

    In Paynet.services.updateratioCode($ ("#amount").Val (), $ ("#ratiocode").Val ()
    function (d) {
    if (d && d.ok) {alert ( "Updated amount. ")}
    })

    Response Parameters
    Parameter Name summary information
    session_id Paynet-custom.js attach the form to have the parameters.
    name dealer's name started Transactions
    tds_required 3D process status information
    expire_date Session end time
    type return type
    message Error message
    code HTTP Status Code see. HTTP status code
    result_code See return codes

"Payment" is the next step when the process is done charge of the operation is performed.

MVC Controller

[HttpPost]   
 public ActionResult ChargeTransaction (string session_id, string token_id, string ref_val)
 {
         ChargeParameters param = new ChargeParameters();
         
         param.session_id = session_id;
         param.token_id = token_id;
         param.reference_no = ref_val;
         param.transaction_type = TransactionType.Sales;
        
         PaynetClient.PaynetClient.apiKey = "sck_pcs_NMwN0RK90kgWeE/iSyRaTqx0tLCVFd3y";
         var Response = PaynetClient.PaynetClient.ChargeTransaction(param);
         IDictionary requestForm = new Dictionary();
         foreach (string key in Request.Form.AllKeys)
         {
             String value = Request.Form[key];
             requestForm.Add(key, value);
         }
         ViewBag.Response = Response;
         ViewBag.RequestForm = requestForm;
        
         return View("Result");
 }
     

Charge Transaction Example

The amount to be done about the shooting from credit card transactions initiated by Paynet service charge to form a post-script to be the session_id and is token_id post. And the payment transaction will be implement. post-processing to charge service in the example is written as async.

MVC Controller (post-processing of the service charge)

 private static async TaskChargePostAsync(ChargeParameters param)
 {
 ChargeResponse data = new ChargeResponse();
 Result res = new Result();
 try
 {
//do transactions post to a REST service
 using (var client = new HttpClient())
 {
 client.BaseAddress = new Uri(GenelHelper.GetBaseUrl());
 client.DefaultRequestHeaders.Accept.Clear();
 client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
 client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", "sck_pcs_...);

var response = client.PostAsJsonAsync("v1/transaction/charge", param); if (response.Result.IsSuccessStatusCode) { data = await response.Result.Content.ReadAsAsync(); } return data; } } catch (Exception ex) { Expando type = new Expando(); type["ChargePostAsync"] = "ChargePostAsync Error"; //ERROR LOG } return data; } public static ChargeResponse CheckTransaction(ChargeParameters param) { var task = ChargePostAsync(param); task.Wait(); return task.Result; }

Response Parameters (response parameters used in the service charge)

public class ChargeResponse : Result
 {
 public string xact_id { get; set; }
 public DateTime xact_date { get; set; }
 public TransactionType transaction_type { get; set; }
 public int pos_type { get; set; }
 public bool is_tds { get; set; }
 public string agent_id { get; set; }
 public string user_id { get; set; }
 public string email { get; set; }
 public string phone { get; set; }
 public string bank_id { get; set; }
 public int instalment { get; set; }
                
 public string card_no_masked { get; set; }
 public string card_holder { get; set; }
                
 public decimal amount { get; set; }
 public decimal net_amount { get; set; }
 public decimal comission { get; set; }
 public decimal comission_tax { get; set; }
                
 public string currency { get; set; }
 public string authorization_code { get; set; }
 public string reference_code { get; set; }
 public string order_id { get; set; }
                
 public bool is_succeed { get; set; }
 public string paynet_error_id { get; set; }
 public string paynet_error_message { get; set; }
 public string bank_error_id { get; set; }
 public string bank_error_message { get; set; }
 public string bank_error_short_desc { get; set; }
 public string bank_error_long_desc { get; set; }
                
 } 
 public class Result
 {
 public string object_name { get; set; }
 public ResultCode code { get; set; }
 public string message { get; set; }
 }
           




Test Cards

You can use this test cards in the demo on our site while integrating your Paynet API.

Credit card Tour card Number Maturity CVV 3D Password
Axess Visa 4355084355084358 12/18 000 a
MasterCard 5571135571135575 12/18 000 a
CardFinans Visa 5456165456165454 12/18 000 a
MasterCard 4022774022774026 12/18 000 a
WorldCard Visa 4506347011448053 02/20 000 3D Kapalı
MasterCard 5400637003737150 02/20 000 3D Kapalı
Maximum Visa 4508034508034509 12/18 000 a
MasterCard 5406675406675403 12/18 000 a
Bonus Visa 4282209004348015 09/18 123 3D Kapalı
Bonus Amex 375622005485014 10/20 123 3D Kapalı
DenizBank Visa 4090700102323514 11/21 834 123
Paraf Visa 4531444531442283 12/20 001 a
MasterCard 5818775818772285 12/18 001 a



Example Projects

.Net Project download
Example C # project: DOWNLOAD



Download PHP projects
Sample PHP project: DOWNLOAD