支付宝转账到支付宝 验证真实姓名

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了支付宝转账到支付宝 验证真实姓名相关的知识,希望对你有一定的参考价值。

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"" .
"}");

    $result = $aop->execute($request);//返回的是object

    $responseNode = str_replace(".", "_", $request->getApiMethodName()) . "_response";
    $resultCode = $result->$responseNode->code;
    return $resultCode;
}

以上是关于支付宝转账到支付宝 验证真实姓名的主要内容,如果未能解决你的问题,请参考以下文章

怎么使用支付宝在电脑支付?

Java 支付宝支付,退款,单笔转账到支付宝账户(单笔转账到支付宝账户)

Java 支付宝支付,退款,单笔转账到支付宝账户(支付宝订单退款)

请问支付宝手机端转账给他人支付宝帐户,可以输入几个零?

支付宝免费转账额度怎么提升

Java 支付宝支付,退款,单笔转账到支付宝账户(支付宝支付)