• 支付宝提现


    支付宝提现(单笔转账到支付宝账户)

    require_once "./Public/alipaySdk/AopSdk.php";
    $aop = new AopClient();
    $aop->gatewayUrl = "https://openapi.alipay.com/gateway.do";
    $aop->appId = "2017060207403679";
    $aop->rsaPrivateKey = '请填写开发者私钥去头去尾去回车,一行字符串';
    $aop->alipayrsaPublicKey='请填写支付宝公钥,一行字符串';
    $aop->apiVersion = '1.0';
    $aop->signType = "RSA2";
    $aop->postCharset='utf-8';
    $aop->format = "json";
    $request = new AlipayFundTransToaccountTransferRequest ();
    $out_biz_no = $data['out_biz_no'];
    $payee_account = $data['payee_account'];
    $amount = $data['amount'];
    $request->setBizContent("{" .
      ""out_biz_no":"$out_biz_no"," .
      ""payee_type":"ALIPAY_LOGONID"," .
      ""payee_account":"$payee_account"," .
      ""amount":"$amount"," .
      ""remark":"提现"" .
    "}");
    $result = $aop->execute ( $request);
    $responseNode = str_replace(".", "_", $request->getApiMethodName()) . "_response";
    $resultCode = $result->$responseNode->code;
    if(!empty($resultCode)&&$resultCode == 10000){
      echo '成功!';
    } else {
      echo '失败!';
    }

  • 相关阅读:
    1020.表-继承
    1019.模式(限定名)
    1018.行安全策略
    1017.权限
    1016.表结构修改
    1015.【转】oracle rowid and postgresql ctid
    1014.表-系统列
    20201227[java]同构字符串
    oCam_v4850录屏软件
    《软件定义网络中的异常流量检测研究进展》论文笔记
  • 原文地址:https://www.cnblogs.com/jhy-ocean/p/7992325.html
Copyright © 2020-2023  润新知