12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * AdaPay 删除结算账户
- * author: adapay.com https://docs.adapay.tech/api/04-trade.html
- * Date: 2019/09/17
- */
- # 加载SDK需要的文件
- include_once dirname(__FILE__). "/../../AdapaySdk/init.php";
- # 加载商户的配置文件
- include_once dirname(__FILE__). "/../config.php";
- # 初始化结算账户对象类
- $account = new \AdaPaySdk\SettleAccount();
- $account_params = array(
- 'app_id'=> 'app_f8b14a77-dc24-433b-864f-98a62209d6c4',
- 'member_id'=> 'hf_test_member_id_account5',
- 'settle_account_id'=> '0006017543466816'
- );
- # 查询结算账户
- $account->delete($account_params);
- # 对查询结算账户结果进行处理
- if ($account->isError()){
- //失败处理
- var_dump($account->result);
- } else {
- //成功处理
- var_dump($account->result);
- }
|