PHPackages                             infosecravindra/laravel-paytm-wallet - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. infosecravindra/laravel-paytm-wallet

ActiveLibrary

infosecravindra/laravel-paytm-wallet
====================================

Integrate paytm wallet easily with this package. This package uses official Paytm PHP SDK's

v1.0.17(5y ago)028MITPHPPHP &gt;=7.3

Since Nov 16Pushed 5y agoCompare

[ Source](https://github.com/InfoSecRavindra/laravel-paytm-wallet)[ Packagist](https://packagist.org/packages/infosecravindra/laravel-paytm-wallet)[ RSS](/packages/infosecravindra-laravel-paytm-wallet/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (21)Used By (0)

Laravel Paytm Wallet
====================

[](#laravel-paytm-wallet)

**NOTE: I have only forked it because I had to support Laravel 8 on a prod server and I didn't have time to wait for update in main repo, full credit for this package goes to anandsiddharth**

[![Latest Stable Version](https://camo.githubusercontent.com/f33e4c7508a4d0e197f6571bf8bd6bbecc23df8bb2cd9b010d064b9c58a5d8fc/68747470733a2f2f706f7365722e707567782e6f72672f616e616e647369646468617274682f6c61726176656c2d706179746d2d77616c6c65742f762f737461626c65)](https://packagist.org/packages/anandsiddharth/laravel-paytm-wallet)[![Total Downloads](https://camo.githubusercontent.com/d8dbb76e180217d0c64b1221896b3ff48ae1e89d06b1aebf73642182fcad4392/68747470733a2f2f706f7365722e707567782e6f72672f616e616e647369646468617274682f6c61726176656c2d706179746d2d77616c6c65742f646f776e6c6f616473)](https://packagist.org/packages/anandsiddharth/laravel-paytm-wallet)[![License](https://camo.githubusercontent.com/8bae5be2cb29eb273fbfae063c8bc94c3ad8cf3b5ee2e0234762cf9a030f7c5c/68747470733a2f2f706f7365722e707567782e6f72672f616e616e647369646468617274682f6c61726176656c2d706179746d2d77616c6c65742f6c6963656e7365)](https://packagist.org/packages/anandsiddharth/laravel-paytm-wallet)[![Join the chat at https://gitter.im/laravel-paytm-wallet/Lobby](https://camo.githubusercontent.com/e1ed960bed5e728f3fd1b3a1ae335e8e35ddf1f7308247845d6c35b3621b8149/68747470733a2f2f6261646765732e6769747465722e696d2f6c61726176656c2d706179746d2d77616c6c65742f4c6f6262792e737667)](https://gitter.im/laravel-paytm-wallet/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

For Laravel 5.0 and above

Introduction
------------

[](#introduction)

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

License
-------

[](#license)

Laravel Paytm Wallet open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

Getting Started
---------------

[](#getting-started)

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

```
composer require anandsiddharth/laravel-paytm-wallet

```

Configuring
-----------

[](#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 `Anand\LaravelPaytmWallet\PaytmWalletServiceProvider` in your `config/app.php` configuration file.

```
'providers' => [
    // Other service providers...
    Anand\LaravelPaytmWallet\PaytmWalletServiceProvider::class,
],
```

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

```
'aliases' => [
    // Other aliases
    'PaytmWallet' => Anand\LaravelPaytmWallet\Facades\PaytmWallet::class,
],
```

#### Add the paytm credentials to the `.env` file

[](#add-the-paytm-credentials-to-the-env-file)

```
PAYTM_ENVIRONMENT=local
PAYTM_MERCHANT_ID=YOUR_MERCHANT_ID_HERE
PAYTM_MERCHANT_KEY=YOUR_SECRET_KEY_HERE
PAYTM_MERCHANT_WEBSITE=YOUR_MERCHANT_WEBSITE
PAYTM_CHANNEL=YOUR_CHANNEL_HERE
PAYTM_INDUSTRY_TYPE=YOUR_INDUSTRY_TYPE_HERE
```

#### One more step to go....

[](#one-more-step-to-go)

On your `config/services.php` add the following configuration

```
'paytm-wallet' => [
        'env' => env('PAYTM_ENVIRONMENT'), // values : (local | production)
        'merchant_id' => env('PAYTM_MERCHANT_ID'),
        'merchant_key' => env('PAYTM_MERCHANT_KEY'),
        'merchant_website' => env('PAYTM_MERCHANT_WEBSITE'),
        'channel' => env('PAYTM_CHANNEL'),
        'industry_type' => env('PAYTM_INDUSTRY_TYPE'),
],
```

Note : All the credentials mentioned are provided by Paytm after signing up as merchant.

#### Laravel 7 Changes

[](#laravel-7-changes)

Our package is comptible with Laravel 7 but same\_site setting is changed in default Laravel installation, make sure you change `same_site` to `null` in `config/session.php` or callback won't include cookies and you will be logged out when a payment is completed

```
