Files
commerce/thirdparty/paymentmethods/types.go
zeekay 1943f1c093 Hanzo Commerce
Multi-tenant commerce and billing: orders, subscriptions, invoices, plans,
usage metering and a credit ledger. One Go binary. MIT OR Apache-2.0.

Claude-Session: https://claude.ai/code/session_01SAtaDFm8VDiWrhYHNNtxMw
2026-09-23 21:52:16 -07:00

43 lines
894 B
Go

package paymentmethods
import "encoding/json"
type Type string
const (
PlaidType Type = "plaid"
)
// Union object for all payment method parameters
type PaymentMethodParams struct {
// Verifier refers to the entity which is verifying the user
// Short lived public token reference
VerifierToken string `json:"-"`
// Reference to the verifier id
VerifierId string `json:"-"`
// Reference to external user (if any)
ExternalUserId string `json:"-"`
// Metadata to save with payment method
Metadata json.RawMessage `json:"metadata,omitempty"`
}
// Returned Pay Token
type PaymentMethodOutput struct {
Inputs PaymentMethodParams
// Long lived payment token
PayToken string `json:"-"`
// Reference to external token
PayTokenId string `json:"-"`
// Reference to external user (if any)
ExternalUserId string `json:"-"`
// Type of payment method
Type Type `json:"type"`
}