承接 flyingluscas/pagarme-laravel 相关项目开发

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

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

flyingluscas/pagarme-laravel

Composer 安装命令:

composer require flyingluscas/pagarme-laravel

包简介

Pagar.me SDK for Laravel applications.

README 文档

README

Latest Version on Packagist Software License Build Status StyleCI Coverage Status Quality Score Total Downloads

Pagar.me SDK for Laravel applications.

Install

Via Composer

$ composer require flyingluscas/pagarme-laravel

Usage

Set up

Set up the service provider and the facade in your config/app.php file.

You can skip this step on Laravel 5.5 due to the self-discovery package feature.

'providers' => [
    FlyingLuscas\PagarMeLaravel\PagarMeServiceProvider::class,
],

'aliases' => [
    'PagarMe' => FlyingLuscas\PagarMeLaravel\PagarMeFacade::class,
],

Configurations

Publish the config/pagarme.php file and set your authentication keys, you can get them here.

$ php artisan vendor:publish --provider="FlyingLuscas\PagarMeLaravel\PagarMeServiceProvider"

Checkout Directive

Use the blade directive @checkout to easily set up the checkout form.

<form action="/payment" method="post">
    @checkout([
        'button-text' => 'Pay',
        'amount' => '1000',
        'customer-data' => 'true',
        'payment-methods' => 'boleto,credit_card',
        'ui-color' => '#bababa',
        'postback-url' => 'requestb.in/1234',
        'create-token' => 'true',
        'interest-rate' => '12',
        'free-installments' => '3',
        'default-installment' => '5',
        'header-text' => 'Title',
    ])
</form>

More examples on how to use the checkout form please visit the official documentation.

Facade

You can easily interact with the SDK using the facade class, see a quick example.

PagarMe::transaction()
    ->boletoTransaction(
        1000,
        $customer,
        'http://requestb.in/pkt7pgpk',
        ['id_product' => 13933139]
    );

More examples on how to use the SDK please visit the official documentation available here.

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email lucas.pires.mattos@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固