@jetthai/cuora 1.1.408 → 1.1.410-dev-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/package.json +2 -2
- package/resetGitBranch.sh +16 -16
- package/src/api/common.js +5 -0
- package/src/api/payment.js +15 -3
- package/src/machine/auth.js +14 -1
- package/src/machine/auth_otp_v3.js +7 -3
- package/src/machine/common.js +13 -1
- package/src/machine/withdraw/withdraw_manual.js +19 -16
- package/src/machine/withdraw/withdraw_manual_cash.js +23 -31
- package/src/request/request.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.410-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.410...v1.1.410-dev-1) (2026-02-04)
|
|
6
|
+
|
|
7
|
+
### [1.1.408-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.409...v1.1.408-dev-6) (2026-01-29)
|
|
8
|
+
|
|
9
|
+
### [1.1.408-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.408-dev-4...v1.1.408-dev-5) (2026-01-26)
|
|
10
|
+
|
|
11
|
+
### [1.1.408-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.408-dev-3...v1.1.408-dev-4) (2026-01-23)
|
|
12
|
+
|
|
13
|
+
### [1.1.408-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.408-dev-2...v1.1.408-dev-3) (2026-01-20)
|
|
14
|
+
|
|
15
|
+
### [1.1.408-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.408...v1.1.408-dev-2) (2026-01-16)
|
|
16
|
+
|
|
17
|
+
### [1.1.408-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.409...v1.1.408-dev-6) (2026-01-29)
|
|
18
|
+
|
|
19
|
+
### [1.1.408-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.408-dev-4...v1.1.408-dev-5) (2026-01-26)
|
|
20
|
+
|
|
21
|
+
### [1.1.408-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.408-dev-3...v1.1.408-dev-4) (2026-01-23)
|
|
22
|
+
|
|
23
|
+
### [1.1.408-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.408-dev-2...v1.1.408-dev-3) (2026-01-20)
|
|
24
|
+
|
|
25
|
+
### [1.1.408-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.408...v1.1.408-dev-2) (2026-01-16)
|
|
26
|
+
|
|
27
|
+
### [1.1.408-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.408-dev-4...v1.1.408-dev-5) (2026-01-26)
|
|
28
|
+
|
|
29
|
+
### [1.1.408-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.408-dev-3...v1.1.408-dev-4) (2026-01-23)
|
|
30
|
+
|
|
31
|
+
### [1.1.408-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.408-dev-2...v1.1.408-dev-3) (2026-01-20)
|
|
32
|
+
|
|
33
|
+
### [1.1.408-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.408-dev-1...v1.1.408-dev-2) (2026-01-16)
|
|
34
|
+
|
|
35
|
+
### [1.1.408-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.408...v1.1.408-dev-1) (2026-01-16)
|
|
36
|
+
|
|
37
|
+
### [1.1.410](https://github.com/jetthai/cuora-module/compare/v1.1.409...v1.1.410) (2026-02-02)
|
|
38
|
+
|
|
39
|
+
### [1.1.409](https://github.com/jetthai/cuora-module/compare/v1.1.408...v1.1.409) (2026-01-27)
|
|
40
|
+
|
|
5
41
|
### [1.1.408](https://github.com/jetthai/cuora-module/compare/v1.1.407...v1.1.408) (2026-01-12)
|
|
6
42
|
|
|
7
43
|
### [1.1.407](https://github.com/jetthai/cuora-module/compare/v1.1.406...v1.1.407) (2025-12-22)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetthai/cuora",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.410-dev-1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
"universal-cookie": "^4.0.4",
|
|
27
27
|
"url-join": "^4.0.1",
|
|
28
28
|
"xstate": "^4.25.0",
|
|
29
|
-
"socket.io-client": "^4.8.
|
|
29
|
+
"socket.io-client": "^4.8.3"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/resetGitBranch.sh
CHANGED
|
@@ -51,27 +51,13 @@ if [ $? -ne 0 ]; then
|
|
|
51
51
|
exit 1
|
|
52
52
|
fi
|
|
53
53
|
|
|
54
|
-
# 切換到 master
|
|
54
|
+
# 切換到 master
|
|
55
55
|
git checkout master
|
|
56
56
|
if [ $? -ne 0 ]; then
|
|
57
57
|
echo "切換到 master 分支失敗"
|
|
58
58
|
exit 1
|
|
59
59
|
fi
|
|
60
60
|
|
|
61
|
-
# 刪除本地的 qa 分支
|
|
62
|
-
git branch -D qa
|
|
63
|
-
if [ $? -ne 0 ]; then
|
|
64
|
-
echo "刪除本地 qa 分支失敗"
|
|
65
|
-
exit 1
|
|
66
|
-
fi
|
|
67
|
-
|
|
68
|
-
# 刪除遠端的 qa 分支
|
|
69
|
-
git push origin --delete qa
|
|
70
|
-
if [ $? -ne 0 ]; then
|
|
71
|
-
echo "刪除遠端 qa 分支失敗"
|
|
72
|
-
exit 1
|
|
73
|
-
fi
|
|
74
|
-
|
|
75
61
|
# 建立並切換到新的 qa 分支
|
|
76
62
|
git checkout -b qa
|
|
77
63
|
if [ $? -ne 0 ]; then
|
|
@@ -93,9 +79,23 @@ if [ $? -ne 0 ]; then
|
|
|
93
79
|
exit 1
|
|
94
80
|
fi
|
|
95
81
|
|
|
96
|
-
# 切換到 master
|
|
82
|
+
# 切換到 master
|
|
97
83
|
git checkout master
|
|
98
84
|
if [ $? -ne 0 ]; then
|
|
99
85
|
echo "切換到 master 分支失敗"
|
|
100
86
|
exit 1
|
|
87
|
+
fi
|
|
88
|
+
|
|
89
|
+
# 刪除所有已經合併到 master 分支的本地分支,除了 master 分支本身
|
|
90
|
+
git branch --merged master | grep -v "^\* master$" | grep -vE "^[* ]*(dev|qa)$" | xargs -r git branch -d
|
|
91
|
+
if [ $? -ne 0 ]; then
|
|
92
|
+
echo "刪除已合併到 master 分支的本地分支失敗"
|
|
93
|
+
exit 1
|
|
94
|
+
fi
|
|
95
|
+
|
|
96
|
+
# 刪除所有已經合併到 master 分支的遠端分支,除了 master 分支本身
|
|
97
|
+
git branch -r --merged master | grep -v "master" | grep -vE "(dev|qa)$" | sed 's/origin\///' | xargs -r -I {} git push origin --delete {}
|
|
98
|
+
if [ $? -ne 0 ]; then
|
|
99
|
+
echo "刪除已合併到 master 分支的遠端分支失敗"
|
|
100
|
+
exit 1
|
|
101
101
|
fi
|
package/src/api/common.js
CHANGED
|
@@ -7,4 +7,9 @@ export default {
|
|
|
7
7
|
getNavbar: ({ appSecret } = {}) => ({ url: 'getNavbarSetting', params: { appSecret }, method: 'get', isPublic: true }),
|
|
8
8
|
getDefaultAffiliateCode: ({ appSecret }) => ({ url: 'getAffiliateCode', params: { appSecret }, method: 'get', isPublic: true }),
|
|
9
9
|
getSiteInfoConfig: ({ appSecret, config }) => ({ url: 'get-site-config', method: 'get', params: { appSecret, config }, isPublic: true }),
|
|
10
|
+
sendPixel: ({ appSecret, eventId, fbc, fbp, event, eventSourceUrl }) => ({
|
|
11
|
+
url: 'pixel',
|
|
12
|
+
method: 'post',
|
|
13
|
+
params: { appSecret, eventId, fbc, fbp, event, eventSourceUrl },
|
|
14
|
+
}),
|
|
10
15
|
}
|
package/src/api/payment.js
CHANGED
|
@@ -176,12 +176,12 @@ export default {
|
|
|
176
176
|
params: { transferType: 'DEPOSIT', amount, promotionsNo },
|
|
177
177
|
}),
|
|
178
178
|
submitWithdrawTransactionCrypto: ({ method, amount, cryptoCurrency, cryptoNetwork, targetAddress, applyerHolderName }) => ({
|
|
179
|
-
url:
|
|
179
|
+
url: `/payment/v2/${method}/withdraw-otp/verify`,
|
|
180
180
|
method: 'post',
|
|
181
181
|
params: { transferType: 'WITHDRAW', amount, cryptoCurrency, cryptoNetwork, targetAddress, applyerHolderName },
|
|
182
182
|
}),
|
|
183
183
|
submitWithdrawTransactionVN: ({ method, amount, applyerBankCode, applyerAccountNumber, applyerIfscCode, branch, applyerHolderName }) => ({
|
|
184
|
-
url:
|
|
184
|
+
url: `/payment/v2/${method}/withdraw-otp/verify`,
|
|
185
185
|
method: 'post',
|
|
186
186
|
params: {
|
|
187
187
|
transferType: 'WITHDRAW',
|
|
@@ -205,7 +205,7 @@ export default {
|
|
|
205
205
|
cryptoNetwork,
|
|
206
206
|
targetAddress,
|
|
207
207
|
}) => ({
|
|
208
|
-
url: `payment/v2/${method}/
|
|
208
|
+
url: `payment/v2/${method}/withdraw-otp/verify`,
|
|
209
209
|
method: 'post',
|
|
210
210
|
params: {
|
|
211
211
|
transferType: 'WITHDRAW',
|
|
@@ -247,4 +247,16 @@ export default {
|
|
|
247
247
|
withdrawCheck: () => ({ url: `payment/v2/withdrawCheck`, method: 'post' }),
|
|
248
248
|
updateUtr: ({ applyId, utr }) => ({ url: 'payment/v2/updateUtr', method: 'post', params: { applyId, utr } }),
|
|
249
249
|
uploadCommonSlip: ({ applyId, slip }) => ({ url: 'payment/v2/uploadCommonSlip', method: 'post', params: { applyId, slip } }),
|
|
250
|
+
otpAcknowledge: ({ method, requestId, code }) => ({
|
|
251
|
+
url: `/payment/v2/${method}/withdraw-otp/acknowledge`,
|
|
252
|
+
method: 'post',
|
|
253
|
+
params: { requestId, code },
|
|
254
|
+
isPublic: true,
|
|
255
|
+
}),
|
|
256
|
+
otpReset: ({ method, requestId }) => ({
|
|
257
|
+
url: `/payment/v2/${method}/withdraw-otp/reset-otp`,
|
|
258
|
+
method: 'post',
|
|
259
|
+
params: { requestId },
|
|
260
|
+
isPublic: true,
|
|
261
|
+
}),
|
|
250
262
|
}
|
package/src/machine/auth.js
CHANGED
|
@@ -101,7 +101,7 @@ export default function (request) {
|
|
|
101
101
|
invoke: {
|
|
102
102
|
src: 'fetchUserInfo',
|
|
103
103
|
onDone: {
|
|
104
|
-
target: '
|
|
104
|
+
target: 'otpChecking',
|
|
105
105
|
actions: ['setUserInfo', 'extendToken'],
|
|
106
106
|
},
|
|
107
107
|
onError: {
|
|
@@ -109,6 +109,19 @@ export default function (request) {
|
|
|
109
109
|
},
|
|
110
110
|
},
|
|
111
111
|
},
|
|
112
|
+
otpChecking: {
|
|
113
|
+
on: {
|
|
114
|
+
OTP_VERIFIED: {
|
|
115
|
+
target: 'loginSuccess',
|
|
116
|
+
},
|
|
117
|
+
OTP_SKIP: {
|
|
118
|
+
target: 'loginSuccess',
|
|
119
|
+
},
|
|
120
|
+
LOGOUT: {
|
|
121
|
+
target: 'leaving',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
},
|
|
112
125
|
loginSuccess: {
|
|
113
126
|
after: {
|
|
114
127
|
0: {
|
|
@@ -244,12 +244,16 @@ export default function (request) {
|
|
|
244
244
|
},
|
|
245
245
|
verify: async (context, event) => {
|
|
246
246
|
const provider = context.strategy
|
|
247
|
+
// [防呆] 資料不完整直接跳出
|
|
248
|
+
if (!provider) {
|
|
249
|
+
return
|
|
250
|
+
}
|
|
247
251
|
return await request.send(
|
|
248
252
|
otp.verification({
|
|
249
253
|
strategy: provider,
|
|
250
|
-
email: provider === 'email' ? event.data
|
|
251
|
-
countryCode: provider === 'phone' ? event.data
|
|
252
|
-
phone: provider === 'phone' ? event.data
|
|
254
|
+
email: provider === 'email' ? event.data?.email : undefined,
|
|
255
|
+
countryCode: provider === 'phone' ? event.data?.country_code : undefined,
|
|
256
|
+
phone: provider === 'phone' ? event.data?.tel : undefined,
|
|
253
257
|
})
|
|
254
258
|
)
|
|
255
259
|
},
|
package/src/machine/common.js
CHANGED
|
@@ -55,7 +55,7 @@ export default function (request) {
|
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
57
|
fetching: {
|
|
58
|
-
entry: ['setUA', 'setAgent', 'setPixel', 'setKPixel'],
|
|
58
|
+
entry: ['setUA', 'setAgent', 'setPixel', 'setKPixel', 'setFbclid'],
|
|
59
59
|
invoke: {
|
|
60
60
|
src: 'fetchConfig',
|
|
61
61
|
onDone: [
|
|
@@ -237,6 +237,18 @@ export default function (request) {
|
|
|
237
237
|
isMobile: userAgent?.device?.type,
|
|
238
238
|
}
|
|
239
239
|
}),
|
|
240
|
+
setFbclid: assign(() => {
|
|
241
|
+
const urlParams = new URLSearchParams(window.location.search)
|
|
242
|
+
const fbclid = urlParams.get('fbclid') || ''
|
|
243
|
+
if (fbclid !== '') {
|
|
244
|
+
const timestamp = Date.now()
|
|
245
|
+
const cookieRecord = 'fb.1.' + timestamp + '.' + fbclid
|
|
246
|
+
document.cookie = `_fbc=${cookieRecord}; path=/; max-age=${60 * 60 * 24 * 7}`
|
|
247
|
+
}
|
|
248
|
+
return {
|
|
249
|
+
fbclid,
|
|
250
|
+
}
|
|
251
|
+
}),
|
|
240
252
|
setPixel: assign(() => {
|
|
241
253
|
let urlParams = new URLSearchParams(window.location.search)
|
|
242
254
|
const pix = urlParams.get('pix') || storage.get('pix') || ''
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { assign, createMachine } from 'xstate'
|
|
2
2
|
import findLastIndex from 'lodash/findLastIndex.js'
|
|
3
3
|
import payment from '../../api/payment.js'
|
|
4
|
-
import user from '../../api/user.js'
|
|
5
4
|
|
|
6
5
|
export default function (request) {
|
|
7
6
|
const { appSecret } = request.config
|
|
@@ -36,8 +35,8 @@ export default function (request) {
|
|
|
36
35
|
|
|
37
36
|
// otp
|
|
38
37
|
requestId: null,
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
number: null,
|
|
39
|
+
email: null,
|
|
41
40
|
ttl: null,
|
|
42
41
|
},
|
|
43
42
|
states: {
|
|
@@ -356,26 +355,27 @@ export default function (request) {
|
|
|
356
355
|
return { paymentDetail }
|
|
357
356
|
}),
|
|
358
357
|
setOtp: assign((context, event) => {
|
|
359
|
-
const {
|
|
358
|
+
const { request_id, number, email, ttl } = event.data
|
|
360
359
|
return {
|
|
361
|
-
requestId,
|
|
362
|
-
|
|
363
|
-
|
|
360
|
+
requestId: request_id,
|
|
361
|
+
number,
|
|
362
|
+
email,
|
|
364
363
|
ttl,
|
|
365
364
|
}
|
|
366
365
|
}),
|
|
367
366
|
decreaseTtl: assign((context, evnet) => {
|
|
368
367
|
const second = context.ttl
|
|
369
368
|
return {
|
|
370
|
-
ttl: Math.max(second -
|
|
369
|
+
ttl: Math.max(second - 1000, 0),
|
|
371
370
|
}
|
|
372
371
|
}),
|
|
373
372
|
setVerificationData: assign((context, event) => {
|
|
374
|
-
const {
|
|
373
|
+
const { request_id, number, email, ttl } = event.data
|
|
375
374
|
return {
|
|
376
|
-
requestId,
|
|
375
|
+
requestId: request_id,
|
|
376
|
+
number,
|
|
377
|
+
email,
|
|
377
378
|
ttl,
|
|
378
|
-
target,
|
|
379
379
|
}
|
|
380
380
|
}),
|
|
381
381
|
setAttachmentType: assign((context, event) => {
|
|
@@ -439,7 +439,8 @@ export default function (request) {
|
|
|
439
439
|
return !enableWithdraw || balance < minWithdrawAmount
|
|
440
440
|
},
|
|
441
441
|
isOtpRequired: (context, event) => {
|
|
442
|
-
|
|
442
|
+
const { request_id, number, email } = event.data || {}
|
|
443
|
+
return request_id !== undefined && (number || email)
|
|
443
444
|
},
|
|
444
445
|
isNotWithdrawMinDepositAmount: (context, event) => {
|
|
445
446
|
const { withdrawCheck } = context
|
|
@@ -509,13 +510,15 @@ export default function (request) {
|
|
|
509
510
|
return await request.send(payment.convertFreeCredit({ exchangeType: 1 }))
|
|
510
511
|
},
|
|
511
512
|
resetOtp: async (context, event) => {
|
|
512
|
-
const { requestId
|
|
513
|
-
|
|
513
|
+
const { requestId } = context
|
|
514
|
+
const { method } = context.paymentDetail[0]
|
|
515
|
+
return await request.send(payment.otpReset({ method: method, requestId }))
|
|
514
516
|
},
|
|
515
517
|
acknowledge: async (context, event) => {
|
|
516
|
-
const { requestId
|
|
518
|
+
const { requestId } = context
|
|
519
|
+
const { method } = context.paymentDetail[0]
|
|
517
520
|
const code = event.data
|
|
518
|
-
return await request.send(
|
|
521
|
+
return await request.send(payment.otpAcknowledge({ method: method, requestId, code }))
|
|
519
522
|
},
|
|
520
523
|
pool: async (context, event) => {
|
|
521
524
|
const { amount } = context
|
|
@@ -23,6 +23,8 @@ export default function (request, context) {
|
|
|
23
23
|
requestId: null,
|
|
24
24
|
status: null,
|
|
25
25
|
target: null,
|
|
26
|
+
email: null,
|
|
27
|
+
number: null,
|
|
26
28
|
ttl: null,
|
|
27
29
|
},
|
|
28
30
|
states: {
|
|
@@ -117,29 +119,18 @@ export default function (request, context) {
|
|
|
117
119
|
RESET_OTP: {
|
|
118
120
|
target: 'reset',
|
|
119
121
|
},
|
|
120
|
-
BACK:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
// cond: 'isActivity',
|
|
124
|
-
// },
|
|
125
|
-
// {
|
|
126
|
-
// target: '#withdraw_vn2.cash.withdrawable',
|
|
127
|
-
// },
|
|
128
|
-
],
|
|
122
|
+
BACK: {
|
|
123
|
+
target: '#withdraw_manual_cash.calculated',
|
|
124
|
+
},
|
|
129
125
|
},
|
|
130
126
|
},
|
|
131
127
|
acknowledging: {
|
|
132
128
|
invoke: {
|
|
133
129
|
src: 'acknowledge',
|
|
134
|
-
onDone:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
// },
|
|
139
|
-
// {
|
|
140
|
-
// target: '#withdraw_vn2.cash.submitted',
|
|
141
|
-
// },
|
|
142
|
-
],
|
|
130
|
+
onDone: {
|
|
131
|
+
target: '#withdraw_manual_cash.submitted',
|
|
132
|
+
actions: 'setProcessing',
|
|
133
|
+
},
|
|
143
134
|
onError: {
|
|
144
135
|
target: 'idle',
|
|
145
136
|
},
|
|
@@ -203,26 +194,27 @@ export default function (request, context) {
|
|
|
203
194
|
}
|
|
204
195
|
}),
|
|
205
196
|
setOtp: assign((context, event) => {
|
|
206
|
-
const {
|
|
197
|
+
const { request_id, email, number, ttl } = event.data
|
|
207
198
|
return {
|
|
208
|
-
requestId,
|
|
209
|
-
|
|
210
|
-
|
|
199
|
+
requestId: request_id,
|
|
200
|
+
email,
|
|
201
|
+
number,
|
|
211
202
|
ttl,
|
|
212
203
|
}
|
|
213
204
|
}),
|
|
214
205
|
decreaseTtl: assign((context, evnet) => {
|
|
215
206
|
const second = context.ttl
|
|
216
207
|
return {
|
|
217
|
-
ttl: Math.max(second -
|
|
208
|
+
ttl: Math.max(second - 1000, 0),
|
|
218
209
|
}
|
|
219
210
|
}),
|
|
220
211
|
setVerificationData: assign((context, event) => {
|
|
221
|
-
const {
|
|
212
|
+
const { request_id, ttl, number, email } = event.data
|
|
222
213
|
return {
|
|
223
|
-
requestId,
|
|
214
|
+
requestId: request_id,
|
|
224
215
|
ttl,
|
|
225
|
-
|
|
216
|
+
number,
|
|
217
|
+
email,
|
|
226
218
|
}
|
|
227
219
|
}),
|
|
228
220
|
},
|
|
@@ -238,7 +230,7 @@ export default function (request, context) {
|
|
|
238
230
|
return selectedUserBank && selectedAmount > 0 && currentPayment.minimum <= selectedAmount && selectedAmount <= currentPayment.maximum
|
|
239
231
|
},
|
|
240
232
|
isOtpRequired: (context, event) => {
|
|
241
|
-
return event.data?.
|
|
233
|
+
return event.data?.request_id !== undefined
|
|
242
234
|
},
|
|
243
235
|
},
|
|
244
236
|
services: {
|
|
@@ -289,13 +281,13 @@ export default function (request, context) {
|
|
|
289
281
|
)
|
|
290
282
|
},
|
|
291
283
|
resetOtp: async (context, event) => {
|
|
292
|
-
const {
|
|
293
|
-
return await request.send(
|
|
284
|
+
const { currentPayment, requestId } = context
|
|
285
|
+
return await request.send(payment.otpReset({ method: currentPayment.method, requestId }))
|
|
294
286
|
},
|
|
295
287
|
acknowledge: async (context, event) => {
|
|
296
|
-
const {
|
|
288
|
+
const { currentPayment, requestId } = context
|
|
297
289
|
const code = event.data
|
|
298
|
-
return await request.send(
|
|
290
|
+
return await request.send(payment.otpAcknowledge({ method: currentPayment.method, requestId, code }))
|
|
299
291
|
},
|
|
300
292
|
},
|
|
301
293
|
}
|
package/src/request/request.js
CHANGED