utils

package
v0.0.0-...-333a93e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 12 Imported by: 0

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

func Base64Decode(data string) (res string, err error)

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

func HandleError(httpResp []byte) (response errorModel, err error)

Hataları yönetmek için kullanılan fonksiyon

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL