定制 peachpayments/payment-links 二次开发

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

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

peachpayments/payment-links

最新稳定版本:v1.4.0

Composer 安装命令:

composer require peachpayments/payment-links

包简介

Peach Payments - Payment Links SDK.

README 文档

README

Requirements

PHP 7.4.0 and later.

Composer

You can install the sdk via Composer. Run the following command:

composer require peach/peach-payment-php

To use the sdk, use Composer's autoload:

require_once('vendor/autoload.php');

Manual Installation

If you do not wish to use Composer, you can download the latest release. Then, to use the sdk, include the init.php file.

require_once('/path/to/peach-payment-php/init.php');

Dependencies

The sdk require the following extensions in order to work properly:

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Getting Started

Simple usage looks like:

const CLIENT_ID = "";
const CLIENT_SECRET = "";
const MERCHANT_ID = "";
const ENTITY_ID = "";

$ppay = new \PeachPayments\PaymentLinksClient(new \PeachPayments\AuthDetails(CLIENT_ID, CLIENT_SECRET, MERCHANT_ID));
$response = $ppay->payment->create(ENTITY_ID, [
    ...PaymentDetails
]);

print_r($response);

Other examples can be found in the Examples Directory

Development

Testing

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2022-10-12