@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @akinon/pz-flow-payment
2
2
 
3
+ ## 1.108.0-rc.4
4
+
5
+ ### Minor Changes
6
+
7
+ - d8883ce: ZERO-3640: Refactor wallet completion handling to accept additional parameters; update related API calls
8
+
3
9
  ## 1.108.0-rc.3
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@akinon/pz-flow-payment",
3
3
  "license": "MIT",
4
- "version": "1.108.0-rc.3",
4
+ "version": "1.108.0-rc.4",
5
5
  "main": "src/index.tsx",
6
6
  "dependencies": {
7
7
  "@checkout.com/checkout-web-components": "0.7.0-beta"
@@ -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(true)
131
+ checkoutApi.endpoints.setWalletCompletePage.initiate({
132
+ success: isSuccess,
133
+ cko_payment_id: ckoPaymentId
134
+ })
129
135
  ).unwrap();
130
136
 
131
137
  if (paymentCompleteResponse.errors) {