payclone
This commit is contained in:
parent
5d481e4ca8
commit
2ff4235310
|
|
@ -30,6 +30,13 @@ func NewPay(address string, token string) *Pay {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (p *Pay) Clone(token string) *Pay {
|
||||||
|
return &Pay{
|
||||||
|
address: p.address,
|
||||||
|
token: token,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (p *Pay) CreateOrder(order *CreateOrderReq) (map[string]interface{}, error) {
|
func (p *Pay) CreateOrder(order *CreateOrderReq) (map[string]interface{}, error) {
|
||||||
if order.PayType == "" {
|
if order.PayType == "" {
|
||||||
errors.New("payType is nil")
|
errors.New("payType is nil")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue