Documentation ¶
Index ¶
- func MakePostRequest(URL string, data map[string]interface{}) ([]byte, error)
- type Rave
- func (r Rave) CalculateIntegrityCheckSum(data map[string]interface{}) string
- func (r Rave) Capture(data map[string]interface{}) ([]byte, error)
- func (r Rave) ChargeAccount(data map[string]interface{}) ([]byte, error)
- func (r Rave) ChargeCard(chargeData map[string]interface{}) ([]byte, error)
- func (r Rave) Encrypt3Des(payload string) string
- func (r Rave) GetFees(data map[string]interface{}) ([]byte, error)
- func (r Rave) GetPublicKey() string
- func (r Rave) GetSecretKey() string
- func (r Rave) ListBanks() ([]byte, error)
- func (r Rave) PreauthorizeCard(chargeData map[string]interface{}) ([]byte, error)
- func (r Rave) RefundOrVoidPreauth(data map[string]interface{}) ([]byte, error)
- func (r Rave) RefundTransaction(data map[string]interface{}) ([]byte, error)
- func (r Rave) ValidateAccountCharge(data map[string]interface{}) ([]byte, error)
- func (r Rave) ValidateCharge(data map[string]interface{}) ([]byte, error)
- func (r Rave) VerifyTransaction(data map[string]interface{}) ([]byte, error)
- func (r Rave) XrequeryTransactionVerification(data map[string]interface{}) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Rave ¶
type Rave struct { Live bool // contains filtered or unexported fields }
Rave : Base Rave type
func (Rave) CalculateIntegrityCheckSum ¶
CalculateIntegrityCheckSum : Calculates the integrity checksum of the data required by the browser
func (Rave) ChargeAccount ¶
ChargeAccount : Charge a Local (Nigerian) or South African Bank Account
func (Rave) ChargeCard ¶
ChargeCard : Sends a Card request and determine the validation flow to be used
func (Rave) Encrypt3Des ¶
Encrypt3Des : Encrypts the data using 3Des encryption Go doesn't include ECB encryption in the standard library for security reasons reference: https://gist.github.com/cuixin/10612934
func (Rave) PreauthorizeCard ¶
PreauthorizeCard : This is just a wrapper arond the ChargeCard method that automatically sets "charge_type" to "preauth"
func (Rave) RefundOrVoidPreauth ¶
RefundOrVoidPreauth : Refund or void a captured amount
func (Rave) RefundTransaction ¶
RefundTransaction : Refund direct charges
func (Rave) ValidateAccountCharge ¶
ValidateAccountCharge : Validate an account charge using OTP
func (Rave) ValidateCharge ¶
ValidateCharge : Validate a card charge using OTP
func (Rave) VerifyTransaction ¶
VerifyTransaction : Verify a transaction using "flw_ref" or "tx_ref"