bank

package
v0.0.0-...-b1f49b0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BankListDataBody

type BankListDataBody struct {
	Code                 string `json:"code"`
	Name                 string `json:"name"`
	Type                 string `json:"type"`
	Icon                 string `json:"icon"`
	Color                string `json:"color"`
	IsSupportBankAccount bool   `json:"isSupportBankAccount"`
}

type BankListResponse

type BankListResponse struct {
	Code    string             `json:"code"`
	Message string             `json:"message"`
	Data    []BankListDataBody `json:"data"`
}

func BankList

func BankList(baseUrl, merchantId, publicKey string) (*BankListResponse, int, error)

type CheckOutDataBody

type CheckOutDataBody struct {
	Reference  string `json:"reference"`
	OrderNo    string `json:"orderNo"`
	CashierUrl string `json:"cashierUrl"`
	Amount     int    `json:"amount"`
	Currency   string `json:"currency"`
	Status     string `json:"status"`
}

type CheckOutResponse

type CheckOutResponse struct {
	Code    string           `json:"code"`
	Message string           `json:"message"`
	Data    CheckOutDataBody `json:"data"`
}

func InitializePaymentGateway

func InitializePaymentGateway(baseUrl, merchantId, publicKey, reference, mchShortName, productName, productDesc, userPhone, userRequestIp, amount, callbackUrl, returnUrl, expireAt string) (*CheckOutResponse, int, error)

type Country

type Country struct {
	CountryCode string `json:"countryCode"`
}

for the bank list in a country e.g Ng = banks in nigeria

type ReceiverBody

type ReceiverBody struct {
	BankAccountNumber string `json:"bankAccountNumber"`
	BankCode          string `json:"bankCode"`
	Name              string `json:"name"`
}

type TransferFund

type TransferFund struct {
	Amount    string       `json:"amount"`
	Country   string       `json:"country"`
	Currency  string       `json:"currency"`
	Reason    string       `json:"reason"`
	Receiver  ReceiverBody `json:"receiver"`
	Reference string       `json:"reference"`
}

bank transfer

type TransferFundResponse

type TransferFundResponse struct {
	Reference         string `json:"reference"`
	OrderNo           string `json:"orderNo"`
	Amount            string `json:"amount"`
	Currency          string `json:"currency"`
	Fee               string `json:"fee"`
	Status            string `json:"status"`
	FailureReason     string `json:"failureReason"`
	BankCode          string `json:"bankCode"`
	BankAccountNumber string `json:"bankAccountNumber"`
}

func FundDisburstMent

func FundDisburstMent(baseUrl, merchantId, signature, reference, amount, name, bankCode, bankAccountNumber, reason string) (*TransferFundResponse, int, error)

type UiPaymentGateway

type UiPaymentGateway struct {
	Reference     string   `json:"reference"`
	MchShortName  string   `json:"mchShortName"`
	ProductName   string   `json:"productName"`
	ProductDesc   string   `json:"productDesc"`
	UserPhone     string   `json:"userPhone"`
	UserRequestIp string   `json:"userRequestIp"`
	Amount        string   `json:"amount"`
	Currency      string   `json:"currency"`
	PayTypes      []string `json:"payTypes"`
	PayMethods    []string `json:"payMethods"`
	CallbackUrl   string   `json:"callbackUrl"`
	ReturnUrl     string   `json:"returnUrl"`
	ExpireAt      string   `json:"expireAt"`
}

Jump to

Keyboard shortcuts

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