Payment with Foreign Currency

Method Name: TP_Islem_Odeme_WD

This method used to trade in foreign currency.

Transaction Hash Value Calculation:

The SHA2B64 method of this service hash this value and converts it to Base64String as the value you pass to the parameter. As in the following example, combine these parameters using the string concatenation method appropriate to your language and send them to SHA2B64 The result is Islem_Hash value. Create the parameter formats that will generate the Process_Hash by looking at the Parameters to be Sent table. (Such as Islem_Tutar needs to be comma)

Dim Islem_Hash$ = SHA2B64(G.CLIENT_CODE & GUID & Islem_Tutar &  
                  Toplam_Tutar & Siparis_ID & Hata_URL & Basarili_URL)   

Parameters to Send:

Parameter Required Type Length Description
G * NS - ST_WS_Guvenlik Object
Doviz_Kodu * I - Doviz_Kodu - Credit
1001 TurkPara - USD
1002 TurkPara - EUR
GUID * N 36 Key Belonging to Member Workplace
KK_Sahibi * N 100 Credit Card holder
KK_No * N 16 Credit Card number
KK_SK_Ay * N 2 Last 2 digit Expiration month
KK_SK_Yil * N 4 4 digit Expiration Year
KK_CVC * N 3 CVC Code
KK_Sahibi_GSM * N 10 Credit Card holder GSM No, Without zero at the beginning (5xxxxxxxxx)
Hata_URL * N 256 If the payment fails, page address to be redirected to
Basarili_URL * N 256 If the payment is successful, page address to be redirected to
Siparis_ID * N 50 Singular ID for Order-specific. If you have sent before this value the system is new Assign order_ID. As a result of this The order_ID is returned.
Siparis_Aciklama N 250 Order Description
Islem_Tutar * N - Order Amount, (only a comma with Kuruş format 1000,50)
Toplam_Tutar * N - Commission Including Order Amount, (only a comma with Kuruş format 1000,50)
Islem_Hash * N - Transaction Hash value
Islem_Guvenlik_Tip * NS - NS (NonSecure) veya 3D gönderilir.
Islem_ID N - Single ID except the Sipariş Id that belongs to transaction, optional.
IPAdr * N 50 IP Address
Ref_URL N 256 Url of page where payment is made
Data1 N 250 Extra Space 1
Data2 N 250 Extra Space 2
Data3 N 250 Extra Space 3
Data4 N 250 Extra Space 4
Data5 N 250 Extra Space 5

*Non-required fields must be submitted with empty values.

Result Parameters:

Parametre Tip Length Description
Islem_ID L - 3D URL Process ID information, it is returned with “Dekont_ID” value for nonsecure operations
UCD_URL N - For Nonsecure transactions URL information processes "NONSECURE" in this field.
Sonuc N - The transaction result
Sonuc_Str N - Result Explanation, If the Sonuc Parameter is > 0, the operation succeeded, otherwise failed.
Banka_Sonuc_Kod N - The code returned by bank