feat: support expiring cashier sessions

This commit is contained in:
shiran
2026-07-21 17:53:25 +08:00
parent 0fd4b6cf16
commit 653f380051
4 changed files with 23 additions and 6 deletions
+2
View File
@@ -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)
}
```