soxyl/saferpay

dev-master 2018-08-14 11:21 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:49:20 UTC


README

未提供描述(由Openapi Generator生成 https://github.com/openapitools/openapi-generator

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

  • API版本:1.10.0
  • 包版本:1.10.0
  • 构建包:org.openapitools.codegen.languages.PhpClientCodegen

需求

PHP 5.5及以后版本

安装与使用

Composer

要使用Composer安装绑定,请将以下内容添加到composer.json

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/soxyl/saferpay.git"
    }
  ],
  "require": {
    "soxyl/saferpay": "*@dev"
  }
}

然后运行composer install

手动安装

下载文件并包含autoload.php

    require_once('/path/to/Saferpay JSON API PHP Client/vendor/autoload.php');

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门指南

请按照安装步骤进行,然后运行以下命令

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuth
$config = Soxyl\Saferpay\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Soxyl\Saferpay\Api\AliasApi(
    // 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
);
$alias_assert_insert_request = new \Soxyl\Saferpay\Model\AliasAssertInsertRequest(); // \Soxyl\Saferpay\Model\AliasAssertInsertRequest | 

try {
    $result = $apiInstance->aliasAssertInsertPost($alias_assert_insert_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AliasApi->aliasAssertInsertPost: ', $e->getMessage(), PHP_EOL;
}

?>

API端点文档

所有URI相对于https://www.saferpay.com/api/Payment/v1

模型文档

授权文档

基本认证

  • 类型:HTTP基本认证

作者