@akinon/pz-flow-payment 1.108.0-rc.3 → 1.108.0-rc.4
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 -0
- package/package.json +1 -1
- package/src/views/index.tsx +7 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/views/index.tsx
CHANGED
|
@@ -124,8 +124,14 @@ export default function FlowPayment({
|
|
|
124
124
|
setErrors(null);
|
|
125
125
|
|
|
126
126
|
try {
|
|
127
|
+
const ckoPaymentId = paymentData?.id;
|
|
128
|
+
const isSuccess = paymentData?.status === 'approved';
|
|
129
|
+
|
|
127
130
|
const paymentCompleteResponse = await dispatch(
|
|
128
|
-
checkoutApi.endpoints.setWalletCompletePage.initiate(
|
|
131
|
+
checkoutApi.endpoints.setWalletCompletePage.initiate({
|
|
132
|
+
success: isSuccess,
|
|
133
|
+
cko_payment_id: ckoPaymentId
|
|
134
|
+
})
|
|
129
135
|
).unwrap();
|
|
130
136
|
|
|
131
137
|
if (paymentCompleteResponse.errors) {
|