123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680 |
- <?php
- namespace BsPayDemo;
- require_once dirname(__FILE__) . "/loader.php";
- require_once dirname(__FILE__). "/../BsPaySdk/request/V2MerchantBusiModifyRequest.php";
- use BsPaySdk\core\BsPayClient;
- use BsPaySdk\request\V2MerchantBusiModifyRequest;
- $request = new V2MerchantBusiModifyRequest();
- $request->setReqSeqId(date("YmdHis").mt_rand());
- $request->setReqDate(date("Ymd"));
- $request->setHuifuId("6666000103668046");
- $extendInfoMap = getExtendInfos();
- $request->setExtendInfo($extendInfoMap);
- $client = new BsPayClient();
- $result = $client->postRequest($request);
- if (!$result || $result->isError()) {
- var_dump($result -> getErrorInfo());
- } else {
- var_dump($result);
- }
- function getExtendInfos() {
-
- $extendInfoMap = array();
-
- $extendInfoMap["short_name"]= "";
-
- $extendInfoMap["tax_reg_pic"]= "";
-
- $extendInfoMap["comp_pic1"]= "";
-
- $extendInfoMap["comp_pic2"]= "";
-
- $extendInfoMap["comp_pic3"]= "";
-
- $extendInfoMap["legal_cert_back_pic"]= "";
-
- $extendInfoMap["legal_cert_front_pic"]= "";
-
- $extendInfoMap["license_pic"]= "";
-
- $extendInfoMap["org_code_pic"]= "";
-
- $extendInfoMap["reg_acct_pic"]= "";
-
- $extendInfoMap["settle_card_back_pic"]= "";
-
- $extendInfoMap["settle_card_front_pic"]= "";
-
- $extendInfoMap["settle_cert_back_pic"]= "";
-
- $extendInfoMap["settle_cert_front_pic"]= "";
-
- $extendInfoMap["auth_enturst_pic"]= "[http://192.168.85.157:30031/sspm/testVirgo](http://192.168.85.157:30031/sspm/testVirgo)";
-
- $extendInfoMap["agreement_info"]= getAgreementInfo();
-
- $extendInfoMap["out_fee_flag"]= "2";
-
- $extendInfoMap["out_fee_huifuid"]= "";
-
- $extendInfoMap["out_fee_acct_type"]= "";
-
- $extendInfoMap["online_flag"]= "";
-
- $extendInfoMap["quick_flag"]= "";
-
- $extendInfoMap["withhold_flag"]= "";
-
- $extendInfoMap["delay_flag"]= "Y";
-
- $extendInfoMap["alipay_pre_auth_flag"]= "Y";
-
-
-
-
-
-
-
- $extendInfoMap["ali_conf_list"]= getAliConfList();
-
- $extendInfoMap["wx_conf_list"]= getWxConfList();
-
- $extendInfoMap["union_conf_list"]= getUnionConfList();
-
- $extendInfoMap["bank_card_conf"]= getBankCardConf();
-
- $extendInfoMap["balance_pay_config"]= getBalancePayConfig();
-
- $extendInfoMap["combine_pay_config"]= getCombinePayConfig();
-
-
-
-
-
-
-
-
-
-
-
- $extendInfoMap["async_return_url"]= "[http://www.baidu55.com](http://www.baidu55.com/)";
-
- $extendInfoMap["busi_async_return_url"]= "";
-
- $extendInfoMap["recon_resp_addr"]= "[http://192.168.85.157:30031/sspm/testVirgo](http://192.168.85.157:30031/sspm/testVirgo)";
-
-
- return $extendInfoMap;
- }
- function getAgreementInfo() {
- $dto = array();
-
- $dto["agreement_type"] = "0";
-
- $dto["agree_begin_date"] = "20200325";
-
- $dto["agree_end_date"] = "20400325";
-
- $dto["agreement_model"] = "202106070100000380";
-
- $dto["agreement_name"] = "电子协议签约模板";
-
- $dto["agreement_no"] = "202106070100000380";
-
- $dto["sign_date"] = "20200325";
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getOnlineFeeConfList() {
- $dto = array();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $dtoList = array();
- array_push($dtoList, $dto);
- return json_encode($dtoList,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getAliConfList() {
- $dto = array();
-
- $dto["fee_rate"] = "3.15";
-
- $dto["pay_scene"] = "1";
-
- $dto["mcc"] = "2016062900190337";
-
- $dto["pay_channel_id"] = "10000001";
-
- $dto["indirect_level"] = "";
- $dtoList = array();
- array_push($dtoList, $dto);
- return json_encode($dtoList,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getWxConfList() {
- $dto = array();
-
- $dto["fee_rate"] = "2.15";
-
- $dto["pay_scene"] = "10";
-
- $dto["mcc"] = "5943";
-
- $dto["fee_rule_id"] = "765";
-
- $dto["pay_channel_id"] = "JP00001";
-
- $dto["service_codes"] = "";
- $dtoList = array();
- array_push($dtoList, $dto);
- return json_encode($dtoList,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getUnionConfList() {
- $dto = array();
-
- $dto["debit_fee_rate_up"] = "6";
-
- $dto["debit_fee_rate_down"] = "2.55";
-
- $dto["credit_fee_rate_down"] = "1";
-
- $dto["credit_fee_rate_up"] = "6.566";
-
- $dto["charge_cate_code"] = "";
-
- $dto["debit_fee_limit_up"] = "641";
-
- $dto["debit_fee_limit_down"] = "11.3";
- $dtoList = array();
- array_push($dtoList, $dto);
- return json_encode($dtoList,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getBankCardConf() {
- $dto = array();
-
- $dto["debit_fee_rate"] = "3";
-
- $dto["credit_fee_rate"] = "6";
-
- $dto["charge_cate_code"] = "02";
-
- $dto["debit_fee_limit"] = "5";
-
- $dto["cloud_debit_fee_rate_up"] = "7";
-
- $dto["cloud_debit_fee_limit_up"] = "8.922";
-
- $dto["cloud_credit_fee_rate_up"] = "4.86";
-
- $dto["cloud_debit_fee_rate_down"] = "0";
-
- $dto["cloud_debit_fee_limit_down"] = "10";
-
- $dto["cloud_credit_fee_rate_down"] = "2";
-
- $dto["is_open_small_flag"] = "0";
-
- $dto["small_free_amt"] = "500";
-
- $dto["small_fee_amt"] = "1";
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getBalancePayConfig() {
- $dto = array();
-
- $dto["fee_rate"] = "2";
-
- $dto["fee_fix_amt"] = "1";
-
- $dto["switch_state"] = "1";
-
-
-
-
-
-
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getCombinePayConfig() {
- $dto = array();
-
- $dto["switch_state"] = "0";
-
- $dto["fee_rate"] = "10";
-
- $dto["fee_fix_amt"] = "5";
-
-
-
-
-
-
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getOnlinePayFeeConfList() {
- $dto = array();
-
-
-
-
-
-
-
-
- $dtoList = array();
- array_push($dtoList, $dto);
- return json_encode($dtoList,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getBankBigAmtPayConfig() {
- $dto = array();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getOutOrderAcctCard() {
- $dto = array();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getOutOrderAcctOpenFees() {
- $dto = array();
-
-
-
-
-
-
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getOutOrderFundsConfig() {
- $dto = array();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getCollectionSettleConfigList() {
- $dto = array();
-
-
-
-
-
-
-
-
-
-
-
-
- $dtoList = array();
- array_push($dtoList, $dto);
- return json_encode($dtoList,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getWxZlPayConfList() {
- $dto = array();
-
-
-
-
-
-
-
-
- $dtoList = array();
- array_push($dtoList, $dto);
- return $dtoList;
- }
- function getFileList() {
- $dto = array();
-
-
-
-
- $dtoList = array();
- array_push($dtoList, $dto);
- return json_encode($dtoList,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getContactInfo() {
- $dto = array();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getCertificateInfo() {
- $dto = array();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getUboInfoList() {
- $dto = array();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $dtoList = array();
- array_push($dtoList, $dto);
- return json_encode($dtoList,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getUboInfo() {
- $dto = array();
-
-
-
-
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getSalesInfo() {
- $dto = array();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getWxCardInfo() {
- $dto = array();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getWxZlConf() {
- $dto = array();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
- function getAliZlConf() {
- $dto = array();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- return json_encode($dto,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
- }
|