package
Version:
v0.0.0-...-24e094a
Opens a new window with list of versions in this module.
Published: Dec 6, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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 struct {
Key string
}
curl https://api.stripe.com/v1/charges \
-u sk_test_4eC39HqLyjWDarjtT1zdp7dc: \
-d amount=2000 \
-d currency=usd \
-d source=tok_mastercard \
-d description="Charge for jenny.rosen@example.com"
Source Files
¶
Click to show internal directories.
Click to hide internal directories.