Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
basic_payment
command
Command basic_payment demonstrates the minimal card-payment flow: create a Payment Handle, then a Payment.
|
Command basic_payment demonstrates the minimal card-payment flow: create a Payment Handle, then a Payment. |
|
subscription
command
Command subscription demonstrates the recurring billing flow: create a Plan, tokenize a customer's card as a multi-use token via the Customer Vault, and subscribe them to the Plan.
|
Command subscription demonstrates the recurring billing flow: create a Plan, tokenize a customer's card as a multi-use token via the Customer Vault, and subscribe them to the Plan. |
|
webhook_server
command
Command webhook_server demonstrates verifying and routing Paysafe webhook notifications using net/http.
|
Command webhook_server demonstrates verifying and routing Paysafe webhook notifications using net/http. |
|
internal
|
|
|
application/application
Package application implements the application service for the merchant onboarding (Applications API) bounded context.
|
Package application implements the application service for the merchant onboarding (Applications API) bounded context. |
|
application/customer
Package customer implements the application service for the Customer Vault bounded context: persisted customer profiles, saved payment handles (multi-use tokens), and single-use customer tokens.
|
Package customer implements the application service for the Customer Vault bounded context: persisted customer profiles, saved payment handles (multi-use tokens), and single-use customer tokens. |
|
application/payment
Package payment implements the application services (use-case orchestration) for the Payments bounded context: payment handles, payments, settlements, refunds, payouts, and verifications.
|
Package payment implements the application services (use-case orchestration) for the Payments bounded context: payment handles, payments, settlements, refunds, payouts, and verifications. |
|
application/scheduler
Package scheduler implements the application services for the Payment Scheduler bounded context: recurring billing Plans and Subscriptions.
|
Package scheduler implements the application services for the Payment Scheduler bounded context: recurring billing Plans and Subscriptions. |
|
application/vas
Package vas implements the application services for the Value Added Services bounded context: FX Rates, Customer Identity (KYC), Bank Account Validation, and the Interac Verification Service.
|
Package vas implements the application services for the Value Added Services bounded context: FX Rates, Customer Identity (KYC), Bank Account Validation, and the Interac Verification Service. |
|
application/webhook
Package webhook implements the application service for verifying and parsing Paysafe webhook notifications.
|
Package webhook implements the application service for verifying and parsing Paysafe webhook notifications. |
|
domain/application
Package application contains the merchant onboarding bounded context (Applications API), used by platform partners to programmatically onboard sub-merchants in Canada and the United States.
|
Package application contains the merchant onboarding bounded context (Applications API), used by platform partners to programmatically onboard sub-merchants in Canada and the United States. |
|
domain/customer
Package customer contains the Customer Vault bounded context: persisted customer profiles, saved payment handles (multi-use tokens), and single-use customer tokens (SUCT).
|
Package customer contains the Customer Vault bounded context: persisted customer profiles, saved payment handles (multi-use tokens), and single-use customer tokens (SUCT). |
|
domain/payment
Package payment contains the Payments bounded context: payment handles, payments, settlements, refunds, payouts, and verifications.
|
Package payment contains the Payments bounded context: payment handles, payments, settlements, refunds, payouts, and verifications. |
|
domain/scheduler
Package scheduler contains the Payment Scheduler bounded context: recurring billing Plans and customer Subscriptions.
|
Package scheduler contains the Payment Scheduler bounded context: recurring billing Plans and customer Subscriptions. |
|
domain/shared
Package shared contains domain primitives shared across all Paysafe bounded contexts: the structured Error type, FieldError, and the small set of helpers used to classify HTTP/API failures.
|
Package shared contains domain primitives shared across all Paysafe bounded contexts: the structured Error type, FieldError, and the small set of helpers used to classify HTTP/API failures. |
|
domain/vas
Package vas contains the Value Added Services bounded context: FX Rates, Customer Identity (KYC), Bank Account Validation, and the Interac Verification Service (VerifiedMe).
|
Package vas contains the Value Added Services bounded context: FX Rates, Customer Identity (KYC), Bank Account Validation, and the Interac Verification Service (VerifiedMe). |
|
domain/webhook
Package webhook contains the webhook verification and event-parsing bounded context: HMAC-SHA256 signature verification and typed event classification for Paysafe's asynchronous notifications.
|
Package webhook contains the webhook verification and event-parsing bounded context: HMAC-SHA256 signature verification and typed event classification for Paysafe's asynchronous notifications. |
|
infrastructure/config
Package config holds the Paysafe client configuration: credentials, environment selection, HTTP tuning knobs, and the base-URL builders used by every bounded context's repository implementation.
|
Package config holds the Paysafe client configuration: credentials, environment selection, HTTP tuning knobs, and the base-URL builders used by every bounded context's repository implementation. |
|
infrastructure/httpclient
Package httpclient implements the internal transport shared by every Paysafe bounded context's repository: Basic Auth, JSON encoding, exponential-backoff retry on transient failures, token-bucket rate limiting, and telemetry span emission around each call.
|
Package httpclient implements the internal transport shared by every Paysafe bounded context's repository: Basic Auth, JSON encoding, exponential-backoff retry on transient failures, token-bucket rate limiting, and telemetry span emission around each call. |
|
infrastructure/ratelimiter
Package ratelimiter provides a per-credential token-bucket rate limiter guarding outbound Paysafe API calls, mirroring the ExRated-backed limiter in the reference Elixir implementation.
|
Package ratelimiter provides a per-credential token-bucket rate limiter guarding outbound Paysafe API calls, mirroring the ExRated-backed limiter in the reference Elixir implementation. |
|
infrastructure/telemetry
Package telemetry provides lightweight, dependency-free instrumentation hooks around every outbound Paysafe API call.
|
Package telemetry provides lightweight, dependency-free instrumentation hooks around every outbound Paysafe API call. |
|
pkg
|
|
|
paysafe
Package paysafe is the public, production-grade Go client for the Paysafe API.
|
Package paysafe is the public, production-grade Go client for the Paysafe API. |
Click to show internal directories.
Click to hide internal directories.