Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
Add token URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
chweez committed Mar 28, 2018
1 parent 16627b4 commit d4443fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions util/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ func GetMobilePaymentB2CURL(env string) string {
return GetPaymentHost(env) + "/mobile/b2c/request"
}

func GetCreateCheckoutTokenURL(env string) string {
return GetAPIHost(env) + "/checkout/token/create"
}

func GetGenerateAuthTokenURL(env string) string {
return GetAPIHost(env) + "/auth-token/generate"
}

func getHost(env, service string) string {
if env != "sandbox" {
return fmt.Sprintf("https://%s.africastalking.com", service)
Expand Down

0 comments on commit d4443fc

Please sign in to comment.