//alipay sdk(老版):
//(1)execute(如当面付接口):
//方式一:
response = alipayclient.execute(request,null,"app_auth_token参数值");
//方式二:
request.putothertextparam("app_auth_token", "app_auth_token参数值");
//(2)pageexecute(如电脑网站支付、手机网站支付):
request.putothertextparam("app_auth_token", "app_auth_token参数值");
//(3)sdkexecute(如app支付):
request.putothertextparam("app_auth_token", "app_auth_token参数值");
//alipay easy sdk(新版):(通用)
factory.payment.facetoface()
// 调用agent扩展方法,设置app_auth_token,完成第三方代调用
.agent("ca34ea491e7146cc87d25fca24c4cd11")
.precreate("apple iphone11 128g", "2234567890", "5799.00");
//alipay sdk(老版):
//(1)execute(如当面付接口):
$result = $aop->execute ($request,null,$app_auth_token);
//(2)pageexecute(如电脑网站支付、手机网站支付):
$result = $aop->pageexecute($request,null,$app_auth_token);
//(3)sdkexecute(如app支付):
$result = $aop->sdkexecute($request,$app_auth_token);
//alipay easy sdk(新版):(通用)
factory::payment()->facetoface()
// 调用agent扩展方法,设置app_auth_token,完成第三方代调用
->agent("ca34ea491e7146cc87d25fca24c4cd11")
->precreate("apple iphone11 128g", "2234567890", "5799.00");