| | |
| | | String payoutUrl = "https://api.watchglb.com/pay/transfer"; |
| | | String mchId = "100789033"; |
| | | String key = "CZ5Q6NNI6D9YTCXZAIWIC8SAQCC35UZR"; |
| | | String backUrl = "https://api.nalandacapital.mom/user/payoutCallback.do"; |
| | | String backUrl = "https://api.nalandacapital.shop/user/payoutCallback.do"; |
| | | |
| | | String bankCode = StringUtils.defaultIfBlank(userWithdraw.getBankAddress(), "").trim(); |
| | | String receiveAccount = StringUtils.defaultIfBlank(userWithdraw.getBankNo(), "").trim(); |
| | |
| | | params.put("mch_transferId", merchantOrderNo); |
| | | params.put("transfer_amount", transferAmount); |
| | | params.put("apply_date", applyDate); |
| | | params.put("bank_code", bankCode); |
| | | params.put("receive_name", receiveName); |
| | | params.put("bank_code", "IDPT0001"); |
| | | params.put("receive_name", user.getNickName()); |
| | | params.put("receive_account", receiveAccount); |
| | | params.put("back_url", backUrl); |
| | | params.put("remark", userWithdraw.getBankAddress()); |
| | | if (StringUtils.isNotBlank(user.getPhone())) { |
| | | params.put("receiver_telephone", user.getPhone().trim()); |
| | | } |
| | |
| | | UserWithdraw userWithdraw, User user, UserAssets userAssets) throws Exception { |
| | | String merchantOrderNo = generatePayoutOrderId(withId); |
| | | BigDecimal amount = userWithdraw.getWithAmt().setScale(2, RoundingMode.HALF_UP); |
| | | String notifyUrl = "https://api.nalandacapital.mom/user/payoutCallbackThree.do"; |
| | | String notifyUrl = "https://api.nalandacapital.shop/user/payoutCallbackThree.do"; |
| | | |
| | | UserBank bank = userBankMapper.selectOne(new LambdaQueryWrapper<UserBank>() |
| | | .eq(UserBank::getUserId, user.getId()) |
| | |
| | | params.put("payout_mode", "INDIA_IMPS"); // 代付模式,根据实际情况选择 |
| | | params.put("customer_account_type", userWithdraw.getBankAddress()); // 账号类型 |
| | | params.put("customer_account_no", userWithdraw.getBankNo()); // 收款人账号(银行卡号或UPI ID) |
| | | params.put("notify_url", "https://api.nalandacapital.mom/user/payoutCallback.do"); // 异步通知地址 |
| | | params.put("notify_url", "https://api.nalandacapital.shop/user/payoutCallback.do"); // 异步通知地址 |
| | | |
| | | // 生成签名 |
| | | String sign = PaymentSignUtil.generateSign(params, key); |