Versions in this module Expand all Collapse all v1 v1.1.0 Mar 16, 2021 Changes in this version + var API = "https://api.stripe.com" + var Client = http.Client + var DebugReqBody = false + var DebugRespBody = false + var DebugURL = false + var ErrRetry = errors.New("retried longer than MaxRetry") + var ErrWebhookInvalidHeader = errors.New("invalid Stripe-Signature header") + var ErrWebhookInvalidSignature = errors.New("invalid signature") + var ErrWebhookTooOld = errors.New("webhook too old") + var MaxAge = 300 * time.Second + var MaxRetry = 30 * time.Second + var PublicKey = "" + var SecretKey = "" + var SignSecret string + var StripeVersion = "" + func Request(scan interface{}, method, url string, body string) (*http.Response, error) + type Body map[string]string + func (b Body) Encode() string + type Error struct + Method string + Status string + StatusCode int + StripeError StripeError + URL string + func (e Error) Error() string + type Event struct + Account string + Created int64 + Data struct{ ... } + ID string + Livemode bool + PendingWebhooks int64 + Request struct{ ... } + Type string + func (e *Event) Read(r *http.Request) error + type ID struct + ID string + type StripeError struct + Charge string + Code string + DeclinedCode string + DocURL string + Message string + Param string + Type string v1.0.0 Dec 14, 2019