@infosoftas/s4-orders-js-sdk 0.1.11 → 0.1.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infosoftas/s4-orders-js-sdk",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "scripts": {
5
5
  "build": "rimraf lib && webpack --mode production",
6
6
  "release": "release-it"
package/src/App.tsx CHANGED
@@ -30,6 +30,7 @@ const App: FC<ConfigType> = ({
30
30
  submitStartCallback,
31
31
  userActionCallback,
32
32
  setContactCallback,
33
+ cancelVippsCallback,
33
34
  moduleTitle,
34
35
  apiKey,
35
36
  apiUrl,
@@ -140,6 +141,7 @@ const App: FC<ConfigType> = ({
140
141
  (data.paymentMethod === PaymentMethodEnum.Vipps ||
141
142
  data.paymentMethod === PaymentMethodEnum.MobilePay)
142
143
  ) {
144
+ cancelVippsCallback?.();
143
145
  handleOrderDelete(orderId || data.orderId);
144
146
  return;
145
147
  }
@@ -35,7 +35,9 @@ type Props = {
35
35
  action: UserActionEnum,
36
36
  args: object | null | undefined
37
37
  ) => void;
38
- setContactCallback?: (contactInfo: ContactRequestType) => void;
38
+ setContactCallback?: (
39
+ contactInfo: ContactRequestType
40
+ ) => void;
39
41
  templatePackageId: string;
40
42
  subscriberId?: string;
41
43
  userId?: string;
@@ -150,6 +152,8 @@ const useOrderForm = ({
150
152
  sessionStorage.setItem('subscriberId', id); // For avoiding attempt of creating subscriber again
151
153
  }
152
154
 
155
+ console.log('Dette er en ny testversjon av OSDK');
156
+
153
157
  if (setContactCallback) {
154
158
  setContactCallback(contactModel);
155
159
  }
@@ -41,6 +41,7 @@ export type ConfigType = {
41
41
  args: object | null | undefined
42
42
  ) => void;
43
43
  setContactCallback?: (contactInfo: ContactRequestType) => void;
44
+ cancelVippsCallback?: () => void;
44
45
  domElementId: string;
45
46
  moduleTitle?: string;
46
47
  templatePackageId: string;