三重保障 / 安全结账
简单而优雅的Web界面,方便您使用。只需一个请求即可完成您的第一次安全C2C交易。
v2.0.67
2024-09-12 16:01 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
README
简单而优雅的Web界面,方便您使用。只需一个请求即可完成您的第一次安全C2C交易。
更多信息,请访问 https://tripartie.com。
安装与使用
要求
PHP 7.4及更高版本。也应与PHP 8.0兼容。
Composer
要使用Composer安装绑定,请将以下内容添加到composer.json
{ "repositories": [ { "type": "vcs", "url": "https://github.com/tripartie/safe-checkout.git" } ], "require": { "tripartie/safe-checkout": "*@dev" } }
然后运行composer install
手动安装
下载文件并包含autoload.php
<?php require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
入门指南
请遵循安装过程,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: jwtPersonalKey $config = Tripartie\SafeCheckout\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Tripartie\SafeCheckout\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer'); $apiInstance = new Tripartie\SafeCheckout\Api\AdminApi( // 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(), $config ); $page = 1; // int | The collection page number try { $result = $apiInstance->apiApiClientsGetCollection($page); print_r($result); } catch (Exception $e) { echo 'Exception when calling AdminApi->apiApiClientsGetCollection: ', $e->getMessage(), PHP_EOL; }
API端点
所有URI都是相对于https://staging-api.tripartie.app
模型
- AccessError
- Address
- AddressUserRead
- ApiClientPostCreationRead
- ApiClientRead
- ApiClientWrite
- AuthError
- BankAccountRead
- BankAccountUserRead
- BankAccountWrite
- CardCollectionRead
- CardMetadataCollectionRead
- CardMetadataRead
- CardMetadataUpdate
- CardRead
- CardUpdate
- CardUserRead
- CardWrite
- CashoutCashOutCollectionRead
- CashoutCashOutRead
- CashoutCashOutWrite
- GenericError
- InvalidQueryError
- Media
- MediaRead
- MediaUserRead
- MessageError
- Metadata
- NotFoundError
- Offer
- OfferAddressIndependentWrite
- OfferCollectionRead
- OfferIndependentWrite
- OfferMediaCollectionRead
- OfferMediaRead
- OfferMetadataIndependentWrite
- OfferMetadataUpdate
- OfferOrganizationCollectionRead
- OfferOrganizationRead
- OfferPersonaIndependentWrite
- OfferPersonaRead
- OfferPostCreationRead
- OfferRead
- OfferSoloWrite
- OfferUpdate
- OrganizationAddressUpdate
- OrganizationCollectionRead
- OrganizationMediaCollectionRead
- OrganizationMediaRead
- OrganizationRead
- OrganizationUpdate
- OrganizationUserRead
- Persona
- PersonaAddressRead
- PersonaAddressUpdate
- PersonaAddressWrite
- PersonaCollectionRead
- PersonaMetadataRead
- PersonaMetadataUpdate
- PersonaMetadataWrite
- PersonaRead
- PersonaUpdate
- PersonaUserRead
- PersonaWrite
- ProofOfIdentityCollectionRead
- ProofOfIdentityRead
- ProofOfIdentityWrite
- QuoteAddressRead
- QuoteAddressUpdate
- QuoteAddressWrite
- QuoteRead
- QuoteUpdate
- QuoteWrite
- RateLimitError
- StatisticOutputArraySingleValue
- StatisticOutputMultipleValue
- StatisticOutputSingleValue
- StatisticRead
- StatisticReadDataInner
- StatisticWrite
- TransactionAddressRead
- TransactionCardRead
- TransactionCollectionRead
- TransactionMediaCollectionRead
- TransactionMediaRead
- TransactionMetadataRead
- TransactionOfferCollectionRead
- TransactionOfferRead
- TransactionOrganizationCollectionRead
- TransactionOrganizationRead
- TransactionParcelRead
- TransactionPersonaCollectionRead
- TransactionPersonaRead
- TransactionQuoteCollectionRead
- TransactionQuoteRead
- TransactionRead
- TransactionUpdate
- TransactionWalletRead
- TransactionWrite
- UnprocessableEntity
- UnprocessableEntityViolationsInner
- UserAddressAuthenticatedRead
- UserAddressCollectionRead
- UserAddressSupportRead
- UserAddressUpdate
- UserAuthenticatedRead
- UserBankAccountAuthenticatedRead
- UserCardAuthenticatedRead
- UserCollectionRead
- UserEmailValidationWrite
- UserInvite
- UserJwtCreated
- UserJwtWrite
- UserMediaAuthenticatedRead
- UserMediaCollectionRead
- UserMediaRead
- UserMediaSupportRead
- UserOrganizationAuthenticatedRead
- UserOrganizationCollectionRead
- UserOrganizationRead
- 用户组织支持只读
- 用户画像已验证只读
- 用户帖子注册只读
- 用户支持只读
- 用户Totp设置只读
- 用户Totp切换写入
- 用户更新
- 用户电子邮件更新
- 用户密码更新
- 用户只读
- 用户已订阅
- 用户钱包已验证只读
- 用户钱包集合只读
- 用户钱包支持只读
- 用户写入
- 查看
- 钱包用户只读
- Webhook
- Webhook历史集合只读
- Webhook历史只读
- Webhook对象
- Webhook订阅只读
- Webhook订阅写入
授权
API定义的认证方案
oauth
- 类型:
OAuth
- 流程:
application
- 授权URL: ``
- 作用域:
- OFFER_READ: 安全结账报价的只读操作
- OFFER_WRITE: 安全结账报价的写入权限
- ORGANIZATION_READ: 读取组织详情和统计信息
- PERSONA_READ: 读取共享用户库知识操作
- PERSONA_WRITE: 共享用户库知识的写入权限
- PERSONA_AUTH: 发布短期有效已验证URL的能力
jwtPersonalKey
- 类型: API密钥
- API密钥参数名称: 授权
- 位置: HTTP头部
测试
要运行测试,请使用
composer install vendor/bin/phpunit
作者
关于此包
此PHP包是由OpenAPI Generator项目自动生成的
- API版本:
2.0.67
- 生成器版本:
7.8.0
- 生成器版本:
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen