stripe

package
v0.6.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAPIBaseURL = "https://api.stripe.com"

DefaultAPIBaseURL is the default base URL for API requests

View Source
const DefaultDashboardBaseURL = "https://dashboard.stripe.com"

DefaultDashboardBaseURL is the default base URL for dashboard requests

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// The base URL (protocol + hostname) used for all requests sent by this
	// client.
	BaseURL *url.URL

	// API key used to authenticate requests sent by this client. If left
	// empty, the `Authorization` header will be omitted.
	APIKey string

	// When this is enabled, request and response headers will be printed to
	// stdout.
	Verbose bool
	// contains filtered or unexported fields
}

Client is the API client used to sent requests to Stripe.

func (*Client) PerformRequest

func (c *Client) PerformRequest(method, path string, params string, configure func(*http.Request)) (*http.Response, error)

PerformRequest sends a request to Stripe and returns the response.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL