三重保障/安全结账

简单而优雅的Web界面,方便您使用。只需一个请求即可完成您的第一次安全C2C交易。

v2.0.67 2024-09-12 16:01 UTC

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

模型

授权

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

作者

noc@tripartie.com

关于此包

此PHP包是由OpenAPI Generator项目自动生成的

  • API版本: 2.0.67
    • 生成器版本: 7.8.0
  • 构建包: org.openapitools.codegen.languages.PhpClientCodegen