How go-pay/gopay works
GoPay is a Go SDK for integrating with multiple payment providers. A consuming application calls a provider SDK, which handles provider-specific requests and returns responses; Apple’s offering also covers payment verification. The README documents the supported providers and versions. Sampled client code shows several integrations using the shared HTTP client, but most API-method internals were not sampled, so provider-level flows are documented at the SDK boundary rather than expanded into speculative domain stages.
Main entry points: client.go HTTP client · wechat WeChat Pay V2 · qq QQ Pay · douyin Douyin Pay
Components 24
China payment SDKs
- WeChat Pay V2
wechat - QQ Pay
qq - Douyin Pay
douyin - CMB Pay
cmbpay - Allinpay
allinpay - Lakala
lakala - Saobei
saobei
Other payment SDKs
- PayPal
paypal - Apple verification
apple
Versioned APIs
- Alipay SDK
alipay - Alipay V3
alipay/v3 - WeChat V3
wechat/v3
Shared transport
- HTTP client
pkg/xhttp/client.go
Other components
- Integrating application
- WeChat Pay
- QQ Pay
- Douyin Pay
- CMB Pay
- Allinpay service
- Lakala service
- Saobei service
- PayPal
- Apple services
- Alipay
Connections 35
- Integrating application → WeChat Pay V2: uses SDK
README.md - Integrating application → QQ Pay: uses SDK
README.md - Integrating application → Douyin Pay: uses SDK
README.md - Integrating application → CMB Pay: uses SDK
README.md - Integrating application → Allinpay: uses SDK
README.md - Integrating application → Lakala: uses SDK
README.md - Integrating application → Saobei: uses SDK
README.md - Integrating application → PayPal: uses SDK
README.md - Integrating application → Apple verification: uses SDK
README.md - Integrating application → Alipay SDK: uses SDK
README.md - Integrating application → Alipay V3: uses SDK
README.md - Integrating application → WeChat V3: uses SDK
README.md - WeChat Pay V2 → WeChat Pay: sends requests
README.md - QQ Pay → QQ Pay: sends requests
README.md - Douyin Pay → Douyin Pay: sends requests
README.md - CMB Pay → CMB Pay: sends requests
README.md - Allinpay → Allinpay service: sends requests
README.md - Lakala → Lakala service: sends requests
README.md - Saobei → Saobei service: sends requests
README.md - PayPal → PayPal: sends requests
README.md - Apple verification → Apple services: verifies with
README.md - Alipay SDK → Alipay: sends requests
README.md - Alipay V3 → Alipay: sends requests
README.md - WeChat V3 → WeChat Pay: sends requests
README.md - WeChat Pay V2 → HTTP client: uses transport
wechat/client.go - QQ Pay → HTTP client: uses transport
qq/client.go - Douyin Pay → HTTP client: uses transport
douyin/client.go - Lakala → HTTP client: uses transport
lakala/client.go - Allinpay → HTTP client: uses transport
allinpay/client.go - Alipay SDK → HTTP client: uses transport
alipay/client_request.go - Alipay V3 → HTTP client: uses transport
alipay/v3/client.go - WeChat V3 → HTTP client: uses transport
wechat/v3/client.go - PayPal → HTTP client: uses transport
- Apple verification → HTTP client: uses transport
apple/client.go - Saobei → HTTP client: uses transport
saobei/client.go