定制 skip-pay/skippay-payments-php-sdk 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

skip-pay/skippay-payments-php-sdk

Composer 安装命令:

composer require skip-pay/skippay-payments-php-sdk

包简介

API documentation for Skip Pay partners.

README 文档

README

skippay-php-sdk composer php

  • PHP client for API documentation for Skip Pay partners.

  • API version: 1.0

For more information, please visit our developer portal

Installation

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Composer

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

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/skip-pay/skippay-payments-php-sdk"
    }
  ],
  "require": {
    "skippay/skippay-payments-php-sdk": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/skippay-payments-php-sdk/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

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

$config = SkipPay\Configuration::getDefaultConfiguration();

$authApi = new SkipPay\Api\SecurityApi(
  new GuzzleHttp\Client(),
  $config,
);

// Example, store this securely
$username = 'USER_NAME';
$password = 'PASSWORD';

// Obtain access token
$authResponse = $authApi->loginpartner([
  'username' => $username, 
  'password' => $password
]);

// Configure access token
$config->setAccessToken($authResponse['accessToken']);

$sdk = new SkipPay\Sdk(
    // 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
);
$applicationId = 11b00a1ef1; // string | applicationId
$applicationCancelRequest = new \SkipPay\Model\ApplicationCancelRequest(); // \SkipPay\Model\ApplicationCancelRequest

try {
    $result = $sdk->ApplicationOperationsApi()->cancelapplication($applicationId, $applicationCancelRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ApplicationOperationsApi()->cancelapplication(): ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to https://api.partner.skippay.cz

Class Method HTTP request Description
ApplicationOperationsApi cancelapplication PUT /financing/v1/applications/{applicationId}/cancel Cancel application
ApplicationOperationsApi changeapplicationorder PUT /financing/v1/applications/{applicationId}/order Change application order
ApplicationOperationsApi createapplication POST /financing/v1/applications Create application
ApplicationOperationsApi createapplicationfromrecurrence POST /financing/v1/recurrences/{recurrenceId}/applications Create application from recurrence
ApplicationOperationsApi getapplicationdetail GET /financing/v1/applications/{applicationId} Get application detail
ApplicationOperationsApi getorder GET /financing/v1/orders Get order
ApplicationOperationsApi getpaymentsonspecificapplication GET /financing/v1/applications/{applicationId}/payments Get payments on specific application
ApplicationOperationsApi getrecurrence GET /financing/v1/recurrences/{recurrenceId} Get recurrence
ApplicationOperationsApi markorderitemsascancelled PUT /financing/v1/applications/{applicationId}/order/cancel Mark order items as cancelled
ApplicationOperationsApi markorderitemsasdelivered PUT /financing/v1/applications/{applicationId}/order/deliver Mark order items as delivered
ApplicationOperationsApi markorderitemsasreturned PUT /financing/v1/applications/{applicationId}/order/return Mark order items as returned
ApplicationOperationsApi markorderitemsassent PUT /financing/v1/applications/{applicationId}/order/send Mark order items as sent
ApplicationOperationsApi updaterecurrence PATCH /financing/v1/recurrences/{recurrenceId} Update recurrence
HealthCheckApi aPIhealthcheck GET /v1/health API health check
PrecheckOperationsApi precheck POST /financing/v1/precheck Precheck
SecurityApi loginpartner POST /authentication/v1/partner Login partner

Models

Authorization

httpBearer

  • Type: Bearer authentication

Author

info@skippay.cz

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: unlicense
  • 更新时间: 2024-02-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固