Documentation ¶
Index ¶
Constants ¶
View Source
const ( NonTDSURI = "/payment/auth" // 3DS olmayan ödeme isteği için URI yolu InguiryURI = "/payment/detail" // Ödeme sorgulama isteği için URI yolu BinControlURI = "/payment/bin/check" // Bin kontrol isteği için URI yolu TDSInitilizeURI = "/payment/3dsecure/initialize" // 3DS ödeme başlatma isteği için URI yolu TDSFinalizeURI = "/payment/3dsecure/auth" // 3DS ödeme isteği için URI yolu InitPWIURI = "/payment/pay-with-iyzico/initialize" // PWI başlatma isteği için URI yolu CheckPWIURI = "/payment/iyzipos/checkoutform/auth/ecom/detail" // PWI ödeme isteği için URI yolu CheckoutFormURI = "/payment/iyzipos/checkoutform/initialize/auth/ecom" // Checkout form ödeme isteği için URI yolu CheckoutFormInquiryURI = "/payment/iyzipos/checkoutform/auth/ecom/detail" // Checkout form ödeme sorgulama isteği için URI yolu SubMerchantURI = "/onboarding/submerchant" // Alt üye işyeri oluşturma isteği için URI yolu SubMerchantInquiryURI = "/onboarding/submerchant/detail" // Alt üye işyeri sorgulama isteği için URI yolu SubMerchantProductURI = "/payment/item" // Alt üye işyeri ürün oluşturma isteği için URI yolu ApproveProductURI = "/payment/iyzipos/item/approve" // Ürün onaylama isteği için URI yolu DisapproveProductURI = "/payment/iyzipos/item/disapprove" // Ürün onay kaldırma isteği için URI yolu )
Variables ¶
View Source
var ( TDSAcceptedCardAssociations = map[string]bool{ "TROY": true, "MASTER_CARD": true, "MASTERCARD": true, "VISA": true, "AMEX": true, } AcceptedCFTypes = map[string]bool{ "iframe": true, "responsive": true, "popup": true, } AcceptedRequestMethods = map[string]bool{ "POST": true, "GET": true, "PUT": true, "DELETE": true, } )
Functions ¶
func Base64Decode ¶
Base64 decode işlemi (string alıp string döndürür)
func DoRequest ¶
func DoRequest(requestData []byte, client *http.Client, method, baseURI, apiKey, secretKey, uriPath string) (response []byte, err error)
İstek oluşturmak için kullanılan fonksiyon
func HandleError ¶
Hataları yönetmek için kullanılan fonksiyon
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.