Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BankListDataBody ¶
type BankListResponse ¶
type BankListResponse struct {
Code string `json:"code"`
Message string `json:"message"`
Data []BankListDataBody `json:"data"`
}
type CheckOutDataBody ¶
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 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"`
}
Click to show internal directories.
Click to hide internal directories.