https://github.com/houseme/iboxchain
盒子支付 Golang SDK,好哒收款,慧掌柜
https://github.com/houseme/iboxchain
iboxchain iboxpay pay payment settle
Last synced: over 1 year ago
JSON representation
盒子支付 Golang SDK,好哒收款,慧掌柜
- Host: GitHub
- URL: https://github.com/houseme/iboxchain
- Owner: houseme
- License: apache-2.0
- Created: 2024-02-19T05:11:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-25T10:53:23.000Z (over 1 year ago)
- Last Synced: 2025-02-25T11:37:46.938Z (over 1 year ago)
- Topics: iboxchain, iboxpay, pay, payment, settle
- Language: Go
- Homepage: https://houseme.github.io/iboxchain/
- Size: 67.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# iboxchain
盒子支付 Golang SDK,好哒收款,慧掌柜
详细文档请参考 [盒子支付官方文档](https://open.iboxpay.com/doc)
## 安装
```bash
go get -u github.com/iboxpay/iboxchain
```
## 使用
```go
package main
import (
"fmt"
"github.com/iboxpay/iboxchain"
)
func main() {
// 初始化
iboxchain.Init("your_app_id", "your_app_secret", "your_merchant_id")
// 创建订单
order := iboxchain.Order{
OutTradeNo: "your_out_trade_no",
TotalFee: 100,
Body: "your_order_body",
NotifyUrl: "your_notify_url",
}
resp, err := iboxchain.CreateOrder(order)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(resp)
}
```