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 }
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 }
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 }