stripe

package
v0.0.0-...-3024301 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Charge

type Charge struct {
	ID          string `json:"id"`
	Amount      int    `json:"amount"`
	Description string `json:"description"`
	Status      string `json:"status"`
}

This is a small subset of the Stripe charge fields

type Client

type Client struct {
	Key string
	// contains filtered or unexported fields
}

func TestClient

func TestClient(t *testing.T) (*Client, *http.ServeMux, func())

func (*Client) BaseURL

func (c *Client) BaseURL() string

func (*Client) Charge

func (c *Client) Charge(amount int, source, desc string) (*Charge, error)

Jump to

Keyboard shortcuts

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