payeezy/payeezy-php
Composer 安装命令:
composer require payeezy/payeezy-php
包简介
Payeezy PHP Library
README 文档
README
Description
Payeezy PHP SDK is built to make developers life easy to integrate with the Payeezy API (https://developers.payeezy.com) for processing payements with various payment methods. Download the SDK, follow instructions to start testing against the sandbox environment with developer credentials.
Installation
You can use Composer or simply Download the Release
Composer
The preferred method is via composer. Follow the installation instructions if you do not already have composer installed.
Once composer is installed, execute the following command in your project root to install this library:
composer require payeezy/payeezy-php:dev-master
Finally, be sure to include the autoloader:
require_once '/path/to/your-project/vendor/autoload.php';
Download the Release
If you abhor using composer, you can download the package in its entirety. The Releases page lists all stable versions. Download any file
with the name payeezy-php-[RELEASE_NAME].zip for a package including this library and its dependencies.
Uncompress the zip file you download, and include the autoloader in your project:
require_once '/path/to/payeezy-php/vendor/autoload.php';
Examples
See the examples/ directory for examples of the key client features. You can
view them in your browser by running the php built-in web server.
$ php -S localhost:8000 -t examples/
And then browsing to the host and port you specified
(in the above example, http://localhost:8000).
Basic Example
require_once 'vendor/autoload.php'; $client = new Payeezy_Client(); $client->setApiKey("YOUR_API_KEY"); $client->setApiSecret("YOUR_API_SECRET"); $client->setMerchantToken("YOUR_MERCHANT_TOKEN"); $client->setUrl("https://api-cert.payeezy.com/v1/transactions"); $card_transaction = new Payeezy_CreditCard($client); $response = $card_transaction->purchase([ "merchant_ref" => "Astonishing-Sale", "amount" => "1299", "currency_code" => "USD", "credit_card" => array( "type" => "visa", "cardholder_name" => "John Smith", "card_number" => "4788250000028291", "exp_date" => "1020", "cvv" => "123" ) ]); echo "<pre>"; var_dump($response); echo "</pre>";
Testing
Run the PHPUnit tests with PHPUnit. You can configure API keys and token in BaseTest.php
phpunit tests/
Contributing
- Fork the PHP client library on GitHub
- Decide which code you want to submit. A submission should be a set of changes that addresses one issue in the issue tracker. Please file one change per issue, and address one issue per change. If you want to make a change that doesn't have a corresponding issue in the issue tracker, please file a new ticket!
- Ensure that your code adheres to standard PHP conventions, as used in the rest of the library.
- Ensure that there are unit tests for your code.
- Submit a pull request with your patch on Github.
Coding Style
To check for coding style violations, run
vendor/bin/phpcs src --standard=coder_ruleset.xml -np
To automatically fix (fixable) coding style violations, run
vendor/bin/phpcbf src --standard=coder_ruleset.xml
Feedback
We appreciate the time you take to try out our sample code and welcome your feedback. Here are a few ways to get in touch:
- For generally applicable issues and feedback, create an issue in this repository.
- support@payeezy.com - for personal support at any phase of integration
- 1.855.799.0790 - for personal support in real time
Terms of Use
Terms and conditions for using Payeezy API SDK: Please see Payeezy Terms & conditions
License
The Payeezy PHP SDK is open source and available under the MIT license. See the LICENSE file for more info.
Project Maintenance
Github pages
git subtree push --prefix docs origin gh-pages
payeezy/payeezy-php 适用场景与选型建议
payeezy/payeezy-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 168.67k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2016 年 07 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「payment processing」 「payeezy」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 payeezy/payeezy-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 payeezy/payeezy-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 payeezy/payeezy-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
paywant api php client
A PSR-7 compatible library for making CRUD API endpoints
Convert and operate with FIPS codes for states, counties, etc.
Image processing for PHP 5.3
PHP client for the PAYMENNT api
This repository contains Saaspose.SDK for PHP source code. This SDK allows you to work with Saaspose REST API in your PHP applications quickly and easily.
统计信息
- 总下载量: 168.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-18