定制 businessprocess/payhub-sdk 二次开发

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

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

businessprocess/payhub-sdk

最新稳定版本:v2.1.2

Composer 安装命令:

composer require businessprocess/payhub-sdk

包简介

Sdk for payhub

README 文档

README

PHP 8.x Laravel 8.x Yii 2.x Latest Stable Version Release date Release Version Total Downloads Pull requests Software License Stars

Payhub SDK is a PSR-compatible PHP package for working with payhub api.

API Documentation

Installation

The recommended way to install Payhub SDK is through Composer.

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the latest stable version of Guzzle:

composer require businessprocess/payhub-sdk

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

You can then later update Guzzle using composer:

composer update

Usage

$client = new \Payhub\Service\Payhub([
    'url' => '', # Project url  
    'token' => Oidc::serviceToken(), # Api token
]);
$order = \Payhub\Models\Order::make([
    'type' => 1,
    'callback_url' => 'https://your-callback.url',
    ...
]);
$response = $client->create($order);

echo $response->all(); # '[{"link": ...}'

Usage Laravel

$order = \Payhub\Models\Order::make([
    'type' => 1,
    'callback_url' => 'https://your-callback.url',
    ...
]);
$response = \Payhub\Facade\Payhub::create($order);

echo $response->all(); # '[{"link": ...}'

Available Methods

Methods Description Return value
create Create order OrderCreateResponse
getList Get order list array
getById Get order by id Order
getPaymentMethods Get available payment methods array
getTurnover Get turnover by payment methods PaymentTurnover
webhook Get webhook methods Webhook

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固