18 lines
292 B
Go
18 lines
292 B
Go
|
package payapi
|
||
|
|
||
|
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))
|
||
|
}
|