-
Notifications
You must be signed in to change notification settings - Fork 489
微信支付现金红包
borball edited this page Dec 29, 2016
·
2 revisions
RedPackRequest redPackRequest = new RedPackRequest();
redPackRequest.setActivityName("土豪发红包");
redPackRequest.setAmount(100);
redPackRequest.setBillNumber("1292063901201605150012300014");
redPackRequest.setNumber(1);
redPackRequest.setOpenId("oELhlt7Q-lRmLbRsPsaKeVX6pqjg");
redPackRequest.setRemark("测试发红包");
redPackRequest.setWishing("恭喜发财");
redPackRequest.setClientIp("127.0.0.1");
redPackRequest.setSendName("创河软件");
RedPackResponse redPackResponse = RedPacks.defaultRedPacks().sendSingle(redPackRequest);
//或者
RedPackResponse redPackResponse = RedPacks.with(paySetting).sendSingle(redPackRequest);
RedPackRequest redPackRequest = new RedPackRequest();
redPackRequest.setAppId("wx28a41929a2d6a297");
redPackRequest.setActivityName("欢迎光临创河软件");
redPackRequest.setAmount(600);
redPackRequest.setBillNumber("1292063901201512030010000022");
redPackRequest.setNumber(5);
redPackRequest.setOpenId("obJjTwAptnfB5pBDpDuKCRA2oVDQ");
redPackRequest.setRemark("测试裂变红包");
redPackRequest.setWishing("欢迎光临");
redPackRequest.setSendName("创河软件");
RedPackResponse redPackResponse = RedPacks.defaultRedPacks().sendGroup(redPackRequest);
//或者
RedPackResponse redPackResponse = RedPacks.with(paySetting).sendGroup(redPackRequest);
RedPackResult redPackResult = RedPacks.defaultRedPacks().query("1292063901201512030000000001");
//或者
RedPackResult redPackResult = RedPacks.with(paySetting).query("1292063901201512030000000001");