Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sweepstake
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arjun Jhukal
sweepstake
Commits
b43c4cf8
Commit
b43c4cf8
authored
Apr 08, 2026
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the verif process for the pre registerd user
parent
6092c896
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
+22
-3
PaymentModal.tsx
src/components/molecules/PaymentModal.tsx
+21
-3
index.tsx
...erDashboard/buyCoins/buyCoinSinlgeGame/checkout/index.tsx
+1
-0
No files found.
src/components/molecules/PaymentModal.tsx
View file @
b43c4cf8
...
...
@@ -20,6 +20,7 @@ export interface PaymentModalProps {
maxWidth
?:
'xs'
|
'sm'
|
'md'
|
'lg'
|
'xl'
;
height
?:
number
;
isRegistrationFlow
?:
boolean
;
isPurchaseFlow
?:
boolean
;
}
export
interface
PaymentError
{
...
...
@@ -39,17 +40,28 @@ export default function PaymentModal({
title
=
'Processing Payment'
,
maxWidth
=
'sm'
,
height
=
600
,
isRegistrationFlow
=
false
isRegistrationFlow
=
false
,
isPurchaseFlow
=
false
}:
PaymentModalProps
)
{
const
iframeRef
=
useRef
<
HTMLIFrameElement
>
(
null
);
const
[
isLoading
,
setIsLoading
]
=
useState
(
true
);
const
[
error
,
setError
]
=
useState
<
PaymentError
|
null
>
(
null
);
const
[
hasDetectedSuccess
,
setHasDetectedSuccess
]
=
useState
(
false
);
const
[
attention
,
setAttention
]
=
useState
(
false
);
const
route
=
useRouter
();
const
dispatch
=
useAppDispatch
();
const
access_token
=
useAppSelector
((
state
)
=>
state
.
auth
.
access_token
);
const
[
fetchMe
]
=
useLazyGetMeQuery
();
const
handleDialogClose
=
(
_
:
unknown
,
reason
?:
string
)
=>
{
if
(
!
isPurchaseFlow
&&
reason
===
'backdropClick'
)
{
setAttention
(
true
);
setTimeout
(()
=>
setAttention
(
false
),
600
);
return
;
}
onClose
();
};
const
syncUserFromServer
=
useCallback
(
async
()
=>
{
try
{
...
...
@@ -210,14 +222,20 @@ export default function PaymentModal({
return
(
<
Dialog
open=
{
isOpen
}
onClose=
{
on
Close
}
onClose=
{
handleDialog
Close
}
maxWidth=
{
maxWidth
}
fullWidth
PaperProps=
{
{
sx
:
{
borderRadius
:
'12px'
,
background
:
'linear-gradient(135deg, rgba(0,0,0,0.8), rgba(184,1,192,0.1))'
,
backdropFilter
:
'blur(10px)'
backdropFilter
:
'blur(10px)'
,
animation
:
attention
?
'blink 0.3s ease-in-out 2'
:
'none'
,
'@keyframes blink'
:
{
'0%'
:
{
transform
:
'scale(1)'
,
boxShadow
:
'0 0 0px rgba(184,1,192,0.0)'
},
'50%'
:
{
transform
:
'scale(1.02)'
,
boxShadow
:
'0 0 20px rgba(184,1,192,0.8)'
},
'100%'
:
{
transform
:
'scale(1)'
,
boxShadow
:
'0 0 0px rgba(184,1,192,0.0)'
},
}
}
}
}
>
...
...
src/components/pages/dashboard/userDashboard/buyCoins/buyCoinSinlgeGame/checkout/index.tsx
View file @
b43c4cf8
...
...
@@ -191,6 +191,7 @@ export default function CheckoutPage({ amount, slug, bonus }: {
}
}
title=
"Processing Payment"
successMessage=
"success"
isPurchaseFlow=
{
true
}
/>
)
}
</
section
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment