Skip to content

Commit a80f9a4

Browse files
committed
Added PhonePe as a payment gateway and fixed payment gateway selection
1 parent 8de42c6 commit a80f9a4

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

frontend/src/pages/public/RegistrationPage.jsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ export default function RegistrationPage() {
362362
<div className="flex gap-3">
363363
<label
364364
className={`flex-1 flex items-center gap-3 p-4 rounded-xl border cursor-pointer transition-all ${paymentGateway === 'RAZORPAY'
365-
? 'bg-[#E23744]/10 border-[#E23744]/50 text-white'
366-
: 'bg-[#09090b]/50 border-white/10 text-gray-400 hover:border-white/20'
365+
? 'bg-[#E23744]/10 border-[#E23744]/50 text-white'
366+
: 'bg-[#09090b]/50 border-white/10 text-gray-400 hover:border-white/20'
367367
}`}
368368
>
369369
<input
@@ -378,6 +378,11 @@ export default function RegistrationPage() {
378378
}`}>
379379
{paymentGateway === 'RAZORPAY' && <div className="w-2 h-2 rounded-full bg-[#E23744]" />}
380380
</div>
381+
{/* Razorpay Logo */}
382+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" className="flex-shrink-0">
383+
<rect width="24" height="24" rx="4" fill="#072654" />
384+
<path d="M7.5 6L10.5 18H13.5L16.5 6H13.5L12 12L10.5 6H7.5Z" fill="white" />
385+
</svg>
381386
<div>
382387
<div className="font-medium">Razorpay</div>
383388
<div className="text-xs text-gray-500">UPI, Cards, Netbanking</div>
@@ -386,8 +391,8 @@ export default function RegistrationPage() {
386391

387392
<label
388393
className={`flex-1 flex items-center gap-3 p-4 rounded-xl border cursor-pointer transition-all ${paymentGateway === 'PHONEPE'
389-
? 'bg-purple-500/10 border-purple-500/50 text-white'
390-
: 'bg-[#09090b]/50 border-white/10 text-gray-400 hover:border-white/20'
394+
? 'bg-purple-500/10 border-purple-500/50 text-white'
395+
: 'bg-[#09090b]/50 border-white/10 text-gray-400 hover:border-white/20'
391396
}`}
392397
>
393398
<input
@@ -402,6 +407,12 @@ export default function RegistrationPage() {
402407
}`}>
403408
{paymentGateway === 'PHONEPE' && <div className="w-2 h-2 rounded-full bg-purple-500" />}
404409
</div>
410+
{/* PhonePe Logo */}
411+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" className="flex-shrink-0">
412+
<rect width="24" height="24" rx="4" fill="#5F259F" />
413+
<path d="M12 4C14.5 4 16.5 6 16.5 8.5V12H14V8.5C14 7.12 12.88 6 11.5 6C10.12 6 9 7.12 9 8.5V16H6.5V8.5C6.5 6 8.5 4 11 4H12Z" fill="white" />
414+
<circle cx="12" cy="17" r="2" fill="white" />
415+
</svg>
405416
<div>
406417
<div className="font-medium">PhonePe</div>
407418
<div className="text-xs text-gray-500">UPI, Wallet</div>

0 commit comments

Comments
 (0)