Example #1
0
func MakeWHMCS(ip string, secret string) *WHMCS {
	this := new(WHMCS)
	this.ip = ip
	this.secret = secret
	lobster.RegisterHttpHandler("/whmcs_connector", this.handleConnector, true)
	lobster.RegisterHttpHandler("/whmcs_token", lobster.SessionWrap(this.handleToken), false)
	return this
}
Example #2
0
func MakePaypalPayment(business string, returnUrl string) *PaypalPayment {
	this := new(PaypalPayment)
	this.business = business
	this.returnUrl = returnUrl
	lobster.RegisterHttpHandler(PAYPAL_CALLBACK, this.Callback, true)
	return this
}
Example #3
0
func MakeCoinbasePayment(callbackSecret string, apiKey string, apiSecret string) *CoinbasePayment {
	this := new(CoinbasePayment)
	this.callbackSecret = callbackSecret
	this.apiKey = apiKey
	this.apiSecret = apiSecret
	lobster.RegisterHttpHandler("/coinbase_callback_"+this.callbackSecret, this.callback, true)
	return this
}