feat: support expiring cashier sessions
This commit is contained in:
@@ -53,12 +53,14 @@ func main() {
|
||||
ClientType: "pc",
|
||||
NotifyURL: "https://merchant.example.com/pay/notify",
|
||||
ReturnURL: "https://merchant.example.com/pay/return",
|
||||
ExpireTime: "15", // 可选,分钟数或绝对时间;默认 10 分钟
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
fmt.Println(order.CashierURL)
|
||||
fmt.Println(order.ExpireTime, order.PageToken)
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user