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 * Object - ST_WS_Guvenlik Object
Doviz_Kodu * Integer - Doviz_Kodu - Credit
1001 TurkPara - USD
1002 TurkPara - EUR
GUID * String 36 Key Belonging to Member Workplace
KK_Sahibi * String 100 Credit Card holder
KK_No * String 16 Credit Card number
KK_SK_Ay * String 2 2 digit Expiration month
KK_SK_Yil * String 4 4 digit Expiration Year
KK_CVC * String 3 CVC Code
KK_Sahibi_GSM * String 10 Credit Card holder GSM No, Without zero at the beginning (5xxxxxxxxx)
Hata_URL * String 256 If the payment fails, page address to be redirected to
Basarili_URL * String 256 If the payment is successful, page address to be redirected to
Siparis_ID * String 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 String 250 Order Description
Islem_Tutar * String - Order Amount, (only a comma with Kuruş format 1000,50)
Toplam_Tutar * String - Commission Including Order Amount, (only a comma with Kuruş format 1000,50)
Islem_Hash * String - Transaction Hash value
Islem_Guvenlik_Tip * String - NS (NonSecure) veya 3D gönderilir.
Islem_ID String - Single ID except the Sipariş Id that belongs to transaction, optional.
IPAdr * String 50 IP Address
Ref_URL String 256 Url of page where payment is made
Data1 String 250 Extra Space 1
Data2 String 250 Extra Space 2
Data3 String 250 Extra Space 3
Data4 String 250 Extra Space 4
Data5 String 250 Extra Space 5

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

Result Parameters:

Paramater Type Length Description
Islem_ID Long - 3D URL Process ID information, it is returned with “Dekont_ID” value for nonsecure operations
UCD_URL String - For Nonsecure transactions URL information processes "NONSECURE" in this field.
Sonuc Integer - The transaction result
Sonuc_Str String - Transaction result explanation
Banka_Sonuc_Kod Integer - The code returned by bank