阶段性更新,没有实质性的功能
This commit is contained in:
131
config/unionpay.php
Normal file
131
config/unionpay.php
Normal file
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'check' => [
|
||||
'self' => [
|
||||
'private' => storage_path('cert/self/private_rsa.pem'),
|
||||
'public' => storage_path('cert/self/public_rsa.pem'),
|
||||
],
|
||||
'unionpay' => [
|
||||
'public' => storage_path('cert/unionpay/public_rsa.pem'),
|
||||
],
|
||||
],
|
||||
'fields' => [
|
||||
'query' => [
|
||||
'in' => [
|
||||
"msg_type" => "报文类型",
|
||||
"msg_txn_code" => "交易代码",
|
||||
"msg_crrltn_id" => "报文流水号",
|
||||
"msg_flg" => "报文请求应答标志",
|
||||
"msg_sender" => "报文发送方",
|
||||
"msg_time" => "报文日期",
|
||||
"msg_ver" => "报文版本号",
|
||||
"req_serial_no" => "查询流水号",
|
||||
"shop_no" => "门店号",
|
||||
"term_no" => "受理终端号",
|
||||
"service_code" => "受理方式",
|
||||
"voucher_no" => "受理凭证号",
|
||||
"mkt_code" => "聚合营销码",
|
||||
"mkt_mode" => "聚合营销类型",
|
||||
"embedded_mchnt_no" => "发起渠道商户号",
|
||||
"currency_code" => "货币代码",
|
||||
"amount" => "消费金额",
|
||||
"avl_amt" => "可优惠金额",
|
||||
"term_sp_chnl_no" => "终端指定SP渠道号",
|
||||
"func_code" => "功能码",
|
||||
"times" => "次数",
|
||||
"pay_mode" => "支付方式",
|
||||
//用户附加信息
|
||||
"user_ext_info" => [
|
||||
"mobile_no" => "手机号",
|
||||
"user_code" => "用户号",
|
||||
"user_code_type" => "用户号类型",
|
||||
"dev_id" => "设备id",
|
||||
],
|
||||
"sign" => " 签名域",
|
||||
],
|
||||
'out' => [
|
||||
"msg_type" => "报文类型",
|
||||
"msg_txn_code" => "交易代码",
|
||||
"msg_crrltn_id" => "报文流水号",
|
||||
"msg_flg" => "报文请求应答标志",
|
||||
"msg_sender" => "报文发送方",
|
||||
"msg_time" => "报文日期",
|
||||
"msg_sys_sn" => "平台流水号",
|
||||
"msg_rsp_code" => "响应码",
|
||||
"msg_rsp_desc" => "响应码描述",
|
||||
"discount" => "折扣金额",
|
||||
"actual_amt" => "折后应收金额",
|
||||
"pos_display" => "POS显示",
|
||||
"pos_receipt" => "POS小票",
|
||||
"pos_ad" => "POS广告",
|
||||
"pos_mkt_ad" => "Pos_营销联盟广告",
|
||||
"sign" => "签名域",
|
||||
]
|
||||
],
|
||||
'freezecoupon' => [
|
||||
'in' => [
|
||||
"msg_type" => "报文类型",
|
||||
"msg_txn_code" => "交易代码",
|
||||
"msg_crrltn_id" => "消息关联号",
|
||||
"msg_flg" => "报文请求应答标志",
|
||||
"msg_sender" => "报文发送方",
|
||||
"msg_time" => "报文日期",
|
||||
"msg_sys_sn" => "平台流水号",
|
||||
"msg_ver" => "报文版本号",
|
||||
"shop_no" => "门店号",
|
||||
"term_no" => "终端号",
|
||||
"req_serial_no" => "销券流水号",
|
||||
"orig_req_serial_no" => "原查询流水号",
|
||||
"enc_card_no" => "加密卡号",
|
||||
"part_card_no" => "部分卡号",
|
||||
"acq_term_sn" => "受理终端流水号",
|
||||
"refer_no" => "检索参考号",
|
||||
"sett_date" => "清算日期",
|
||||
"txn_date" => "交易日期",
|
||||
"txn_time" => "交易时间",
|
||||
"orig_amt" => "原始金额",
|
||||
"discount_amt" => "优惠的金额",
|
||||
"pay_amt" => "支付金额",
|
||||
"pay_mode" => "支付方式",
|
||||
"order_no" => "订单号",
|
||||
"trans_crrltn_no" => "交易关联流水号",
|
||||
"equity_no" => "权益号",
|
||||
"card_no" => "全卡号",
|
||||
"sign" => "签名数据",
|
||||
],
|
||||
'out' => [
|
||||
"msg_type" => "报文类型",
|
||||
"msg_txn_code" => "交易代码",
|
||||
"msg_crrltn_id" => "消息关联号",
|
||||
"msg_flg" => "报文请求应答标志",
|
||||
"msg_sender" => "报文发送方",
|
||||
"msg_time" => "报文日期",
|
||||
"msg_sys_sn" => "平台流水号",
|
||||
"msg_ver" => "报文版本号",
|
||||
"msg_rsp_code" => "响应码",
|
||||
"msg_rsp_desc" => "响应码描述",
|
||||
"orig_amt" => "原始金额",
|
||||
"discount_amt" => "折扣金额",
|
||||
"pay_amt" => "支付金额",
|
||||
"serv_chg" => "服务费",
|
||||
"commission" => "佣金",
|
||||
"ad" => "广告",
|
||||
"pos_receipt" => "POS优惠",
|
||||
"coupon_no" => "凭证号",
|
||||
"coupon_type" => "凭证类型",
|
||||
"sp_biz_code" => "SP统计码",
|
||||
"charge_code" => "计费码",
|
||||
"pos_event_title" => "SP活动主题",
|
||||
"sp_contact" => "SP联系电话",
|
||||
"sp_name" => "SP名称",
|
||||
"event_no" => "活动号",
|
||||
"td_code" => "二维码",
|
||||
"memo" => "附言",
|
||||
"mkt_sp_chnl_no" => "营销渠道号",
|
||||
"point_amt" => "积分抵扣金额",
|
||||
"sign" => "签名数据",
|
||||
]
|
||||
],
|
||||
]
|
||||
];
|
||||
@@ -6,7 +6,7 @@ return [
|
||||
'ysd' => [
|
||||
// 'pattern' => '/^YSD\d{12}/',
|
||||
'pattern' => '/^YSD/',
|
||||
'model' => \XuanChen\Coupon\Action\YsdAction::class,
|
||||
'model' => \XuanChen\Coupon\Action\UnionPayAction::class,
|
||||
],
|
||||
'pingan' => [
|
||||
'pattern' => '/^\d{12}$/',
|
||||
|
||||
Reference in New Issue
Block a user