Files
zeekay b798da77d1 billing: take USDC top-ups through Circle Gateway
An agent or a person signs one EIP-3009 authorization against its Circle
Gateway balance, made out to the treasury, and is credited the moment
Gateway locks it. No human, no subscription, cards untouched.

  GET  /v1/billing/crypto/gateway      terms + a nonce issued to the caller
  POST /v1/billing/crypto/gateway      the signed payment
  GET  /v1/billing/crypto/gateway/:id  pending, accepted, settled, failed
  GET  /v1/commerce/treasury           superadmin: Gateway position

payment/providers/circle replaces the Payments API v1 provider with a
permissionless Gateway client and the GatewayWalletBatched EIP-712
encoding, proven against eth-account and Circle's testnet verifier.

billing/gateway checks a payment before Gateway sees it (treasury, live
network, whole cents in $1..$1,000, window, low-s signature from `from`,
nonce bound to the caller), settles it through /v1/x402/settle, credits
the host ledger keyed on the remittance, and reconciles by polling
/v1/x402/transfers: Gateway's webhooks report no batched payment.

Armed by CIRCLE_GATEWAY_TREASURY with CIRCLE_ENVIRONMENT; unset is inert.
2026-10-26 20:23:50 -07:00

32 lines
1.5 KiB
Go

// Package providers is a convenience package that imports all payment provider
// packages, ensuring they are available for the processor registry. Import this
// package with a blank identifier in your main application to register all
// providers:
//
// import _ "github.com/hanzoai/commerce/payment/providers"
package providers
import (
// Import all provider packages so their init() functions register
// with the global processor registry if they use init-based registration.
// For providers that require configuration, use their NewProcessor()
// constructors directly.
_ "github.com/hanzoai/commerce/payment/providers/adyen"
_ "github.com/hanzoai/commerce/payment/providers/bitpay"
_ "github.com/hanzoai/commerce/payment/providers/braintree"
_ "github.com/hanzoai/commerce/payment/providers/coinbase_commerce"
_ "github.com/hanzoai/commerce/payment/providers/lemonsqueezy"
_ "github.com/hanzoai/commerce/payment/providers/moonpay"
_ "github.com/hanzoai/commerce/payment/providers/opennode"
_ "github.com/hanzoai/commerce/payment/providers/paypal"
_ "github.com/hanzoai/commerce/payment/providers/recurly"
_ "github.com/hanzoai/commerce/payment/providers/solanapay"
// The one Square processor; its init() seeds the global webhook verifier
// from the deployment environment.
_ "github.com/hanzoai/commerce/payment/providers/square"
_ "github.com/hanzoai/commerce/payment/providers/stripe"
_ "github.com/hanzoai/commerce/thirdparty/mpc"
_ "github.com/hanzoai/commerce/thirdparty/wire"
)