rcastera/payment-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

rcastera/payment-api

Composer 安装命令:

composer require rcastera/payment-api

包简介

Payment API

README 文档

README

The PaymentAPI allows you to easily process e-commerce transactions without having to worry about all the backend details of connecting and setting up the cURL options.

  • An extremely easy API.
  • Extensible to add many different payment gateways.
  • Consumes gateway api's using the Guzzle client.

Supported gateways

There are several gateways (Stripe, Authorize.net and Paypal to name a few) and more will be added but, if you need one that isn't supported yet, feel free to contribute. See supported gateways.

Setup

Add a composer.json file to your project:

{
  "require": {
      "rcastera/payment-api": "v1.0.0"
  }
}

Then provided you have composer installed, you can run the following command:

$ composer.phar install

That will fetch the library and its dependencies inside your vendor folder. Then you can add the following to your .php files in order to use the library (if you don't already have one).

require 'vendor/autoload.php';

Then you need to use the relevant class, and instantiate the gateway.

Example

require 'vendor/autoload.php';

use rcastera\PaymentAPI\Factory\PaymentFactory;
use rcastera\PaymentAPI\Exception\PaymentException;
use rcastera\PaymentApi\Util\PaymentUtil;

$authorize = PaymentFactory::get('Authorize.Aim');

Utility class

There's a utility class that's included for convenince. Learn more about the Utility class

Contributing

  1. Fork it.
  2. Create a branch (git checkout -b my_branch)
  3. Commit your changes (git commit -am "Added something")
  4. Push to the branch (git push origin my_branch)
  5. Create an Issue with a link to your branch
  6. Enjoy a refreshing Coke and wait

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-12-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固