All Projects → flyingluscas → Pagarme Laravel

flyingluscas / Pagarme Laravel

Licence: mit
Pagar.me SDK for Laravel applications.

Projects that are alternatives of or similar to Pagarme Laravel

Laravel Cascade Soft Deletes
Cascading deletes for Eloquent models that implement soft deletes
Stars: ✭ 498 (+2065.22%)
Mutual labels:  laravel, package
Libra Sdk Go
Go SDK for the Libra cryptocurrency
Stars: ✭ 23 (+0%)
Mutual labels:  sdk, package
Laravel Ban
Laravel Ban simplify blocking and banning Eloquent models.
Stars: ✭ 572 (+2386.96%)
Mutual labels:  laravel, package
Crater
Open Source Invoicing Solution for Individuals & Businesses
Stars: ✭ 4,897 (+21191.3%)
Mutual labels:  payment, laravel
Laravel Caffeine
Keeping Your Laravel Forms Awake.
Stars: ✭ 723 (+3043.48%)
Mutual labels:  laravel, package
Comments
Native comments for your Laravel application.
Stars: ✭ 390 (+1595.65%)
Mutual labels:  laravel, package
Youtube
🔥 Laravel PHP Facade/Wrapper for the Youtube Data API
Stars: ✭ 610 (+2552.17%)
Mutual labels:  laravel, package
Laravel Transactional Events
Transaction-aware Event Dispatcher for Laravel
Stars: ✭ 263 (+1043.48%)
Mutual labels:  laravel, package
Artisan View
👀 Manage your views in Laravel projects through artisan
Stars: ✭ 708 (+2978.26%)
Mutual labels:  laravel, package
Sleepingowladmin
🦉 Administrative interface builder for Laravel (Laravel admin)
Stars: ✭ 671 (+2817.39%)
Mutual labels:  laravel, package
Yaldash
👻 It's never been easier to build and customize admin panels. Yah! yaldash is a beautifully designed administration panel for Laravel.
Stars: ✭ 338 (+1369.57%)
Mutual labels:  payment, laravel
Aetherupload Laravel
A Laravel package to upload large files 上传大文件的Laravel扩展包
Stars: ✭ 835 (+3530.43%)
Mutual labels:  laravel, package
Plans
Laravel Plans is a package for SaaS apps that need management over plans, features, subscriptions, events for plans or limited, countable features.
Stars: ✭ 326 (+1317.39%)
Mutual labels:  laravel, package
Laravel Acl
This package helps you to associate users with permissions and permission groups with laravel framework
Stars: ✭ 404 (+1656.52%)
Mutual labels:  laravel, package
Dynamixelsdk
ROBOTIS Dynamixel SDK (Protocol1.0/2.0)
Stars: ✭ 266 (+1056.52%)
Mutual labels:  sdk, package
Befriended
Eloquent Befriended brings social media-like features like following, blocking and filtering content based on following or blocked models.
Stars: ✭ 596 (+2491.3%)
Mutual labels:  laravel, package
Sdk3rd
第三方SDK集成库,授权/分享/支付
Stars: ✭ 249 (+982.61%)
Mutual labels:  payment, sdk
In App Payments Flutter Plugin
Flutter Plugin for Square In-App Payments SDK
Stars: ✭ 256 (+1013.04%)
Mutual labels:  payment, sdk
Laravel Translatable
A Laravel package for multilingual models
Stars: ✭ 624 (+2613.04%)
Mutual labels:  laravel, package
Package Skeleton
📦 My base for PHP packages.
Stars: ✭ 6 (-73.91%)
Mutual labels:  laravel, package

Pagar.me PHP SDK for Laravel

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 [email protected] instead of using the issue tracker.

Credits

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].