gosdk/unify/pay_test.go

18 lines
291 B
Go

package unify
import (
"encoding/json"
"fmt"
"testing"
)
func TestNewPay(t *testing.T) {
payApi := NewPay("http://u.batiao8.com", "")
order, err := payApi.GetOrder("ZB_20230826122127_2YAxfg")
if err != nil {
panic(err)
}
res, _ := json.Marshal(order)
fmt.Println(string(res))
}