- #Paytm app integration install#
- #Paytm app integration manual#
- #Paytm app integration android#
- #Paytm app integration code#
Whoops! There were some problems with your ($errors->all() as $error)Īfter doing all the above steps we have successfully integrated paytm payment gateway in our laravel application. Laravel 5.4 - Payment gateway using Paytm Next, we will need to create view files which are basically blade templets for viewing the data in the web browser. $transaction = PaytmWallet::with('receive') ĮventRegistration::where('order_id',$order_id)->update() 'callback_url' => url('api/payment/status')
'mobile' => 'required|numeric|digits:10|unique:customer,mobile', Here, we will create required routes for web and api as mentioned below. Now, create Customer.php model file under app directory.Īpp/Customer.php progress, 1 => Fail, 2 => Successful $table->string('transaction_id')->default(0) Īfter the above, we will need to migrate this migration. $table->tinyInteger('status')->default(0) Now open migration file and add scema like below. php artisan make:migration create_customers_table So open you terminal and run following artisan command to generate new migration. In this step, we will create customers table and Customer model using laravel migration. YOUR_INDUSTRY_TYPE=Retail Step 3: Create table and model Now add these secret key date in the application’s environment file like below. 'industry_type' => env('YOUR_INDUSTRY_TYPE'),
'merchant_website' => env('YOUR_WEBSITE'), 'merchant_key' => env('YOUR_MERCHANT_KEY'), 'merchant_id' => env('YOUR_MERCHANT_ID'), 'env' => 'local', // values : (local | production)
#Paytm app integration code#
So open config/services.php file and add the line of code as mentaioned below. Now we will need to add some other configuration like marchant id and key. 'PaytmWallet' => Anand\LaravelPaytmWallet\Facades\PaytmWallet::class, So open config/app.php file and add provider and alias as given as under.Īnand\LaravelPaytmWallet\PaytmWalletServiceProvider::class, composer require anandsiddharth/laravel-paytm-walletĪfter running the above command, you will need to setup some configurations for this package. It will automatically dowload all the files required for this package in your application.
#Paytm app integration install#
composer create-project -prefer-dist laravel/laravel test-app Step 2: Install Packageįor installing the desired package, you will just need to run the following composer command in your terminal. You can jump directly to the next step otherwise just open your terminal and run the command as given below. If you don’t want to install new application you can also integrate into your existing application.
#Paytm app integration android#
#Paytm app integration manual#
There should be no other modes of login like manual user input based login method or social login.