PHPackages                             paytm/payment - 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. paytm/payment

ActiveCakephp-plugin

paytm/payment
=============

Paytm JS Checkout for cakephp

0.0.3(2y ago)09MITPHPPHP &gt;=7.2

Since Aug 7Pushed 2y ago4 watchersCompare

[ Source](https://github.com/paytm/paytm-cakephp-js-checkout)[ Packagist](https://packagist.org/packages/paytm/payment)[ RSS](/packages/paytm-payment/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Paytm Payment Plugin for CakePHP
================================

[](#paytm-payment-plugin-for-cakephp)

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require paytm/payment

```

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

[](#configuring)

**Note: For CakePHP 4.x and above auto-discovery takes care of below configuration.**

When composer installs CakePHP Paytm library successfully, register the `Paytm\JsCheckout\PaytmServiceProvider` in your `config/app.php` configuration file.

```
// Paytm configuration settings...
    'Paytm' => [
        'merchantKey' => env('MERCHANT_KEY',''),
        'merchantId' => env('MERCHANT_ID',''),
        'enviroment' => env('PAYTM_ENVIRONMENT',''),
        'callbackUrl' => env('PAYTM_CALLBACK_URL',''),
    ],
```

OR

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

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

```
export PAYTM_ENVIRONMENT=staging
export PAYTM_MERCHANT_ID=YOUR_MERCHANT_ID_HERE
export PAYTM_MERCHANT_KEY =YOUR_SECRET_KEY_HERE
export PAYTM_CALLBACK_URL =YOUR_CALLBACK_URL
```

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

Usage
-----

[](#usage)

### Making a transaction

[](#making-a-transaction)

```

```

### Making a view page

[](#making-a-view-page)

```

        Payment gateway using Paytm Cakephp JS Checkout

                        Name:

                        Mobile No:

                        Email:

                            Term Fee : 1 Rs/-
