Skip to content

Latest commit

 

History

History
77 lines (64 loc) · 3.5 KB

README.md

File metadata and controls

77 lines (64 loc) · 3.5 KB

接口示例

实例化

use EasyAlipay\Builder;
use EasyAlipay\Crypto\Rsa;

$appId = '2014072300007148';
$privateKey = Rsa::fromPkcs1('MIIEpAIBAAKCAQEApdXuft3as2x...');
$publicKey = Rsa::fromSpki('MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCg...');

$instance = Builder::factory([
    'privateKey' => $privateKey,
    'publicKey' => $publicKey,
    'params' => [
        'app_id' => $appId,
    ],
]);
方法 属性链 说明
alipay.system.oauth.token ->alipay->system->oauthToken 获取授权访问令牌和用户user_id
alipay.system.oauth.token ->alipay->system->oauthToken 刷新授权访问令牌
alipay.open.app.qrcode.create ->alipay->open->appQrcodeCreate 营销
alipay.offline.material.image.upload ->alipay->offline->materialImageUpload 上传门店照片接口
alipay.offline.material.image.upload ->alipay->offline->materialImageUpload 上传门店视频接口
方法 属性链 说明
alipay.user.certify.open.initialize ->alipay->user->certifyOpenInitialize 身份认证初始化服务
alipay.user.certify.open.certify ->alipay->user->certifyOpenCertify 身份认证开始认证
alipay.user.certify.open.query ->alipay->user->certifyOpenQuery 身份认证记录查询
方法 属性链 说明
alipay.trade.create ->alipay->trade->create 统一收单交易创建接口
alipay.trade.query ->alipay->trade->query 统一收单线下交易查询接口
alipay.trade.refund ->alipay->trade->refund 统一收单交易退款接口
alipay.trade.close ->alipay->trade->close 统一收单交易关闭接口
alipay.trade.fastpay.refund.query ->alipay->trade->fastpayRefundQuery 统一收单交易退款查询接口
alipay.data.dataservice.bill.downloadurl.query ->alipay->data->dataserviceBillDownloadurlQuery 查询对账单下载地址接口
alipay.trade.pay ->alipay->trade->pay 统一收单交易支付接口
alipay.trade.precreate ->alipay->trade->precreate 统一收单线下交易预创建
alipay.trade.app.pay ->alipay->trade->appPay APP支付2.0接口
alipay.trade.page.pay ->alipay->trade->pagePay 统一收单下单并支付页面接口
alipay.trade.wap.pay ->alipay->trade->wapPay 手机网站支付接口2.0接口
方法 属性链 说明
alipay.security.risk.content.detect ->alipay->security->riskContentDetect
方法 属性链 说明
alipay.pass.template.add ->alipay->passTemplateAdd
alipay.pass.template.Update ->alipay->passTemplateUpdate
alipay.pass.instance.add ->alipay->passInstanceAdd
alipay.pass.instance.update ->alipay->passInstanceUpdate
alipay.open.app.mini.templatemessage.send ->alipay->open->appMiniTemplatemessageSend
alipay.open.public.message.content.create ->alipay->open->publicMessageContentCreate
alipay.open.public.message.content.modify ->alipay->open->publicMessageContentModify
alipay.open.public.message.total.send ->alipay->open->publicMessageTotalSend
alipay.open.public.message.total.send ->alipay->open->publicMessageTotalSend
alipay.open.public.message.single.send ->alipay->open->publicMessageSingleSend
alipay.open.public.life.msg.recall ->alipay->open->publicLifeMsgRecall
alipay.open.public.template.message.industry.modify ->alipay->open->publicTemplateMessageIndustryModify
alipay.open.public.setting.category.query ->alipay->open->publicSettingCategoryQuery