Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周健威
rs-cloud-platform
Commits
7d74057b
Commit
7d74057b
authored
Dec 28, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加通知信息
parent
9c417b45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
112 additions
and
1 deletion
+112
-1
OrderPayBiz.java
...ava/com/upyuns/platform/rs/universal/biz/OrderPayBiz.java
+112
-1
No files found.
rs-universal/rs-universal-server/src/main/java/com/upyuns/platform/rs/universal/biz/OrderPayBiz.java
View file @
7d74057b
...
@@ -239,7 +239,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
...
@@ -239,7 +239,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
AlipayClient
alipayClient
=
getAlipayClient
();
AlipayClient
alipayClient
=
getAlipayClient
();
//实例化具体API对应的request类,类名称和接口名称对应,当前调用接口名称:alipay.trade.app.pay
//实例化具体API对应的request类,类名称和接口名称对应,当前调用接口名称:alipay.trade.app.pay
try
{
try
{
return
p
reCreate
(
alipayClient
,
orderPayVo
,
notifyUrl
);
return
p
agePay
(
alipayClient
,
orderPayVo
,
notifyUrl
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
;
;
...
@@ -320,6 +320,117 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
...
@@ -320,6 +320,117 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> {
return
null
;
return
null
;
}
}
public
String
pagePay
(
AlipayClient
alipayClient
,
OrderPayVo
orderPayVo
,
String
notifyUrl
)
{
AlipayTradePagePayRequest
request
=
new
AlipayTradePagePayRequest
();
request
.
setBizContent
(
"{"
+
"\"out_trade_no\":\"20150320010101001\","
+
"\"product_code\":\"FAST_INSTANT_TRADE_PAY\","
+
"\"total_amount\":88.88,"
+
"\"subject\":\"Iphone6 16G\","
+
"\"body\":\"Iphone6 16G\","
+
"\"time_expire\":\"2016-12-31 10:05:01\","
+
" \"goods_detail\":[{"
+
" \"goods_id\":\"apple-01\","
+
"\"alipay_goods_id\":\"20010001\","
+
"\"goods_name\":\"ipad\","
+
"\"quantity\":1,"
+
"\"price\":2000,"
+
"\"goods_category\":\"34543238\","
+
"\"categories_tree\":\"124868003|126232002|126252004\","
+
"\"body\":\"特价手机\","
+
"\"show_url\":\"http://www.alipay.com/xxx.jpg\""
+
" }],"
+
"\"passback_params\":\"merchantBizType%3d3C%26merchantBizNo%3d2016010101111\","
+
"\"extend_params\":{"
+
"\"sys_service_provider_id\":\"2088511833207846\","
+
"\"hb_fq_num\":\"3\","
+
"\"hb_fq_seller_percent\":\"100\","
+
"\"industry_reflux_info\":\"{\\\\\\\"scene_code\\\\\\\":\\\\\\\"metro_tradeorder\\\\\\\",\\\\\\\"channel\\\\\\\":\\\\\\\"xxxx\\\\\\\",\\\\\\\"scene_data\\\\\\\":{\\\\\\\"asset_name\\\\\\\":\\\\\\\"ALIPAY\\\\\\\"}}\","
+
"\"card_type\":\"S0JP0000\""
+
" },"
+
"\"goods_type\":\"0\","
+
"\"timeout_express\":\"90m\","
+
"\"promo_params\":\"{\\\"storeIdType\\\":\\\"1\\\"}\","
+
"\"royalty_info\":{"
+
"\"royalty_type\":\"ROYALTY\","
+
" \"royalty_detail_infos\":[{"
+
" \"serial_no\":1,"
+
"\"trans_in_type\":\"userId\","
+
"\"batch_no\":\"123\","
+
"\"out_relation_id\":\"20131124001\","
+
"\"trans_out_type\":\"userId\","
+
"\"trans_out\":\"2088101126765726\","
+
"\"trans_in\":\"2088101126708402\","
+
"\"amount\":0.1,"
+
"\"desc\":\"分账测试1\","
+
"\"amount_percentage\":\"100\""
+
" }]"
+
" },"
+
"\"sub_merchant\":{"
+
"\"merchant_id\":\"2088000603999128\","
+
"\"merchant_type\":\"alipay: 支付宝分配的间连商户编号, merchant: 商户端的间连商户编号\""
+
" },"
+
"\"merchant_order_no\":\"20161008001\","
+
"\"enable_pay_channels\":\"pcredit,moneyFund,debitCardExpress\","
+
"\"store_id\":\"NJ_001\","
+
"\"disable_pay_channels\":\"pcredit,moneyFund,debitCardExpress\","
+
"\"qr_pay_mode\":\"1\","
+
"\"qrcode_width\":100,"
+
"\"settle_info\":{"
+
" \"settle_detail_infos\":[{"
+
" \"trans_in_type\":\"cardAliasNo\","
+
"\"trans_in\":\"A0001\","
+
"\"summary_dimension\":\"A0001\","
+
"\"settle_entity_id\":\"2088xxxxx;ST_0001\","
+
"\"settle_entity_type\":\"SecondMerchant、Store\","
+
"\"amount\":0.1"
+
" }],"
+
"\"settle_period_time\":\"7d\""
+
" },"
+
"\"invoice_info\":{"
+
"\"key_info\":{"
+
"\"is_support_invoice\":true,"
+
"\"invoice_merchant_name\":\"ABC|003\","
+
"\"tax_num\":\"1464888883494\""
+
" },"
+
"\"details\":\"[{\\\"code\\\":\\\"100294400\\\",\\\"name\\\":\\\"服饰\\\",\\\"num\\\":\\\"2\\\",\\\"sumPrice\\\":\\\"200.00\\\",\\\"taxRate\\\":\\\"6%\\\"}]\""
+
" },"
+
"\"agreement_sign_params\":{"
+
"\"personal_product_code\":\"GENERAL_WITHHOLDING_P\","
+
"\"sign_scene\":\"INDUSTRY|CARRENTAL\","
+
"\"external_agreement_no\":\"test\","
+
"\"external_logon_id\":\"13852852877\","
+
"\"sign_validity_period\":\"2m\","
+
"\"third_party_type\":\"PARTNER\","
+
"\"buckle_app_id\":\"1001164\","
+
"\"buckle_merchant_id\":\"268820000000414397785\","
+
"\"promo_params\":\"{\\\"key\\\",\\\"value\\\"}\""
+
" },"
+
"\"integration_type\":\"PCWEB\","
+
"\"request_from_url\":\"https://\","
+
"\"business_params\":\"{\\\"data\\\":\\\"123\\\"}\","
+
"\"ext_user_info\":{"
+
"\"name\":\"李明\","
+
"\"mobile\":\"16587658765\","
+
"\"cert_type\":\"IDENTITY_CARD\","
+
"\"cert_no\":\"362334768769238881\","
+
"\"min_age\":\"18\","
+
"\"fix_buyer\":\"F\","
+
"\"need_check_info\":\"F\""
+
" }"
+
" }"
);
try
{
log
.
info
(
"{}"
,
JSONObject
.
toJSONString
(
request
));
AlipayTradePagePayResponse
response
=
alipayClient
.
pageExecute
(
request
);
//获取需提交的form表单
log
.
info
(
"网页支付:{}"
,
response
.
getBody
());
return
response
.
getBody
();
}
catch
(
AlipayApiException
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
}
return
null
;
}
//预授权冻结
//预授权冻结
public
String
fundAuthOrderAppFreeze
(
AlipayClient
alipayClient
,
OrderPayVo
orderPayVo
,
String
notifyUrl
)
throws
AlipayApiException
{
public
String
fundAuthOrderAppFreeze
(
AlipayClient
alipayClient
,
OrderPayVo
orderPayVo
,
String
notifyUrl
)
throws
AlipayApiException
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment