Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Charge ¶
type Charge struct { MerchantCode string `json:"merchantCode"` MerchantRefNum string `json:"merchantRefNum"` CustomerProfileID string `json:"customerProfileId"` Amount string `json:"amount"` Description string `json:"description"` CustomerMobile string `json:"customerMobile"` ChargeItems []ChargeItem `json:"chargeItems"` CurrencyCode string `json:"currencyCode"` CardToken string `json:"cardToken"` CustomerEmail string `json:"customerEmail"` PaymentMethod string `json:"paymentMethod"` PaymentExpiry int `json:"paymentExpiry"` }
Charge Struct
type ChargeItem ¶
type ChargeItem struct { ItemID string `json:"itemId"` Description string `json:"description"` Price string `json:"price"` Quantity int `json:"quantity"` }
ChargeItem Struct
func (ChargeItem) Validate ¶
func (chargeItem ChargeItem) Validate() error
Validate func for ChargeItem struct
type Client ¶
Client Struct
func (Client) ChargeRequest ¶
ChargeRequest could be used to charge the customer with different payment methods.
It also might be used to create a reference number to be paid at Fawry's outlets or it can be used to direct debit the customer card using card token.
func (Client) RefundRequest ¶
RefundRequest can refund the payment again to the customer
Click to show internal directories.
Click to hide internal directories.