mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-06-09 19:02:19 +08:00
1.二维码支付测试通过
This commit is contained in:
@@ -191,7 +191,7 @@ public class PayController {
|
||||
PayResponse payResponse = service.getPayResponse(payId);
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
|
||||
ImageIO.write(payResponse.getService().genQrPay(new PayOrder("订单title", "摘要", null == price ? new BigDecimal(0.01) : price, UUID.randomUUID().toString().replace("-", ""), PayType.valueOf(payResponse.getStorage().getPayType()).getTransactionType(transactionType))), "JPEG", baos);
|
||||
ImageIO.write(payResponse.getService().genQrPay(new PayOrder("订单title", "摘要", null == price ? new BigDecimal(0.01) : price, System.currentTimeMillis()+"", PayType.valueOf(payResponse.getStorage().getPayType()).getTransactionType(transactionType))), "JPEG", baos);
|
||||
return baos.toByteArray();
|
||||
}
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ public class ApyAccountRepository {
|
||||
|
||||
ApyAccount apyAccount4 = new ApyAccount();
|
||||
apyAccount4.setPayId(4);
|
||||
apyAccount4.setPartner("777290058154626");
|
||||
apyAccount4.setPartner("777290058110048");
|
||||
// apyAccount4.setAppid("777290058110097");
|
||||
apyAccount4.setPublicKey("D:\\certs\\acp_test_middle.cer;D:\\certs\\acp_test_root.cer");
|
||||
apyAccount4.setPrivateKey("D:\\certs\\acp_test_sign.pfx;000000");
|
||||
|
||||
Reference in New Issue
Block a user