2017 © Pedro Peláez
 

library pagarme-laravel

image

flyingluscas/pagarme-laravel

  • Friday, November 3, 2017
  • by FlyingLuscas
  • Repository
  • 1 Watchers
  • 10 Stars
  • 1,162 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 18 % Grown

The README.md

Pagar.me PHP SDK for Laravel

Latest Version on Packagist ![Software License][ico-license] Build Status ![StyleCI][icon-styleci] Coverage Status ![Quality Score][ico-code-quality] Total Downloads, (*1)

Pagar.me SDK for Laravel applications., (*2)

Install

Via Composer, (*3)

``` bash $ composer require flyingluscas/pagarme-laravel, (*4)


## 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][link-laravel-self-discovery]. ``` php '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., (*5)

``` bash $ php artisan vendor:publish --provider="FlyingLuscas\PagarMeLaravel\PagarMeServiceProvider", (*6)


#### Checkout Directive Use the blade directive `@checkout` to easily set up the checkout form. ``` blade <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., (*7)

Facade

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

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


More examples on how to use the SDK please visit the official [documentation available here][link-pagarme-wiki]. ## Change log Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. ## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING for details., (*10)

Security

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

Credits

License

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

The Versions

03/11 2017

dev-feature-filter-transactions

dev-feature-filter-transactions

  Sources   Download

MIT

The Requires

 

The Development Requires

13/10 2017

v1.0.0.x-dev

1.0.0.9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

19/09 2017

dev-master

9999999-dev

Pagar.me SDK for Laravel applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

19/09 2017

v0.3.0

0.3.0.0

Pagar.me SDK for Laravel applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

06/07 2017

dev-flyingluscas-patch-1

dev-flyingluscas-patch-1

Pagar.me SDK for Laravel applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

01/06 2017

v0.2.0

0.2.0.0

Pagar.me SDK for Laravel applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

01/06 2017

dev-feature/update-readme-and-changelog

dev-feature/update-readme-and-changelog

Pagar.me SDK for Laravel applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

17/05 2017

v0.1.0

0.1.0.0

Pagar.me SDK for Laravel applications.

  Sources   Download

MIT

The Requires

 

The Development Requires