accountbalance

package
v0.1.1-0...-fb8dfad Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ACC_URL = "https://sandbox.safaricom.co.ke/mpesa/accountbalance/v1/query"

Variables

This section is empty.

Functions

This section is empty.

Types

type Acc_bal_payload

type Acc_bal_payload struct {
	Initiator          string
	SecurityCredential string
	CommandID          string
	PartyA             string
	IdentifierType     string
	Remarks            string
	QueueTimeOutURL    string
	ResultURL          string
}

type Account_balance

type Account_balance struct {
	Auth    *daraja_wrapper.Auth
	Payload *Acc_bal_payload
}

func Init

func Init(key, secret string, prod bool) *Account_balance

func (*Account_balance) GetAcccountBalance

func (a *Account_balance) GetAcccountBalance() (*Daraja_response, error)

type Daraja_response

type Daraja_response map[string]interface{}

Jump to

Keyboard shortcuts

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