'123', * 'subject' => 'test', * 'total_amount' => '0.01', * 'out_trade_no' => '1231313123123', * 'product_code' => "FAST_INSTANT_TRADE_PAY",//QUICK_WAP_PAY * 'timeout_express'=>"15m" *]; * * */ public static function pay($param){ //1、execute 使用 $aop = new \AopClient (); $aop->gatewayUrl = 'https://openapi.alipay.com/gateway.do'; $aop->appId = self::$config['alipay']['app_id']; $aop->rsaPrivateKey = self::$config['alipay']['private_key']; $aop->alipayrsaPublicKey = self::$config['alipay']['public_key']; $aop->apiVersion = '1.0'; $aop->signType = 'RSA2'; $aop->postCharset = 'utf-8'; $aop->format = 'json'; $request = new \AlipayTradePagePayRequest (); $param = json_encode($param); $request->setBizContent($param); $result = $aop->pageExecute($request); echo $result; } }