@autobusal/order-process 1.5.1 → 1.5.2
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/BKT/Bkt.tsx +4 -1
- package/package.json +1 -1
- package/types.ts +4 -1
package/BKT/Bkt.tsx
CHANGED
|
@@ -76,7 +76,10 @@ const Bkt = ({ hash, t }: Props): JSX.Element => {
|
|
|
76
76
|
<input type="hidden" defaultValue={ data?.currency } { ...register('currency') } />
|
|
77
77
|
<input type="hidden" defaultValue={ data?.okUrl } { ...register('okUrl') } />
|
|
78
78
|
<input type="hidden" defaultValue={ data?.failUrl } { ...register('failUrl') } />
|
|
79
|
-
|
|
79
|
+
{ /* Claude - 2026-09-25 (audit): the hash is signed over data.oid (the
|
|
80
|
+
per-attempt order-number reference), not the database id - posting
|
|
81
|
+
orderId made BKT reject the signature. orderId stays as ObtBktId. */ }
|
|
82
|
+
<input type="hidden" defaultValue={ data?.oid ?? data?.orderId } { ...register('oid') } />
|
|
80
83
|
<input type="hidden" defaultValue={ data?.amount } { ...register('amount') } />
|
|
81
84
|
<input type="hidden" defaultValue={ data?.lang } { ...register('lang') } />
|
|
82
85
|
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface BKTFormData {
|
|
|
5
5
|
currency: number
|
|
6
6
|
okUrl: string
|
|
7
7
|
failUrl: string
|
|
8
|
-
oid: number
|
|
8
|
+
oid: number | string // Claude - 2026-09-25 (audit): the order-number reference is a string
|
|
9
9
|
amount: number
|
|
10
10
|
lang: string
|
|
11
11
|
Email: string
|
|
@@ -47,6 +47,9 @@ export interface BKTData {
|
|
|
47
47
|
description: string
|
|
48
48
|
amount: number
|
|
49
49
|
orderId: number
|
|
50
|
+
// Claude - 2026-09-25 (audit): the per-attempt order-number reference
|
|
51
|
+
// obtapi signs into the hash (BKT Prepare) - what BKT must receive as oid
|
|
52
|
+
oid?: string
|
|
50
53
|
labelId: number
|
|
51
54
|
domain: string
|
|
52
55
|
currency: number
|