feat(api-gateway): integrate official Adam Eehan verified Paytm UPI QR & 1-click mobile UPI intent
This commit is contained in:
1 parent
fadd1d93e4
commit
98ea35d762
3 files changed
+47
-37
No files matched your search
@@ -396,9 +396,9 @@
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- Razorpay / UPI Modal for Paid Flagship Models -->
|
||||
<div id="api-payment-modal" class="fixed inset-0 z-50 flex items-center justify-center hidden bg-black/80 backdrop-blur-sm p-4 transition-all duration-300 w-full overflow-x-hidden">
|
||||
<div class="bg-slate-900 border border-blue-500/40 rounded-3xl w-full max-w-md shadow-2xl overflow-hidden text-white animate-scale max-h-[90vh] overflow-y-auto">
|
||||
<!-- Official Verified UPI Payment Modal for Paid Flagship Models -->
|
||||
<div id="api-payment-modal" class="fixed inset-0 z-50 flex items-center justify-center hidden bg-black/85 backdrop-blur-md p-4 transition-all duration-300 w-full overflow-x-hidden">
|
||||
<div class="bg-gradient-to-b from-slate-900 to-[#071126] border border-blue-500/40 rounded-3xl w-full max-w-md shadow-2xl overflow-hidden text-white animate-scale max-h-[92vh] overflow-y-auto">
|
||||
<!-- Modal Header -->
|
||||
<div class="bg-gradient-to-r from-blue-700 via-[#0a2342] to-slate-900 p-4 sm:p-5 flex items-center justify-between border-b border-blue-500/20">
|
||||
<div class="flex items-center gap-3">
|
||||
@@ -417,6 +417,7 @@
|
||||
|
||||
<!-- Modal Body -->
|
||||
<div class="p-4 sm:p-5 space-y-3.5">
|
||||
<!-- Price Banner -->
|
||||
<div class="bg-slate-950 p-3.5 rounded-2xl border border-slate-800 flex items-center justify-between">
|
||||
<div>
|
||||
<span class="text-[10px] text-slate-400 block uppercase font-semibold">Monthly Subscription</span>
|
||||
@@ -428,56 +429,63 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Razorpay Standard Button -->
|
||||
<button
|
||||
type="button"
|
||||
id="pay-razorpay-btn"
|
||||
onclick="initiateRazorpayPayment()"
|
||||
class="w-full py-3 px-4 bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-500 hover:to-indigo-500 text-white font-bold text-xs sm:text-sm rounded-xl shadow-lg transition flex items-center justify-center gap-2 active:scale-98"
|
||||
<!-- 1-Click Pay with UPI App (GPay, PhonePe, Paytm) -->
|
||||
<a
|
||||
id="direct-upi-btn"
|
||||
href="upi://pay?pa=8921584368@ptyes&pn=Adam%20Eehan&am=499&cu=INR&tn=Aira%20AI%20API%20Subscription"
|
||||
class="w-full py-3 px-4 bg-gradient-to-r from-emerald-600 via-teal-600 to-cyan-600 hover:from-emerald-500 hover:to-cyan-500 text-white font-bold text-xs sm:text-sm rounded-xl shadow-lg transition flex items-center justify-center gap-2 active:scale-98"
|
||||
>
|
||||
<i class="fas fa-credit-card"></i> Pay with Razorpay (UPI, Cards, NetBanking)
|
||||
</button>
|
||||
<i class="fas fa-mobile-screen-button text-sm"></i>
|
||||
<span>Pay via UPI App (GPay / PhonePe / Paytm)</span>
|
||||
</a>
|
||||
|
||||
<!-- Divider -->
|
||||
<div class="flex items-center gap-3 my-1 text-slate-500 text-xs">
|
||||
<div class="flex-1 h-px bg-slate-800"></div>
|
||||
<span class="text-[10px]">OR PAY DIRECT VIA UPI</span>
|
||||
<div class="flex-1 h-px bg-slate-800"></div>
|
||||
</div>
|
||||
<!-- Official QR Code Card -->
|
||||
<div class="bg-slate-950 p-4 rounded-2xl border border-slate-800 space-y-2.5 text-center">
|
||||
<div class="text-[11px] text-slate-300 font-medium">
|
||||
Or Scan Official Verified QR Code:
|
||||
</div>
|
||||
<div class="inline-block p-1 bg-white rounded-2xl shadow-xl border border-blue-500/30">
|
||||
<img src="assets/upi-qr.jpg" alt="Adam Eehan Official Verified Paytm UPI QR" class="w-48 sm:w-56 h-auto mx-auto rounded-xl object-contain" />
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-center gap-1.5 text-xs text-slate-200 mt-1">
|
||||
<span class="font-bold text-white">Adam Eehan</span>
|
||||
<span class="text-[10px] bg-blue-500/20 text-blue-400 border border-blue-400/40 px-2 py-0.5 rounded-full font-semibold">
|
||||
<i class="fas fa-check-circle text-blue-400 text-[10px]"></i> Verified Merchant
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- Direct UPI Option -->
|
||||
<div class="bg-slate-950 p-3.5 rounded-2xl border border-slate-800 space-y-2.5 text-center">
|
||||
<div class="text-[11px] text-slate-300">
|
||||
Scan QR or Pay to Official Founder UPI ID:
|
||||
</div>
|
||||
<div class="inline-block p-1.5 bg-white rounded-xl shadow-md">
|
||||
<img id="upi-qr-image" src="https://api.qrserver.com/v1/create-qr-code/?size=130x130&data=upi%3A%2F%2Fpay%3Fpa%3Dadameehan34%40okaxis%26pn%3DAira%2520Group%2520of%2520Technology%26am%3D499%26cu%3DINR" alt="UPI QR Code" class="w-28 h-28 object-contain" />
|
||||
</div>
|
||||
<div class="flex items-center justify-center gap-2">
|
||||
<code class="px-2.5 py-1 rounded-lg bg-slate-900 border border-slate-700 text-[11px] font-mono text-cyan-300 select-all">adameehan34@okaxis</code>
|
||||
<button type="button" onclick="navigator.clipboard.writeText('adameehan34@okaxis'); alert('UPI ID copied!');" class="text-xs text-slate-400 hover:text-white p-1" title="Copy UPI">
|
||||
<div class="flex items-center justify-center gap-2 mt-1">
|
||||
<code class="px-2.5 py-1 rounded-lg bg-slate-900 border border-slate-700 text-xs font-mono text-cyan-300 font-bold select-all">8921584368@ptyes</code>
|
||||
<button type="button" onclick="navigator.clipboard.writeText('8921584368@ptyes'); alert('UPI ID (8921584368@ptyes) copied to clipboard!');" class="text-xs text-slate-400 hover:text-white p-1" title="Copy UPI">
|
||||
<i class="far fa-copy"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="pt-1 text-left">
|
||||
<label class="block text-[10px] font-semibold text-slate-400 mb-1">Enter UPI Reference / UTR Number after payment:</label>
|
||||
<!-- Step 2: Enter Transaction ID / UTR -->
|
||||
<div class="pt-2 text-left border-t border-slate-800/80">
|
||||
<label class="block text-[10px] font-semibold text-slate-300 mb-1">
|
||||
Enter 12-digit UPI Reference / UTR Number after payment:
|
||||
</label>
|
||||
<div class="flex gap-2">
|
||||
<input
|
||||
type="text"
|
||||
id="upi-ref-input"
|
||||
placeholder="e.g. 431289104829 or Razorpay ID"
|
||||
class="flex-1 min-w-0 px-3 py-2 bg-slate-900 border border-slate-700 rounded-lg text-xs text-white placeholder-slate-500 focus:outline-none focus:ring-1 focus:ring-blue-500"
|
||||
placeholder="e.g. 431289104829 or Trans ID"
|
||||
class="flex-1 min-w-0 px-3 py-2 bg-slate-900 border border-slate-700 rounded-lg text-xs text-white placeholder-slate-500 focus:outline-none focus:ring-1 focus:ring-blue-500 font-mono"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
onclick="submitUpiPaymentVerification()"
|
||||
id="upi-confirm-btn"
|
||||
class="px-3 py-2 bg-emerald-600 hover:bg-emerald-500 text-white font-bold text-xs rounded-lg transition whitespace-nowrap"
|
||||
class="px-3.5 py-2 bg-emerald-600 hover:bg-emerald-500 text-white font-bold text-xs rounded-lg transition whitespace-nowrap active:scale-95 shadow-md flex items-center gap-1"
|
||||
>
|
||||
Activate Key
|
||||
<i class="fas fa-key text-[10px]"></i> <span>Activate Key</span>
|
||||
</button>
|
||||
</div>
|
||||
<p class="text-[10px] text-slate-400 mt-1">
|
||||
Key is immediately generated & delivered to your verified email.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -823,8 +831,10 @@
|
||||
document.getElementById("payment-modal-model-name").textContent = `${info.label} Monthly Subscription`;
|
||||
document.getElementById("payment-modal-price").innerHTML = `₹${info.price}`;
|
||||
|
||||
const qrUrl = `https://api.qrserver.com/v1/create-qr-code/?size=130x130&data=${encodeURIComponent(`upi://pay?pa=adameehan34@okaxis&pn=Aira Group of Technology&am=${info.price}&cu=INR`)}`;
|
||||
document.getElementById("upi-qr-image").src = qrUrl;
|
||||
const upiBtn = document.getElementById("direct-upi-btn");
|
||||
if (upiBtn) {
|
||||
upiBtn.href = `upi://pay?pa=8921584368@ptyes&pn=Adam%20Eehan&am=${info.price}&cu=INR&tn=Aira%20API%20Subscription%20${encodeURIComponent(info.label)}`;
|
||||
}
|
||||
|
||||
document.getElementById("api-payment-modal").classList.remove("hidden");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user