<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aashutosh on Medium]]></title>
        <description><![CDATA[Stories by Aashutosh on Medium]]></description>
        <link>https://medium.com/@aashutosh636?source=rss-e7b6f624554e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Aashutosh on Medium</title>
            <link>https://medium.com/@aashutosh636?source=rss-e7b6f624554e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:24:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aashutosh636/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Passwordless SSH Setup in Ubuntu 22.05]]></title>
            <link>https://aashutosh636.medium.com/passwordless-ssh-setup-in-ubuntu-22-05-60009ac7a004?source=rss-e7b6f624554e------2</link>
            <guid isPermaLink="false">https://medium.com/p/60009ac7a004</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[ssh-keygen]]></category>
            <category><![CDATA[puttygen]]></category>
            <dc:creator><![CDATA[Aashutosh]]></dc:creator>
            <pubDate>Thu, 06 Nov 2025 15:26:58 GMT</pubDate>
            <atom:updated>2025-11-06T15:26:58.667Z</atom:updated>
            <content:encoded><![CDATA[<h3>Passwordless SSH Setup in Ubuntu 22.04</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XYNUxWCRzyf7c7xJIkSptQ.png" /></figure><h3>🔐 How to Set Up Passwordless SSH Login Using a PPK File</h3><p>If you log in to your VPS frequently, typing your password every single time can be frustrating — and risky. A far more secure and convenient approach is to use <strong>passwordless SSH authentication</strong> with a private key (.ppk) file.</p><p>This short guide will walk you through setting up passwordless SSH access using <strong>PuTTYgen</strong> and your VPS.</p><h3>🧩 Step 1: Generate an SSH Key Pair on Your Local System</h3><p>First, we need a key pair — one private (.ppk) and one public. The private key will stay safe on your local system, while the public key will go on your VPS.</p><h3>Using PuTTYgen (Windows)</h3><ol><li>Open <strong>PuTTYgen</strong> (comes with PuTTY installation).</li><li>Click <strong>Generate</strong> and move your mouse randomly in the blank area to create entropy.</li><li>Once the key is generated:</li></ol><ul><li>Click <strong>Save Private Key</strong> → name it something like mykey.ppk.</li><li>Copy the <strong>Public Key</strong> (the long text starting with ssh-rsa) — you’ll need it soon.</li></ul><p>💡 <em>Tip: You can also add a key passphrase for extra security.</em></p><h3>⚙️ Step 2: Add the Public Key to Your VPS</h3><ol><li>Log in to your VPS <strong>once using your password</strong>.</li><li>In your terminal, run the following commands:</li></ol><pre>mkdir -p ~/.ssh <br>nano ~/.ssh/authorized_keys</pre><ol><li>Paste the public key (copied from PuTTYgen) into the file.</li><li>Save and exit the editor (Ctrl + O, Enter, Ctrl + X).</li></ol><p>Now fix the permissions so your VPS recognizes the key file correctly:</p><pre>chmod 700 ~/.ssh<br>chmod 600 ~/.ssh/authorized_keys</pre><h3>🔐 Step 3: Disable Password Authentication (Optional but Recommended)</h3><p>To make sure SSH accepts <strong>only</strong> your key and not passwords:</p><pre>sudo nano /etc/ssh/sshd_config</pre><p>Find and edit these lines:</p><pre>PasswordAuthentication no<br>PubkeyAuthentication yes</pre><p>Then restart the SSH service:</p><pre>sudo systemctl restart ssh</pre><h3>💻 Step 4: Connect Using PuTTY and Your .PPK File</h3><p>Now that everything’s in place:</p><ol><li>Open <strong>PuTTY</strong>.</li><li>Under <strong>Session</strong>, enter your VPS IP and Port Number.</li><li>Go to <strong>Connection → SSH → Auth → Credentials</strong>.</li><li>Under “Private key file for authentication,” select your .ppk file.</li><li>Return to <strong>Session</strong>, save the configuration, and click <strong>Open</strong>.</li></ol><p>You should now be logged in <strong>without a password</strong> 🎉</p><h3>✅ Wrapping Up</h3><p>You’ve successfully set up <strong>passwordless SSH authentication</strong> with a .ppk file — making your VPS access faster and more secure.</p><p>Whether you’re managing one server or a fleet, this simple configuration step saves time and reduces the risk of brute-force attacks on your SSH login.</p><p><em>If you found this guide helpful, give it a clap 👏 and follow for more hands-on DevOps and server setup tutorials!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60009ac7a004" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiple Laravel Projects on the Same Server: Session Conflicts & Environment Overlap]]></title>
            <link>https://aashutosh636.medium.com/multiple-laravel-projects-on-the-same-server-session-conflicts-environment-overlap-b9a90b04d814?source=rss-e7b6f624554e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9a90b04d814</guid>
            <category><![CDATA[misconfigured-config]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[session-management]]></category>
            <category><![CDATA[php-fpm]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Aashutosh]]></dc:creator>
            <pubDate>Mon, 28 Jul 2025 17:38:13 GMT</pubDate>
            <atom:updated>2025-07-28T17:38:13.150Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I ran into a frustrating issue with user sessions getting invalidated across multiple Laravel projects hosted on the same server. Here’s how I discovered the root cause and fixed it.</p><h3>🛠 Server Setup</h3><ul><li><strong>OS</strong>: CentOS 7</li><li><strong>Web Server</strong>: Apache</li><li><strong>PHP Handler</strong>: PHP-FPM</li><li><strong>Database</strong>: PostgreSQL</li><li><strong>PHP Version</strong>: 7.x</li><li><strong>Framework</strong>: Laravel</li></ul><p>I had multiple Laravel projects deployed under different virtual hosts, all running on the same server.</p><h3>❗ The Problem</h3><p>After logging into one of the applications, users would suddenly get logged out — sometimes within seconds. Occasionally, login attempts failed with an error saying:</p><blockquote><strong><em>“These credentials do not match our records.”</em></strong></blockquote><p>This behavior was inconsistent and only occurred when <strong>more than one project</strong> was active at the same time.</p><h3>🔍 Initial Findings</h3><p>Upon inspecting browser cookies, I noticed:</p><ul><li>All applications were using the default laravel_session cookie.</li><li>The domain was set to .xyz.com (a shared parent domain).</li></ul><p>This meant sessions could <strong>conflict</strong> between apps, especially if the user accessed multiple apps under the same domain.</p><p>So, I updated each project’s config/session.php file to use <strong>unique session cookie names</strong> and <strong>distinct </strong><strong>session_domain</strong> values.</p><pre>// Example in config/session.php<br>&#39;cookie&#39; =&gt; env(&#39;SESSION_COOKIE&#39;, &#39;project1_session&#39;),<br>&#39;domain&#39; =&gt; env(&#39;SESSION_DOMAIN&#39;, &#39;project1.xyz.com&#39;),</pre><p>Despite these changes, the logout issue persisted.</p><h3>🧠 Deeper Root Cause: Shared PHP-FPM Pool &amp; Uncached Config</h3><p>After digging deeper, I realized this wasn’t just a cookie issue. The real culprit was <strong>how Laravel and PHP-FPM handle environment variables</strong>.</p><p>Laravel relies on the .env file for configuration — but if you don&#39;t run php artisan config:cache, Laravel will read .env <strong>on every request</strong>.</p><p>Here’s the catch:</p><ul><li>When <strong>multiple Laravel apps share the same PHP-FPM pool</strong>, the FPM worker processes may <strong>reuse</strong> the PHP runtime across projects.</li><li>If config isn’t cached, and two requests hit different projects simultaneously, the .env of one project can <strong>bleed into</strong> the other.</li><li>This causes unpredictable behavior: session mismatches, failed authentication, and even incorrect database connections.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pTYcom2XX74JzCamfA9vlw.png" /></figure><h3>✅ The Fix</h3><p>To prevent .env files from being loaded dynamically on each request, I ran the following for <strong>each project</strong>:</p><pre>php artisan config:cache</pre><p>This caches the environment configuration into a PHP file, so Laravel no longer reads .env on every request. It ensures each project loads <strong>its own cached config</strong>, even if using the same FPM pool.</p><h3>🔒 Best Practices for Multi-Laravel Hosting</h3><p>If you’re running multiple Laravel projects on the same server, follow these to avoid environment conflicts:</p><ol><li><strong>Use Unique Session Settings</strong><br> In config/session.php, set a unique session_cookie and session_domain for each app.</li><li><strong>Always Cache Configs</strong><br> Run php artisan config:cache after changes to .env or config files.</li><li><strong>(Recommended) Use Separate PHP-FPM Pools</strong><br> For better isolation, configure separate FPM pools for each app in /etc/php-fpm.d/.</li><li>Example pool config (project1.conf):</li></ol><pre>[project1] listen = /run/php-fpm/project1.sock ...</pre><ol><li>And update Apache VirtualHost:</li></ol><pre>&lt;FilesMatch \.php$&gt;     SetHandler &quot;proxy:unix:/run/php-fpm/project1.sock|fcgi://localhost/&quot; &lt;/FilesMatch&gt;</pre><h3>🎉 Conclusion</h3><p>When multiple Laravel apps share a server, it’s easy to run into subtle bugs caused by shared sessions or overlapping environment configs. By:</p><ul><li>Customizing session settings</li><li>Caching config files</li><li>Using separate FPM pools</li></ul><p>…you can avoid these conflicts entirely and keep your applications stable.</p><h3>🧩 Your Input Matters</h3><p>Have you encountered similar environment or session conflicts while hosting multiple Laravel projects on the same server? I’d be interested in hearing how you approached the issue — especially if you’ve used different strategies (like Docker, Nginx, or CI/CD optimizations).</p><p>If this post helped clarify something or saved you time, consider leaving a <strong>clap</strong>, <strong>comment</strong>, or <strong>follow</strong>. It helps surface technical content like this to other developers on Medium.</p><p>Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9a90b04d814" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic Database Switching in Laravel: A Deep Dive into Runtime Configuration]]></title>
            <link>https://aashutosh636.medium.com/dynamic-database-switching-in-laravel-a-deep-dive-into-runtime-configuration-1670f05066c3?source=rss-e7b6f624554e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1670f05066c3</guid>
            <category><![CDATA[multi-environment]]></category>
            <category><![CDATA[artisan]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Aashutosh]]></dc:creator>
            <pubDate>Thu, 27 Mar 2025 10:29:44 GMT</pubDate>
            <atom:updated>2025-03-27T10:29:44.277Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jRlaiuKoMXVObEGaFh5-ew.jpeg" /></figure><p>Learn how to programmatically switch database connections and manage multiple environments without touching your .env file</p><p>In modern web development, managing multiple database environments is a common challenge. Whether you’re working with different databases for local, development, staging, or production environments, or need to switch database connections on the fly, Laravel provides powerful tools to handle these scenarios.</p><h3>The Challenge</h3><p>Traditional database configuration in Laravel relies heavily on the .env file. But what is you need to:</p><ul><li>Switch between different database environments dynamically</li><li>Manage multiple client databases</li><li>Test features against different database configurations</li><li>Run the same application with different databases based on certain conditions</li></ul><h3>Understanding Laravel’s Database Configuration</h3><p>Default Configuration</p><pre>// config/database.php<br>&#39;pgsql&#39; =&gt; [<br>    &#39;driver&#39; =&gt; &#39;pgsql&#39;,<br>    &#39;url&#39; =&gt; env(&#39;DATABASE_URL&#39;),<br>    &#39;host&#39; =&gt; env(&#39;DB_HOST&#39;),<br>    &#39;port&#39; =&gt; env(&#39;DB_PORT&#39;),<br>    &#39;database&#39; =&gt; env(&#39;DB_DATABASE&#39;),<br>    &#39;username&#39; =&gt; env(&#39;DB_USERNAME&#39;),<br>    &#39;password&#39; =&gt; env(&#39;DB_PASSWORD&#39;),<br>    &#39;schema&#39; =&gt; env(&#39;DB_SCHEMA&#39;),<br>    &#39;charset&#39; =&gt; &#39;utf8&#39;,<br>    &#39;prefix&#39; =&gt; &#39;&#39;,<br>    &#39;prefix_indexes&#39; =&gt; true,<br>    &#39;sslmode&#39; =&gt; &#39;prefer&#39;,<br>]</pre><h3>Building the Solution</h3><ol><li>Creating a Custom Artisan Command</li></ol><pre>namespace App\Console\Commands;<br><br>use Illuminate\Console\Command;<br>use Illuminate\Support\Facades\DB;<br><br>class runServer extends Command<br>{<br>    protected $signature = &#39;run {--env=} {--port=}&#39;;<br>    protected $description = &#39;Serve application with dynamic database configuration&#39;;<br>    private $env = [&#39;local&#39;, &#39;dev&#39;, &#39;stage&#39;];<br><br>    public function handle()<br>    {<br>        if (!$this-&gt;validateEnvironment()) {<br>            return;<br>        }<br><br>        $this-&gt;switchDatabaseConnection();<br>        $this-&gt;startServer();<br>    }<br>}</pre><p>2. Environment Management:</p><pre>private function validateEnvironment()<br>{<br>    $environment = $this-&gt;option(&#39;env&#39;);<br>    if (!in_array($environment, $this-&gt;env)) {<br>        $this-&gt;error(&#39;Invalid environment. Available environments: &#39; . implode(&#39;, &#39;, $this-&gt;env));<br>        return false;<br>    }<br>    return true;<br>}</pre><p>3. Dynamic Database Switching:</p><pre>private function switchDatabaseConnection()<br>{<br>    $environment = $this-&gt;option(&#39;env&#39;);<br>    <br>    // Set environment variables<br>    putenv(&#39;DB_HOST=&#39; . env(strtoupper($environment . &#39;_DB_HOST&#39;)));<br>    putenv(&#39;DB_PORT=&#39; . env(strtoupper($environment . &#39;_DB_PORT&#39;)));<br>    putenv(&#39;DB_DATABASE=&#39; . env(strtoupper($environment . &#39;_DB_DATABASE&#39;)));<br>    putenv(&#39;DB_USERNAME=&#39; . env(strtoupper($environment . &#39;_DB_USERNAME&#39;)));<br>    putenv(&#39;DB_PASSWORD=&#39; . env(strtoupper($environment . &#39;_DB_PASSWORD&#39;)));<br>    putenv(&#39;DB_SCHEMA=&#39; . env(strtoupper($environment . &#39;_DB_SCHEMA&#39;)));<br><br>    // Purge existing connection<br>    DB::purge(&#39;pgsql&#39;);<br>    <br>    // Reconnect with new configuration<br>    DB::reconnect(&#39;pgsql&#39;);<br>}</pre><h3>Understanding the Key Components</h3><p><strong>The role of DB::purge() :</strong></p><p>The purge() method is crucial for runtime database switching. It:</p><ul><li>Removes the existing database connection from Laravel’s connection pool</li><li>Forces Laravel to create a fresh connection with the new configuration</li><li>Prevents issues with stale connections</li></ul><p><strong>Environment Variables Management</strong></p><pre>// .env example<br>LOCAL_DB_HOST=localhost<br>LOCAL_DB_DATABASE=local_db<br>LOCAL_DB_USERNAME=local_user<br>LOCAL_DB_PASSWORD=local_password<br>LOCAL_DB_SCHEMA=local_schema<br><br>DEV_DB_HOST=dev.example.com<br>DEV_DB_DATABASE=dev_db<br>DEV_DB_USERNAME=dev_user<br>DEV_DB_PASSWORD=dev_password<br>DEV_DB_SCHEMA=dev_schema<br><br>STAGE_DB_HOST=stage.example.com<br>STAGE_DB_DATABASE=stage_db<br>STAGE_DB_USERNAME=stage_user<br>STAGE_DB_PASSWORD=stage_password<br>STAGE_DB_SCHEMA=stage_SCHEMA</pre><h3>Conclusion</h3><p>Runtime database configuration in Laravel offers powerful flexibility for managing multiple database environments. By understanding the underlying mechanisms and following best practices, you can implement robust and secure database switching in your applications.</p><p>If you have any questions or suggestions, please do let me know by putting comments on this post. Thanks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1670f05066c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cashfree Laravel Payment Gateway Integration]]></title>
            <link>https://aashutosh636.medium.com/cashfree-laravel-payment-gateway-integration-ce0ae96df3d1?source=rss-e7b6f624554e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce0ae96df3d1</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel-framework]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[payment-gateway]]></category>
            <category><![CDATA[cashfree-payment]]></category>
            <dc:creator><![CDATA[Aashutosh]]></dc:creator>
            <pubDate>Tue, 18 Apr 2023 12:42:39 GMT</pubDate>
            <atom:updated>2023-04-18T12:42:39.804Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Head Image" src="https://cdn-images-1.medium.com/max/1024/1*2A5g-Xm66MFosMOt7jstxw.png" /></figure><p>In Ecommerce applications, we have encountered with Payment Processing Module. In this tutorial, we will be covering how you can integrate <strong>Cashfree Payment Gateway</strong> and <strong>Pay for an order </strong>in your application.</p><p>Requirements:</p><ol><li>PHP version should be 7.0 or greater</li><li>Laravel version should be 5.6* or greater</li><li>Cashfree Account</li></ol><p>Steps to Proceed:</p><ol><li>Create new laravel project using composer. ( I am assuming that you have basic knowledge of Composer Package Manager.)</li></ol><pre>composer require loveycom/cashfree</pre><p>2. Open config/app.php and add the following line to providers array</p><pre>LoveyCom\CashFree\CashFreeServiceProvider::class,</pre><p>3. Run the command below to publish the package config file, i.e, config/cashfree.php</p><pre>php artisan vendor:publish</pre><p>4. Paste APP_ID and SECRET_KEY in config/cashfree.php</p><pre>&lt;?php<br><br>return [<br>    //These are for the Marketplace<br>    &#39;appID&#39; =&gt; env(&#39;APP_ID&#39;),<br>    &#39;secretKey&#39; =&gt; env(&#39;SECRET_KEY&#39;),<br>    &#39;testURL&#39; =&gt; &#39;https://ces-gamma.cashfree.com&#39;,<br>    &#39;prodURL&#39; =&gt; &#39;https://ces-api.cashfree.com&#39;,<br>    &#39;maxReturn&#39; =&gt; 100, //this is for request pagination<br>    &#39;isLive&#39; =&gt; false,<br><br>    //For the PaymentGateway.<br>    &#39;PG&#39; =&gt; [<br>        &#39;appID&#39; =&gt; env(&#39;APP_ID&#39;),<br>        &#39;secretKey&#39; =&gt; env(&#39;SECRET_KEY&#39;),<br>        &#39;testURL&#39; =&gt; &#39;https://test.cashfree.com&#39;,<br>        &#39;prodURL&#39; =&gt; &#39;https://api.cashfree.com&#39;,<br>        &#39;isLive&#39; =&gt; false<br>    ]<br>];</pre><blockquote>APP_ID and SECRET_KEY can be generated by logging into cashfree developers account.</blockquote><p>5. Add following route in Routes/web.php</p><pre>use App\Http\Controllers\PaymentController;<br><br>Route::get(&#39;order/process&#39;, [PaymentController::class,&#39;orderProcess&#39;])-&gt;name(&#39;order.process&#39;);<br>Route::post(&#39;order/status&#39;, [PaymentController::class,&#39;orderStatus&#39;])-&gt;name(&#39;order.status&#39;);</pre><p>6. In app/Http/Middleware/VerifyCsrfToken.php, append the <strong>‘order/status’</strong> path in $except array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*doZtv6SBy2bEo74Xy03N6A.png" /><figcaption>ignore csrf request on route</figcaption></figure><p>7. Create a new controller which will handle payments.</p><pre>php artisan make:controller PaymentController</pre><p>8. Import the class.</p><pre>use LoveyCom\CashFree\PaymentGateway\Order;</pre><p>9. Inside PaymentController, create function which will process payments.</p><pre>public function orderProcess()<br>    {<br>        //instantiate the class<br>        $order = new Order();<br>        //prepare the order details<br>        //NOTE: Prepare a route for returnUrl and notifyUrl (something like a webhook). However, if you have webhook setup in your cashfree dashboard, no need for notifyUrl. But if notifyUrl is set, it will be called instead.<br>        $od[&quot;orderId&quot;] = &quot;ORDER-&quot;.rand(1000,9999);<br>        $od[&quot;orderAmount&quot;] = 25;<br>        $od[&quot;orderNote&quot;] = &quot;Payment_Description_here&quot;;<br>        $od[&quot;customerPhone&quot;] = &quot;your_mobile&quot;;<br>        $od[&quot;customerName&quot;] = &quot;your_name&quot;;<br>        $od[&quot;customerEmail&quot;] = &quot;your@email.com&quot;;<br>        $od[&quot;returnUrl&quot;] = route(&#39;order.status&#39;);<br>        //call the create method<br>        $order-&gt;create($od);<br>        //get the payment link of this order for your customer<br>        $link = $order-&gt;getLink($od[&#39;orderId&#39;]);<br>        return redirect()-&gt;away($link-&gt;paymentLink);<br>    }</pre><p>10. This will redirect to the payment gateway page. Example:</p><figure><img alt="Cashfree Payment Gateway" src="https://cdn-images-1.medium.com/max/1024/1*3HHVnOD7bsHP62pWW4giIA.png" /></figure><p>11. Create a blade file, and name it as ‘status.blade.php’.</p><pre>&lt;!doctype html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt;<br>    &lt;!-- Required meta tags --&gt;<br>    &lt;meta charset=&quot;utf-8&quot;&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, shrink-to-fit=no&quot;&gt;<br><br>    &lt;!-- Bootstrap CSS --&gt;<br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css&quot; integrity=&quot;sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T&quot; crossorigin=&quot;anonymous&quot;&gt;<br><br>    &lt;title&gt;Payment {{ $req-&gt;txStatus }}&lt;/title&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;div class=&quot;container mt-2&quot;&gt;<br>        &lt;div class=&quot;card card-primary&quot;&gt;<br>            &lt;div class=&quot;card-header&quot;&gt;<br><br>                &lt;div class=&quot;card-title&quot;&gt;Card Title&lt;/div&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;card-body&quot;&gt;<br>                &lt;div class=&quot;row&quot;&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;Order Amount&lt;/div&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;{{ $req-&gt;orderAmount }}&lt;/div&gt;<br>                &lt;/div&gt;<br>                &lt;div class=&quot;row&quot;&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;Order ID&lt;/div&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;{{ $req-&gt;orderId }}&lt;/div&gt;<br>                &lt;/div&gt;<br>                &lt;div class=&quot;row&quot;&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;Payment Mode&lt;/div&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;{{ $req-&gt;paymentMode }}&lt;/div&gt;<br>                &lt;/div&gt;<br>                &lt;div class=&quot;row&quot;&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;Reference ID&lt;/div&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;{{ $req-&gt;referenceId }}&lt;/div&gt;<br>                &lt;/div&gt;<br>                &lt;div class=&quot;row&quot;&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;Signature&lt;/div&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;{{ $req-&gt;signature }}&lt;/div&gt;<br>                &lt;/div&gt;<br>                &lt;div class=&quot;row&quot;&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;Txn Message&lt;/div&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;{{ $req-&gt;txMsg }}&lt;/div&gt;<br>                &lt;/div&gt;<br>                &lt;div class=&quot;row&quot;&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;Txn Status&lt;/div&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;{{ $req-&gt;txStatus }}&lt;/div&gt;<br>                &lt;/div&gt;<br>                &lt;div class=&quot;row&quot;&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;Txn Time&lt;/div&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;{{ $req-&gt;txTime }}&lt;/div&gt;<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br><br>    &lt;!-- Optional JavaScript --&gt;<br>    &lt;!-- jQuery first, then Popper.js, then Bootstrap JS --&gt;<br>    &lt;script src=&quot;https://code.jquery.com/jquery-3.3.1.slim.min.js&quot; integrity=&quot;sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;<br>    &lt;script src=&quot;https://cdn.jsdelivr.net/npm/popper.js@1.14.7/dist/umd/popper.min.js&quot; integrity=&quot;sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;<br>    &lt;script src=&quot;https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.min.js&quot; integrity=&quot;sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>12. After paying on gateway, it will redirect you to the return url which you have specified in step 7.</p><figure><img alt="Cashfree payment callback" src="https://cdn-images-1.medium.com/max/1024/1*uy_fORq5nJbLF-gwRN9fPQ.png" /></figure><p>Congratulations!!! You have succesfully integrated Cashfree Payment Gateway. In case of any query, you can contact me at <strong><em>ashutoshchauhan129@gmail.com</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce0ae96df3d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>