承接 soxyl/saferpay 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

soxyl/saferpay

Composer 安装命令:

composer require soxyl/saferpay

包简介

README 文档

README

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 1.10.0
  • Package version: 1.10.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

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

Then run composer install

Manual Installation

Download the files and include autoload.php:

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

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?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;
}

?>

Documentation for API Endpoints

All URIs are relative to https://www.saferpay.com/api/Payment/v1

Class Method HTTP request Description
AliasApi aliasAssertInsertPost POST /Alias/AssertInsert
AliasApi aliasDeletePost POST /Alias/Delete
AliasApi aliasInsertDirectPost POST /Alias/InsertDirect
AliasApi aliasInsertPost POST /Alias/Insert
BatchApi batchClosePost POST /Batch/Close
OmniChannelApi omniChannelAcquireTransactionPost POST /OmniChannel/AcquireTransaction
OmniChannelApi omniChannelInsertAliasPost POST /OmniChannel/InsertAlias
PaymentPageApi paymentPageAssertPost POST /PaymentPage/Assert
PaymentPageApi paymentPageInitializePost POST /PaymentPage/Initialize
TransactionApi transactionAdjustAmountPost POST /Transaction/AdjustAmount
TransactionApi transactionAssertCapturePost POST /Transaction/AssertCapture
TransactionApi transactionAssertRedirectPaymentPost POST /Transaction/AssertRedirectPayment
TransactionApi transactionAssertRefundPost POST /Transaction/AssertRefund
TransactionApi transactionAuthorizeDirectPost POST /Transaction/AuthorizeDirect
TransactionApi transactionAuthorizePost POST /Transaction/Authorize
TransactionApi transactionAuthorizeReferencedPost POST /Transaction/AuthorizeReferenced
TransactionApi transactionCancelPost POST /Transaction/Cancel
TransactionApi transactionCapturePost POST /Transaction/Capture
TransactionApi transactionInitializePost POST /Transaction/Initialize
TransactionApi transactionMultipartCapturePost POST /Transaction/MultipartCapture
TransactionApi transactionMultipartFinalizePost POST /Transaction/MultipartFinalize
TransactionApi transactionQueryPaymentMeansPost POST /Transaction/QueryPaymentMeans
TransactionApi transactionRedirectPaymentPost POST /Transaction/RedirectPayment
TransactionApi transactionRefundDirectPost POST /Transaction/RefundDirect
TransactionApi transactionRefundPost POST /Transaction/Refund

Documentation For Models

Documentation For Authorization

BasicAuth

  • Type: HTTP basic authentication

Author

统计信息

  • 总下载量: 929
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-14