util

package
v0.0.0-...-94a151a Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 3 Imported by: 30

Documentation

Index

Constants

View Source
const (
	PendingConfirmation = "PendingConfirmation"
	PendingValidation   = "PendingValidation"
	InvalidRequest      = "InvalidRequest"
	NotSupported        = "NotSupported"
	SUCCESS             = "Success"
	FAILED              = "Failed"
	QUEUED              = "Queued"
	SENT                = "Sent"
)

Constants for responses

Variables

This section is empty.

Functions

func FromCurrencied

func FromCurrencied(currenciedAmount string) (string, float64, error)

FromCurrencied converts a currencied amount to component currency sign and amount

func GetAPIHost

func GetAPIHost(env string) string

GetAPIHost returns either sandbox or prod

func GetAirtimeURL

func GetAirtimeURL(env string) string

GetAirtimeURL returns the airtime endpoint

func GetCreateCheckoutTokenURL

func GetCreateCheckoutTokenURL(env string) string

func GetCreateSubURL

func GetCreateSubURL(env string) string

GetCreateSubURL returns the Subscription create endpoint

func GetGenerateAuthTokenURL

func GetGenerateAuthTokenURL(env string) string

func GetMobilePaymentB2BURL

func GetMobilePaymentB2BURL(env string) string

GetMobilePaymentB2BURL returns the Mobile Payments B2B endpoint

func GetMobilePaymentB2CURL

func GetMobilePaymentB2CURL(env string) string

GetMobilePaymentB2CURL returns the Mobile Payment B2C endpoint

func GetMobilePaymentCheckoutURL

func GetMobilePaymentCheckoutURL(env string) string

GetMobilePaymentCheckoutURL returns the mobile payments checkout endpoint

func GetPaymentHost

func GetPaymentHost(env string) string

GetPaymentHost returns the payments domain

func GetSmsURL

func GetSmsURL(env string) string

GetSmsURL is the sms endpoint

func GetSubURL

func GetSubURL(env string) string

GetSubURL returns the Subscription endpoint

func GetUserDataURL

func GetUserDataURL(env string) string

GetUserDataURL returns the user data endpoint

func GetVoiceHost

func GetVoiceHost(env string) string

GetVoiceHost returns the voice host domain

func GetVoiceURL

func GetVoiceURL(env string) string

GetVoiceURL returns the voice endpoint

Types

This section is empty.

Jump to

Keyboard shortcuts

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