@akinon/pz-flow-payment 1.108.0-rc.9 → 1.108.0
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 +6 -38
- package/package.json +1 -1
- package/src/views/index.tsx +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,48 +1,16 @@
|
|
|
1
1
|
# @akinon/pz-flow-payment
|
|
2
2
|
|
|
3
|
-
## 1.108.0
|
|
4
|
-
|
|
5
|
-
## 1.108.0-rc.8
|
|
3
|
+
## 1.108.0
|
|
6
4
|
|
|
7
5
|
### Minor Changes
|
|
8
6
|
|
|
7
|
+
- 21d88c1b: ZERO-3640: Remove redundant API calls
|
|
8
|
+
- d8883ce6: ZERO-3640: Refactor wallet completion handling to accept additional parameters; update related API calls
|
|
9
9
|
- f85464e9: ZERO-3640: Fix API call to use hyphenated key for payment ID in FlowPayment component
|
|
10
|
-
|
|
11
|
-
## 1.108.0-rc.7
|
|
12
|
-
|
|
13
|
-
## 1.108.0-rc.6
|
|
14
|
-
|
|
15
|
-
## 1.108.0-rc.5
|
|
16
|
-
|
|
17
|
-
### Minor Changes
|
|
18
|
-
|
|
19
|
-
- 31a2d35: ZERO-3640: Refactor checkout API call to include useFormData option; update FlowPayment component for improved error handling and code readability
|
|
20
|
-
|
|
21
|
-
## 1.108.0-rc.4
|
|
22
|
-
|
|
23
|
-
### Minor Changes
|
|
24
|
-
|
|
25
|
-
- d8883ce: ZERO-3640: Refactor wallet completion handling to accept additional parameters; update related API calls
|
|
26
|
-
|
|
27
|
-
## 1.108.0-rc.3
|
|
28
|
-
|
|
29
|
-
### Minor Changes
|
|
30
|
-
|
|
31
|
-
- e00b4a8: ZERO-3640: Refactor wallet selection initialization and error handling; streamline payment session management
|
|
32
|
-
|
|
33
|
-
## 1.108.0-rc.2
|
|
34
|
-
|
|
35
|
-
## 1.108.0-rc.1
|
|
36
|
-
|
|
37
|
-
### Minor Changes
|
|
38
|
-
|
|
39
|
-
- 21d88c1: ZERO-3640: Remove redundant API calls
|
|
40
|
-
|
|
41
|
-
## 1.108.0-rc.0
|
|
42
|
-
|
|
43
|
-
### Minor Changes
|
|
44
|
-
|
|
45
10
|
- ce2e9e20: ZERO-3640: Add error handling and WalletCompletePage request to FlowPayment
|
|
11
|
+
- e00b4a82: ZERO-3640: Refactor wallet selection initialization and error handling; streamline payment session management
|
|
12
|
+
- 59ed7a7e: ZERO-3640: Add order number state and update FlowPayment component for wallet payment response handling
|
|
13
|
+
- 31a2d35a: ZERO-3640: Refactor checkout API call to include useFormData option; update FlowPayment component for improved error handling and code readability
|
|
46
14
|
|
|
47
15
|
## 1.107.0
|
|
48
16
|
|
package/package.json
CHANGED
package/src/views/index.tsx
CHANGED
|
@@ -80,6 +80,7 @@ export default function FlowPayment({
|
|
|
80
80
|
const [errors, setErrors] = useState<any>(null);
|
|
81
81
|
const [walletSelectionReady, setWalletSelectionReady] =
|
|
82
82
|
useState<boolean>(false);
|
|
83
|
+
const [orderNumber, setOrderNumber] = useState<string | null>(null);
|
|
83
84
|
|
|
84
85
|
// Memoize the amount to track actual changes
|
|
85
86
|
const currentAmount = useMemo(() => {
|
|
@@ -120,6 +121,11 @@ export default function FlowPayment({
|
|
|
120
121
|
return;
|
|
121
122
|
}
|
|
122
123
|
|
|
124
|
+
// Store the order number from the wallet payment page response
|
|
125
|
+
if (walletPaymentPageResponse.pre_order?.number) {
|
|
126
|
+
setOrderNumber(walletPaymentPageResponse.pre_order.number);
|
|
127
|
+
}
|
|
128
|
+
|
|
123
129
|
setWalletSelectionReady(true);
|
|
124
130
|
};
|
|
125
131
|
|
|
@@ -133,7 +139,8 @@ export default function FlowPayment({
|
|
|
133
139
|
const paymentCompleteResponse = await dispatch(
|
|
134
140
|
checkoutApi.endpoints.setWalletCompletePage.initiate({
|
|
135
141
|
success: isSuccess,
|
|
136
|
-
'cko-payment-id': ckoPaymentId
|
|
142
|
+
'cko-payment-id': ckoPaymentId,
|
|
143
|
+
oid: orderNumber
|
|
137
144
|
})
|
|
138
145
|
).unwrap();
|
|
139
146
|
|