Skip to content

clients.stripe #

Stripe

see https://docs.stripe.com/payments/checkout/how-checkout-works

heroscript

!!stripeclient.define api_key:...

fn get #

fn get(args play.PlayArgs) !StripeClient[Config]

fn heroplay #

fn heroplay(args play.PLayBookAddArgs) !

fn (StripeClient[Config]) config_interactive #

fn (mut self StripeClient[Config]) config_interactive() !

struct Config #

struct Config {
	play.ConfigBase
pub mut:
	configtype string = 'stripeclient' // needs to be defined	
	api_key    string
}

struct StripeClient #

struct StripeClient[T] {
	base.Base[T]
pub mut:
	connection &httpconnection.HTTPConnection
}