EasyPay
EasyPay copied to clipboard
How can I use my order number?
As usual, I get an order number from server and put it to payment client and send a payment request. The question is that how I can use this order number through your "EasyPay"?
很抱歉,这个项目并不是一个纯library,并不能开箱即用,但它却可以帮助开发者减少工作量。你需要定制化修改io.github.xiong_it.easypay.pay.paystrategy
包下的ALiPayStrategy
和WeChatPayStrategy
支付策略,在策略中使用你得到的预支订单号(假设你说的order nubmer是预支付订单信息)。但是当你需要把订单号返回给客户端时,你需要修改定制io.github.xiong_it.easypay.callback.OnPayResultListener
。希望可以解答你的疑问,如果还有疑问,可以直接用中文答复。:)