Skip to content

增加 2025.1.15 新的商户转账接口支持 #3474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
增加新的商户转账接口支持
  • Loading branch information
allovine committed Jan 15, 2025
commit 1668da8b6c46b73c2ee0d9e9eb3d764874a8e278
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,10 @@ public class TransferBillsRequest implements Serializable {
/**
* 转账场景报备信息
*/
@SpecEncrypt
@SerializedName("transfer_scene_report_infos")
private List<TransferSceneReportInfo> transferSceneReportInfos;




@Data
@Builder(builderMethodName = "newBuilder")
@AllArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,8 @@ public TransferBatchDetailResult transferBatchesOutBatchNoDetail(String outBatch
public TransferBillsResult transferBills(TransferBillsRequest request) throws WxPayException {
String url = String.format("%s/v3/fund-app/mch-transfer/transfer-bills", this.payService.getPayBaseUrl());
if (request.getUserName() != null && request.getUserName().length() > 0) {
String userName = request.getUserName();
X509Certificate validCertificate = this.payService.getConfig().getVerifier().getValidCertificate();
RsaCryptoUtil.encryptFields(userName, validCertificate);
request.setUserName(userName);
RsaCryptoUtil.encryptFields(request, validCertificate);
}
String result = this.payService.postV3WithWechatpaySerial(url, GSON.toJson(request));
return GSON.fromJson(result, TransferBillsResult.class);
Expand Down