Registry / http-client / wechatpay-apiv3-wechatpay-go

wechatpay-apiv3-wechatpay-go

JSON →
library0.2.21gogounverified

Go SDK for WeChat Pay API v3, providing payment integration and transaction management.

go get github.com/wechatpay-apiv3/wechatpay-go
INSTALL
IMPORT
SIG · WECHATPAY-APIV3-WE
W
wechatpay-apiv3-wechatpay-go
http-clientgov0.2.21
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

wechatpay
github.com/wechatpay-apiv3/wechatpay-go

Initializes a WeChat Pay client and makes a GET request.

package main import ( "context" "fmt" "github.com/wechatpay-apiv3/wechatpay-go" ) func main() { client, err := wechatpay.NewClient( wechatpay.WithMerchantCredential("mchid", "serialNo", "privateKey"), ) if err != nil { panic(err) } resp, err := client.Get(context.Background(), "/v3/pay/transactions/id/123") if err != nil { panic(err) } fmt.Println(resp) }
Debug
Known issues
breakingVersion 0.2.x may have breaking changes from earlier versions.
fix
Check the changelog for migration guides when upgrading.
affects: >=0.2.0
Upgrade
Version history
0.2.21latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
55 hits · last 30 days
node
46
Bingbot
1
Resources
wechatpay-apiv3-wechatpay-go — go get wechatpay-apiv3-wechatpay-go · libregistry