@akinon/next 1.108.0-rc.3 → 1.108.0-rc.5

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,17 @@
1
1
  # @akinon/next
2
2
 
3
+ ## 1.108.0-rc.5
4
+
5
+ ### Minor Changes
6
+
7
+ - 31a2d35: ZERO-3640: Refactor checkout API call to include useFormData option; update FlowPayment component for improved error handling and code readability
8
+
9
+ ## 1.108.0-rc.4
10
+
11
+ ### Minor Changes
12
+
13
+ - d8883ce: ZERO-3640: Refactor wallet completion handling to accept additional parameters; update related API calls
14
+
3
15
  ## 1.108.0-rc.3
4
16
 
5
17
  ## 1.108.0-rc.2
@@ -497,12 +497,22 @@ export const checkoutApi = api.injectEndpoints({
497
497
  dispatch(setPaymentStepBusy(false));
498
498
  }
499
499
  }),
500
- setWalletCompletePage: build.mutation<CheckoutResponse, boolean>({
501
- query: (success: boolean) => ({
502
- url: buildClientRequestUrl(checkout.setWalletCompletePage),
500
+ setWalletCompletePage: build.mutation<
501
+ CheckoutResponse,
502
+ {
503
+ success: boolean;
504
+ cko_payment_id?: string;
505
+ [key: string]: any;
506
+ }
507
+ >({
508
+ query: ({ success, ...additionalParams }) => ({
509
+ url: buildClientRequestUrl(checkout.setWalletCompletePage, {
510
+ useFormData: true
511
+ }),
503
512
  method: 'POST',
504
513
  body: {
505
- success
514
+ success,
515
+ ...additionalParams
506
516
  }
507
517
  }),
508
518
  async onQueryStarted(arg, { dispatch, queryFulfilled }) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@akinon/next",
3
3
  "description": "Core package for Project Zero Next",
4
- "version": "1.108.0-rc.3",
4
+ "version": "1.108.0-rc.5",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -35,7 +35,7 @@
35
35
  "set-cookie-parser": "2.6.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@akinon/eslint-plugin-projectzero": "1.108.0-rc.3",
38
+ "@akinon/eslint-plugin-projectzero": "1.108.0-rc.5",
39
39
  "@babel/core": "7.26.10",
40
40
  "@babel/preset-env": "7.26.9",
41
41
  "@babel/preset-typescript": "7.27.0",