File generated from our OpenAPI spec
// Source: https://github.com/stripe/stripe-go | License: MIT | Copyright 2014- Stripe, Inc. (https://stripe.com)
// Provided via justclaw.it.com; keep this notice with the code.
//
//
// File generated from our OpenAPI spec
//
//
package stripe
import (
"context"
"net/http"
"github.com/stripe/stripe-go/v87/form"
)
// v1ChargeService is used to invoke /v1/charges APIs.
type v1ChargeService struct {
B Backend
Key string
}
// This method is deprecated and will be removed soon. If your integration uses it, you need to update it to use a different payment flow, such as [the Payment Intents API](https://docs.stripe.com/docs/payments/payment-intents).
func (c v1ChargeService) Create(ctx context.Context, params *ChargeCreateParams) (*Charge, error) {
if params == nil {
params = &Ch
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key