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
3535764f
Commit
3535764f
authored
Apr 06, 2026
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleared console
parent
846560d4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
20 deletions
+4
-20
FingerprintLogger.tsx
src/components/FingerprintLogger.tsx
+1
-1
FortPay.tsx
...Dashboard/buyCoins/buyCoinSinlgeGame/checkout/FortPay.tsx
+2
-15
baseQuery.ts
src/services/baseQuery.ts
+1
-4
No files found.
src/components/FingerprintLogger.tsx
View file @
3535764f
...
...
@@ -22,7 +22,7 @@ function handleLoad() {
window
.
Profiling
.
fingerprint
()
.
then
((
response
)
=>
{
const
fp
=
response
.
request_id_provider_1
||
undefined
;
console
.
log
(
"Fingerprint request_id_provider_1:"
,
fp
);
//
console.log("Fingerprint request_id_provider_1:", fp);
if
(
fp
)
{
localStorage
.
setItem
(
STORAGE_KEY
,
fp
);
setGlobalDeviceFingerprint
(
fp
);
...
...
src/components/pages/dashboard/userDashboard/buyCoins/buyCoinSinlgeGame/checkout/FortPay.tsx
View file @
3535764f
...
...
@@ -68,7 +68,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type:
setCardTouched
(
true
);
const
allCardValid
=
cardValidity
.
ccnumber
&&
cardValidity
.
ccexp
&&
cardValidity
.
cvv
;
if
(
!
allCardValid
)
return
;
console
.
log
(
'All fields valid, starting CollectJS payment request'
);
if
(
typeof
window
!==
'undefined'
&&
window
.
CollectJS
)
{
window
.
CollectJS
.
startPaymentRequest
();
}
...
...
@@ -106,25 +106,12 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type:
exp
:
response
.
card
.
exp
,
number
:
response
.
card
.
number
,
hash
:
response
.
card
.
hash
,
status
:
"success"
,
}).
unwrap
();
// Backup auth before redirecting to success page
backupAuthToCookies
();
router
.
push
(
`/buy-coins/
${
id
}
/success`
);
}
catch
(
e
:
any
)
{
await
payViaFortPay
({
id
,
amount
,
type
:
type
as
PaymentModeProps
,
payment_token
:
response
.
token
,
bin
:
response
.
card
.
bin
,
exp
:
response
.
card
.
exp
,
number
:
response
.
card
.
number
,
hash
:
response
.
card
.
hash
,
status
:
"failed"
,
}).
unwrap
()
console
.
error
(
'Payment error:'
,
e
);
dispatch
(
showToast
({
message
:
e
?.
data
?.
message
||
'Unable to deposit'
,
...
...
src/services/baseQuery.ts
View file @
3535764f
...
...
@@ -30,10 +30,7 @@ export const baseQuery = fetchBaseQuery({
if
(
globalDeviceFingerprint
)
{
headers
.
set
(
"X-Device-Fingerprint"
,
globalDeviceFingerprint
);
}
console
.
log
(
"📡 Preparing headers with device info:"
,
{
"X-Device-Id"
:
globalDeviceId
,
"X-Device-Fingerprint"
:
globalDeviceFingerprint
});
if
(
token
)
{
headers
.
set
(
"Authorization"
,
`Bearer
${
token
}
`
);
...
...
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