支付宝转账到支付宝 验证真实姓名
public static function aliPayApply($data){
require ‘alipay/config.php‘;
$out_biz_no = $data["apply_no"]; //提现单号
$payee_account = $data["alipay_account"]; //支付宝账号
$amount = $data["apply_amount"]; //提现金额
$remark = ‘提现到支付宝‘;
$payer_show_name = ‘壹企帮业务提现转账‘;
$payee_real_name = $data[‘alipay_realname‘];
//实例化支付接口
$aop = new \AopClient();
$aop->gatewayUrl = $config[‘gatewayUrl‘]; //支付宝网关
$aop->appId = $config[‘app_id‘];
$aop->rsaPrivateKey = $config[‘merchant_private_key‘];
$aop->alipayrsaPublicKey = $config[‘alipay_public_key‘];
$aop->apiVersion = ‘1.0‘;
$aop->signType = $config[‘sign_type‘];
$aop->postCharset = $config[‘charset‘];
$aop->format = "json";
$request = new \AlipayFundTransToaccountTransferRequest();
//
$request->setBizContent("{" .
"\"out_biz_no\":\"$out_biz_no\"," .
"\"payee_type\":\"ALIPAY_LOGONID\"," .
"\"payee_account\":\"$payee_account\"," .
"\"amount\":\"$amount\"," .
"\"remark\":\"$remark\"," .
"\"payer_show_name\":\"$payer_show_name\"," .
"\"payee_real_name\":\"$payee_real_name\"" .
"}");
require ‘alipay/config.php‘;
$out_biz_no = $data["apply_no"]; //提现单号
$payee_account = $data["alipay_account"]; //支付宝账号
$amount = $data["apply_amount"]; //提现金额
$remark = ‘提现到支付宝‘;
$payer_show_name = ‘壹企帮业务提现转账‘;
$payee_real_name = $data[‘alipay_realname‘];
//实例化支付接口
$aop = new \AopClient();
$aop->gatewayUrl = $config[‘gatewayUrl‘]; //支付宝网关
$aop->appId = $config[‘app_id‘];
$aop->rsaPrivateKey = $config[‘merchant_private_key‘];
$aop->alipayrsaPublicKey = $config[‘alipay_public_key‘];
$aop->apiVersion = ‘1.0‘;
$aop->signType = $config[‘sign_type‘];
$aop->postCharset = $config[‘charset‘];
$aop->format = "json";
$request = new \AlipayFundTransToaccountTransferRequest();
//
$request->setBizContent("{" .
"\"out_biz_no\":\"$out_biz_no\"," .
"\"payee_type\":\"ALIPAY_LOGONID\"," .
"\"payee_account\":\"$payee_account\"," .
"\"amount\":\"$amount\"," .
"\"remark\":\"$remark\"," .
"\"payer_show_name\":\"$payer_show_name\"," .
"\"payee_real_name\":\"$payee_real_name\"" .
"}");
$result = $aop->execute($request);//返回的是object $responseNode = str_replace(".", "_", $request->getApiMethodName()) . "_response"; $resultCode = $result->$responseNode->code; return $resultCode; }
相关推荐
weigenzongderoot 2020-04-20
hushijiao 2020-11-10
wuxiaobo 2020-11-06
QSmile 2020-09-17
迷彩 2020-05-29
迷彩 2020-02-18
cindycinderella 2019-12-24
Roka 2019-12-11
cindycinderella 2019-12-10
Takeofftheroad 2019-11-13
szrongxi 2019-11-12
cindycinderella 2014-07-28
vqudominiapp 2019-09-08
chaicheng0 2019-04-13
guanheyu 2019-05-07
随风逝 2019-09-04
resilient 2019-03-26