mdsami/larapaytm

Paytm Integration with Laravel

dev-master 2019-09-24 18:47 UTC

This package is auto-updated.

Last update: 2024-10-25 06:18:24 UTC


README

Paytm Integration with Laravel

Latest Stable Version Total Downloads License

For Laravel 5.6 and above

Introduction

Integrate Paytm wallet in your laravel application easily with this package. This package uses official Paytm PHP SDK's.

License

Laravel Paytm Wallet open-sourced software licensed under the MIT license

Getting Started

To get started add the following package to your composer.json file using this command.

composer require mdsami/larapaytm

Configuring

Note: For Laravel 5.5 and above auto-discovery takes care of below configuration.

When composer installs Laravel Paytm Wallet library successfully, register the MdSami\LaraPaytm\LaraPaytmServiceProvider in your config/app.php configuration file.

'providers' => [
    // Other service providers...
    MdSami\LaraPaytm\LaraPaytmServiceProvider::class,
],

Also, add the LaraPaytm facade to the aliases array in your app configuration file:

'aliases' => [
    // Other aliases
    'LaraPaytm' => MdSami\LaraPaytm\Facades\LaraPaytm::class,
],

Add the paytm credentials to the .env file