<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Khanh Nguyen</title>
    <description>The latest articles on DEV Community by Khanh Nguyen (@fateless966).</description>
    <link>https://dev.to/fateless966</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4179407%2F695e15ef-a138-4755-a64a-cf5e923100df.png</url>
      <title>DEV Community: Khanh Nguyen</title>
      <link>https://dev.to/fateless966</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fateless966"/>
    <language>en</language>
    <item>
      <title>I Built a Mini-Shop Where You Pay With Solana — No Smart Contract Required</title>
      <dc:creator>Khanh Nguyen</dc:creator>
      <pubDate>Tue, 01 Dec 2026 01:14:57 +0000</pubDate>
      <link>https://dev.to/fateless966/i-built-a-mini-shop-where-you-pay-with-solana-no-smart-contract-required-30e6</link>
      <guid>https://dev.to/fateless966/i-built-a-mini-shop-where-you-pay-with-solana-no-smart-contract-required-30e6</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the MLH x DEV Writing Challenge&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Solana Pay Mini-Shop&lt;/strong&gt; is a tiny online shop where you pick an item, connect your Phantom wallet, and pay with Solana Pay — on DevNet, so no real SOL ever moves.&lt;/p&gt;

&lt;p&gt;I built it solo in one weekend for the &lt;strong&gt;MLH Solana Hackathon (7–8 Nov 2026)&lt;/strong&gt;, in the &lt;strong&gt;Best Beginner&lt;/strong&gt; track. The idea was deliberately small: I wanted to learn how crypto payments actually feel for a normal buyer, without writing a custom Anchor program first.&lt;/p&gt;

&lt;p&gt;The shop sells four things:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Price (DevNet SOL)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Coffee&lt;/td&gt;
&lt;td&gt;0.05&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sticker Pack&lt;/td&gt;
&lt;td&gt;0.02&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Notebook&lt;/td&gt;
&lt;td&gt;0.10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Solana Logo T-Shirt&lt;/td&gt;
&lt;td&gt;0.25&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The whole flow is: pick an item → connect Phantom → approve the payment → see &lt;code&gt;PAYMENT CONFIRMED&lt;/code&gt; → verify the transaction on Solana Explorer. That confirmation screen is the whole point of the project — a payment you can actually check on-chain, instead of a "success" message you have to take on trust.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stack:&lt;/strong&gt; Next.js 16, &lt;code&gt;@solana/pay&lt;/code&gt;, &lt;code&gt;@solana/web3.js&lt;/code&gt;, Solana wallet-adapter, Tailwind CSS 4, deployed on Vercel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live shop:&lt;/strong&gt; &lt;a href="https://solana-pay-mini-shop.vercel.app/" rel="noopener noreferrer"&gt;https://solana-pay-mini-shop.vercel.app/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code:&lt;/strong&gt; &lt;a href="https://github.com/fateless966-lgtm/solana-pay-mini-shop" rel="noopener noreferrer"&gt;https://github.com/fateless966-lgtm/solana-pay-mini-shop&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Demo video (45 seconds):&lt;/strong&gt; &lt;a href="https://youtu.be/RlSUZTH2mtQ" rel="noopener noreferrer"&gt;https://youtu.be/RlSUZTH2mtQ&lt;/a&gt; — buying the T-shirt for 0.25 SOL&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try it yourself: switch Phantom to &lt;strong&gt;DevNet&lt;/strong&gt;, get some test SOL from a DevNet faucet, and buy the Coffee. Nothing real is at stake — that's exactly why DevNet is the right place to learn this.&lt;/p&gt;

&lt;h2&gt;
  
  
  Partner Technologies
&lt;/h2&gt;

&lt;p&gt;The project is built on &lt;strong&gt;Solana Pay&lt;/strong&gt; and the &lt;strong&gt;Solana&lt;/strong&gt; DevNet, with &lt;strong&gt;Vercel&lt;/strong&gt; for hosting:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Solana Pay (&lt;code&gt;@solana/pay&lt;/code&gt;)&lt;/strong&gt; does the heavy lifting. It builds the payment request (recipient, amount, reference, memo) and turns it into something a wallet can approve in one tap. I didn't write a program or a backend payment API — the chain is the backend.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Solana wallet-adapter&lt;/strong&gt; handles the Phantom connection, so the shop never touches a private key or seed phrase. The wallet signs, the user approves, the shop only watches for the result.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Solana Explorer / DevNet RPC&lt;/strong&gt; is how I verified payments instead of trusting my own UI. Every confirmed purchase in the demo was checked against DevNet, not just against a green banner in the app.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vercel&lt;/strong&gt; hosts the Next.js shop, so the demo link in this post is the exact code in the repo — no "works on my machine" version.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What surprised me: for a simple shop, you genuinely don't need a smart contract. Solana Pay's transfer request plus on-chain verification is enough, and it's a much better first step into Solana than jumping straight into Anchor.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hackathon Experience
&lt;/h2&gt;

&lt;p&gt;This was my first Solana hackathon, and I went in solo as a beginner — which shaped every decision. I picked the smallest idea I could actually finish and demo in a weekend, instead of the most impressive one.&lt;/p&gt;

&lt;p&gt;The most useful bug of the weekend happened early: my first Sticker Pack test payment failed, and the reason was embarrassingly simple — the buyer wallet and the merchant wallet were the same wallet. I was paying myself. Splitting them into two wallets (Phantom as the buyer, a separate CLI wallet as the merchant) fixed it immediately, and the payment confirmed for 0.02 SOL.&lt;/p&gt;

&lt;p&gt;That one failure taught me more than the happy path did: in crypto payments, &lt;em&gt;who&lt;/em&gt; is on each side of the transaction matters as much as the amount, and testing with two real wallets is not optional.&lt;/p&gt;

&lt;p&gt;I submitted the project on MLH Challenges at 01:31 on Sunday 8 November, ticking Top 3 Overall and Best Beginner, and tested the live Vercel link the same afternoon by buying a Coffee for 0.05 SOL — confirmed on DevNet.&lt;/p&gt;

&lt;p&gt;What I'd do next: add an order history page that reads past payments from the chain (so the shop can show what you bought without a database), and try the same flow on mainnet with a tiny real amount once I'm confident in the verification step.&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Details
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Event:&lt;/strong&gt; MLH Solana Hackathon, online, 7–8 Nov 2026 — solo, Best Beginner track&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Status:&lt;/strong&gt; submitted on MLH Challenges, 8 Nov 2026; winners not yet announced at the time of writing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Network:&lt;/strong&gt; Solana DevNet only — no real funds involved&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>mlhacks</category>
      <category>solana</category>
      <category>web3</category>
      <category>kiro</category>
    </item>
  </channel>
</rss>
