File tree Expand file tree Collapse file tree
weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,15 @@ public class WxPayServiceImplTest {
3535
3636 @ Test
3737 public void testGetPayInfo () throws Exception {
38- Map <String , String > payInfo = this .payService .getPayInfo (WxPayUnifiedOrderRequest .builder ().body ("abc" ).build ());
38+ Map <String , String > payInfo = this .payService .getPayInfo (WxPayUnifiedOrderRequest .builder ()
39+ .body ("我去" )
40+ .totalFee (1 )
41+ .spbillCreateIp ("111111" )
42+ .notifyURL ("111111" )
43+ .tradeType ("JSAPI" )
44+ .outTradeNo ("111111" )
45+ .openid (((XmlWxPayConfig ) this .payService .getConfig ()).getOpenid ())
46+ .build ());
3947 this .logger .info (payInfo .toString ());
4048 }
4149
@@ -226,7 +234,6 @@ public void testReverseOrder() throws Exception {
226234 .build ());
227235 assertNotNull (result );
228236 this .logger .info (result .toString ());
229-
230237 }
231238
232239}
You can’t perform that action at this time.
0 commit comments