init: 1.0.0

This commit is contained in:
Chang lue Tsen
2025-04-25 12:08:29 +09:00
commit 8addcc584b
1031 changed files with 76472 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
package alipay
import (
"context"
"testing"
)
func TestClientPreCreateTrade(t *testing.T) {
t.Skipf("Skip TestClientPreCreateTrade")
cfg := Config{
InvoiceName: "XrayR",
NotifyURL: "https://example.com/alipay/notify",
Sandbox: true,
}
c := NewClient(cfg)
order := Order{
OrderNo: "20210701000001",
Amount: 100,
}
qr, err := c.PreCreateTrade(context.Background(), order)
if err != nil {
t.Fatal(err)
}
t.Log(qr)
}