All URIs are relative to https://openapi.alipay.com.
Method | HTTP request | Description |
---|---|---|
sign() | POST /v3/alipay/open/agent/facetoface/sign | 代签约当面付产品 |
sign($businessLicenseAuthPic, $businessLicensePic, $data, $shopScenePic, $shopSignBoardPic, $specialLicensePic): object
代签约当面付产品
三方应用代理签约当面付产品,需要配合开启事务接口使用
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Alipay\OpenAPISDK\Api\AlipayOpenAgentFacetofaceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
// 初始化alipay参数
$alipayConfig = new \Alipay\OpenAPISDK\Util\Model\AlipayConfig();
$alipayConfig->setAppId('app_id');
$alipayConfig->setPrivateKey('private_key');
// 密钥模式
$alipayConfig->setAlipayPublicKey('alipay_public_key');
// 证书模式
// $alipayConfig->setAppCertPath('../appCertPublicKey.crt');
// $alipayConfig->setAlipayPublicCertPath('../alipayCertPublicKey_RSA2.crt');
// $alipayConfig->setRootCertPath('../alipayRootCert.crt');
$alipayConfig->setEncryptKey('encrypt_key');
$alipayConfigUtil = new \Alipay\OpenAPISDK\Util\AlipayConfigUtil($alipayConfig);
$apiInstance->setAlipayConfigUtil($alipayConfigUtil);
$businessLicenseAuthPic = "/path/to/file.txt"; // \SplFileObject
$businessLicensePic = "/path/to/file.txt"; // \SplFileObject
$data = new \Alipay\OpenAPISDK\Model\AlipayOpenAgentFacetofaceSignModel(); // \Alipay\OpenAPISDK\Model\AlipayOpenAgentFacetofaceSignModel
$shopScenePic = "/path/to/file.txt"; // \SplFileObject
$shopSignBoardPic = "/path/to/file.txt"; // \SplFileObject
$specialLicensePic = "/path/to/file.txt"; // \SplFileObject
try {
$result = $apiInstance->sign($businessLicenseAuthPic, $businessLicensePic, $data, $shopScenePic, $shopSignBoardPic, $specialLicensePic);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AlipayOpenAgentFacetofaceApi->sign: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
businessLicenseAuthPic | \SplFileObject**\SplFileObject** | [optional] | |
businessLicensePic | \SplFileObject**\SplFileObject** | [optional] | |
data | \Alipay\OpenAPISDK\Model\AlipayOpenAgentFacetofaceSignModel | [optional] | |
shopScenePic | \SplFileObject**\SplFileObject** | [optional] | |
shopSignBoardPic | \SplFileObject**\SplFileObject** | [optional] | |
specialLicensePic | \SplFileObject**\SplFileObject** | [optional] |
object
No authorization required
- Content-Type:
multipart/form-data
- Accept:
application/json