承接 shoperti/payme 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

shoperti/payme

最新稳定版本:v4.3.1

Composer 安装命令:

composer require shoperti/payme

包简介

A multi-gateway payment platform for PHP

README 文档

README

Build Status StyleCI

Supported Gateways:

  • Bogus
  • Conekta
  • Manual
  • MercadoPago
  • OpenPay
  • PayPal Express / Plus
  • Sr Pago
  • Stripe

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require shoperti/payme.

"require": {
  "shoperti/payme": "4.0-dev"
}

Next, update Composer from the Terminal:

composer update

Examples

// Create a new PayMe instance choosing the driver
$config = [
    'driver'      => 'stripe',
    'private_key' => 'secret_key',
    'public_key'  => 'public_key',
];

$payme = new Shoperti\PayMe\PayMe($config);
// or
$payme = PayMe::make($config);

// Make a charge
$response = $payme->charges()->create('100', 'tok_test', []);

if (!$response->success()) {
    return ':(';
}

return 'Hurray!';

You can also use our factory.

$payme = new Shoperti\PayMe\PayMeFactory();

// Make a charge
$response = $payme->make($config)->charges()->create('100', 'tok_test', []);

if (!$response->success()) {
    return ':(';
}

return 'Hurray!';

See the tests for more examples.

If you are looking for the old API we still have branch 1.0

Todo

  • Add Missing Gateways tests
  • Add Credit Card object
  • Create a Laravel Bridge
  • Add more gateways

License

PayMe is licensed under The MIT License (MIT).

统计信息

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

GitHub 信息

  • Stars: 49
  • Watchers: 7
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固