<?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 Arjun Adhikari on Medium]]></title>
        <description><![CDATA[Stories by Arjun Adhikari on Medium]]></description>
        <link>https://medium.com/@arjun6107?source=rss-bacbe129751d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KVGrJtb6UDwFae7fYRhKDg.jpeg</url>
            <title>Stories by Arjun Adhikari on Medium</title>
            <link>https://medium.com/@arjun6107?source=rss-bacbe129751d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 15:12:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arjun6107/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[The Best Way To Integrate Braintree for processing Credit Card Payment.]]></title>
            <link>https://medium.com/@arjun6107/how-to-integrate-multiple-international-gateway-which-is-hassel-free-to-integrate-f81dfe6412d6?source=rss-bacbe129751d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f81dfe6412d6</guid>
            <category><![CDATA[google-pay-payment]]></category>
            <category><![CDATA[braintree-payment-gateway]]></category>
            <category><![CDATA[add-payment-gateway]]></category>
            <category><![CDATA[credit-card-paymnt-gatewy]]></category>
            <category><![CDATA[paypal-payment-gateway]]></category>
            <dc:creator><![CDATA[Arjun Adhikari]]></dc:creator>
            <pubDate>Sun, 05 Jul 2026 17:50:06 GMT</pubDate>
            <atom:updated>2026-08-17T02:54:48.544Z</atom:updated>
            <content:encoded><![CDATA[<p>Since this is an ai era, you will get better examples, visuals and the well rooted architecture than what I will provide in this blog. But the main Questionair is, it takes more time to figure out the best and mainly used flow in the production grade applications written with experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*f4DoHg1RTSeJY29rz6OCQA.png" /></figure><p><strong>My insights on payment gateway integration to all kinds of visa and master cards.</strong></p><p>Without futher delay, I provide you my insights regarding the implementation of braintree for hasselled free card payment method.</p><p>So, talking about BrainTree, it is a global payment processing service which is hassel free to use, paypal owns it as a enterprise solution for all kinds of payment gateways.</p><h4>In what scenario I have used braintree?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/0*zs2NSD8uXI3xYXC3" /></figure><p>I was working in an application which frontend is in react framework next js and backend is in nodejs.<br>I have integrated credit card processing payment gateway in website,<br><em>(All type of visa cards and master cards.)</em></p><p><strong>Here are the steps to follow and I will guide you through out the process of what I have done.<br></strong>Before starting to learn how to integrate gateway to pay using cards. We need to be aware of some payment compilance.</p><p><strong><em>Payment Card Industry Data Security Standard (PCI DSS) compilance.</em></strong></p><p><strong>What does it define?<br></strong><em>It dictates exactly how credit card data must be protected,stored and transmitted.</em></p><p><strong>WHAT CARD DETAILS YOU MUST NEVER STORE?<br></strong><em>1) CVV/CVC<br>2) SECURITY CODE(PIN)</em></p><p><strong>For maintaining this compilance, braintree made client sdk in frontend and server sdk in backend.</strong></p><p><strong>1) Client sdk provides what &amp; how it works?<br>Drop In Ui</strong><br>Predefined form component to add card details securely into the client sdk.The client SDK securely validate the card format. After processing card details ,it returns nounce which looks like this (nonce: “3ds_abc123…”).</p><p><strong>2) How server sdk works in backend?<br></strong>In backend we do payment transaction using frontend provided nounce. After each payments through card, it also returns token which is used for doing future payments( like auto recurring subscription charges).</p><pre>//Here,the flow looks like this<br><br>Customer<br>   │<br>   │ enters card<br>   ▼<br>Braintree Client SDK / Drop-in<br>   │<br>   │ tokenize<br>   ▼<br>Payment Method Nonce<br>   │<br>   │ send to YOUR backend<br>   ▼<br>Your Express Backend<br>   │<br>   │ paymentMethodNonce + amount<br>   ▼<br>Braintree Server SDK<br>   │<br>   │ transaction.sale()<br>   ▼<br>Braintree<br>   │<br>   ├── approved → transaction ID<br>   │<br>   └── declined → error</pre><p>This is the standard I have followed to integrate payments using braintree in nodejs. For testing braintree provides sandbox account which is cloned to production features. You can test every features in sandbox, make sure to add braintree merchant details while moving to production😁.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f81dfe6412d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to containerize react application using docker.]]></title>
            <link>https://medium.com/@arjun6107/how-to-dockerized-react-application-using-docker-1401faf306f1?source=rss-bacbe129751d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1401faf306f1</guid>
            <dc:creator><![CDATA[Arjun Adhikari]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 14:22:08 GMT</pubDate>
            <atom:updated>2026-08-05T09:36:55.924Z</atom:updated>
            <content:encoded><![CDATA[<p>Here in this blog I’m going to share some insights about how to dockerized react application. I’m pretty sure that you have docker running environment in your local device and you pretty well known about how to setup react + javascript environment.</p><p>If not then here I also included the code of setting up the react environment. Use your own IDE as your choice.</p><pre>npm create vite@latest #give frontend as eg<br>cd frontend<br>npm i #Install all needed dependencies<br>npm run dev #Run react app in default 5173 port<br><br></pre><p>Step1: Create a Dockerfile in root folder. Here we have frontend as root folder so.</p><pre>cd frontend #change dir to frontend<br>touch Dockerfile #create a Dockerfile</pre><p>Step2: Dockerfile configuration copy paste it will work</p><pre><br>FROM node:22-alpine<br><br># Set the working directory<br>WORKDIR /app<br><br># Copy the file from your host to your current location<br>COPY package*.json ./<br>COPY package-lock.json ./<br><br><br># Run the command inside your image filesystem<br>RUN npm ci<br><br># Inform Docker that the container is listening on the specified port at runtime<br>EXPOSE 5173<br><br># Copy the rest of your app&#39;s source code from your host to your image filesystem<br>COPY . .<br><br># Run the specified command within the container<br>CMD [&quot;npm&quot;, &quot;run&quot;, &quot;dev&quot;]</pre><p>Step3: We have configure something in vite.config.js.</p><pre>import { defineConfig } from &quot;vite&quot;;<br>import react from &quot;@vitejs/plugin-react&quot;;<br><br>// https://vite.dev/config/<br>export default defineConfig({<br>  plugins: [react(),],<br>  server: {<br>    host: &quot;0.0.0.0&quot;, //Allow external connections<br>    port: 5173,<br>    watch: {<br>      usePolling: true, //Enable polling for Docker file watching<br>    },<br>    //Fix permission issues in Docker<br>    fs: {<br>      strict: false,<br>    },<br>  },<br>});</pre><p>This specific <strong>server configuration</strong> in your vite.config.js is needed when <strong>Dockerizing</strong> a React application primarily to ensure <strong>network accessibility</strong> and enable <strong>real-time file watching</strong> within the container environment.</p><p>Step4: Here we dockerized our react application using docker build command.</p><pre>cd frontend<br>docker build -t frontend . #Docker image is formed <br>#For working this command you are pretty sure that your docker environment is running in background.<br>docker run -p 5173:5173 frontend #running your container from frontend docker image</pre><p>Step5: Check in your browser <a href="http://localhost:5173/">http://localhost:5173</a> you will find default react app page.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1401faf306f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>