https://github.com/cnbattle/allinpay
通联支付 云商通/通商云 golang sdk
https://github.com/cnbattle/allinpay
Last synced: 3 months ago
JSON representation
通联支付 云商通/通商云 golang sdk
- Host: GitHub
- URL: https://github.com/cnbattle/allinpay
- Owner: cnbattle
- License: mit
- Created: 2021-08-09T09:10:28.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-08T22:28:05.000Z (over 1 year ago)
- Last Synced: 2025-01-22T05:42:36.289Z (4 months ago)
- Language: Go
- Homepage: https://cloud.allinpay.com/ts-cloud-dev-web/#/apiCenter/index?params=y&key=413
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# allinpay
## Demo
```go
package mainimport (
"log"
"github.com/cnbattle/allinpay"
)func main() {
client := allinpay.NewAllInPayClient(allinpay.Config{
AppID: "xxx",
AppSecretKey: "xxx",
AppAccountID: "40000",
PfxPath: "./1581648210684.pfx",
TLCert: "./TLCert-test.cer",
PfxPwd: "123456",
IsProd: false,
Debug: true,
})
params := map[string]interface{}{}
params["bizUserId"] = "golang-test-1"
params["memberType"] = "3"
params["source"] = "1"
data, err := client.Request("allinpay.yunst.memberService.createMember", params)
log.Println(data)
log.Println(err)
}```