Versions in this module Expand all Collapse all v1 v1.0.0 Jul 15, 2026 Changes in this version + const ErrorTypeAPI + const ErrorTypeCircuitOpen + const ErrorTypeDecode + const ErrorTypeNetwork + const ErrorTypeTimeout + const ErrorTypeValidation + var ErrCircuitOpen = shared.ErrCircuitOpen + type AccountsClient struct + Balances *accounts.BalancesService + Statements *accounts.StatementsService + type CircuitBreakerConfig = transport.CircuitBreakerConfig + type Client struct + APM *apm.Service + Accounts AccountsClient + Marketplace MarketplaceClient + Partner PartnerClient + Payments *payments.Service + Payouts PayoutsClient + Queries *queries.PaymentsService + Risk RiskClient + Tokenization TokenizationClient + Transfers TransfersClient + Webhooks WebhooksClient + func NewClient(cfg *Config) *Client + func (c *Client) Config() *Config + type Config struct + func NewConfig(opts ...Option) *Config + func (c *Config) AccessBaseURL() string + func (c *Config) Environment() Environment + func (c *Config) WPGBaseURL() string + type Environment int + const Live + const Try + func (e Environment) String() string + type Error = shared.Error + type ErrorType = shared.ErrorType + type MarketplaceClient struct + Parties *marketplace.PartiesService + SplitPayments *marketplace.SplitPaymentsService + type Option func(*Config) + func WithAPIVersion(version string) Option + func WithAccessBaseURL(url string) Option + func WithCircuitBreaker(cfg CircuitBreakerConfig) Option + func WithCredentials(username, password string) Option + func WithEnvironment(env Environment) Option + func WithHTTPClient(hc *http.Client) Option + func WithRetryCount(n int) Option + func WithTLSConfig(tc *tls.Config) Option + func WithTelemetry(hook shared.TelemetryHook) Option + func WithTimeout(d time.Duration) Option + func WithWPGBaseURL(url string) Option + func WithWPGCredentials(merchantCode, username, password string) Option + type PartnerClient struct + Notifications *partner.NotificationsService + TerminalLease *partner.TerminalLeaseService + type PayoutsClient struct + Account *payouts.AccountService + Card *payouts.CardService + type RiskClient struct + CardBIN *risk.CardBINService + Exemptions *risk.ExemptionsService + FraudSight *risk.FraudSightService + ThreeDS *risk.ThreeDSService + type TokenizationClient struct + CustomerEvents *tokenization.CustomerEventsService + ForwardAPI *tokenization.ForwardAPIService + SecurityTokens *tokenization.SecurityTokenService + TokenImport *tokenization.TokenImportService + Tokens *tokenization.TokensService + type TransfersClient struct + Account *transfers.AccountService + FX *transfers.FXService + Money *transfers.MoneyService + type WebhooksClient struct + func (WebhooksClient) Handle(body []byte, handler webhooks.Handler) error + func (WebhooksClient) Parse(body []byte) (*webhooks.Event, error)