@rebilly/instruments 3.39.2 → 3.39.3

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": "@rebilly/instruments",
3
- "version": "3.39.2",
3
+ "version": "3.39.3",
4
4
  "author": "Rebilly",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "lodash.isequal": "^4.5.0",
27
27
  "lodash.kebabcase": "^4.1.1",
28
28
  "lodash.merge": "^4.6.2",
29
- "popostmate": "^1.6.4",
29
+ "popostmate": "2.0.0",
30
30
  "rebilly-js-sdk": "^47.14.2",
31
31
  "values.js": "^2.0.0"
32
32
  },
@@ -115,11 +115,11 @@ export function handleApprovalUrl({fields, payload}) {
115
115
  }
116
116
 
117
117
  state.data = new DataInstance({...fields});
118
-
118
+
119
+ const name = 'rebilly-instruments-approval-url'
119
120
  mountModal({
120
- state,
121
- name: 'rebilly-instruments-approval-url',
122
- url: `${paymentMethodsUrl}/approval-url`,
121
+ name,
122
+ url: `${paymentMethodsUrl}?name=${name}`,
123
123
  model,
124
124
  close: (updatedPurchase) => {
125
125
  Events.purchaseCompleted.dispatch(updatedPurchase);
@@ -25,13 +25,13 @@ export async function mountConfirmation({ payload: instrument }) {
25
25
  mainStyleVars: modelSafeState.mainStyleVars,
26
26
  instrument
27
27
  };
28
+
29
+ iframe?.component?.call('update', model);
28
30
 
29
31
  iframe?.component?.call('route', {
30
32
  name: 'confirmation'
31
33
  });
32
34
 
33
- iframe?.component?.call('update', model);
34
-
35
35
  iframe?.component?.on(`${iframe.name}-confirm-purchase`, (confirmedInstrument) => {
36
36
  purchase({ payload: confirmedInstrument });
37
37
  });
@@ -88,5 +88,9 @@ export async function mountModal({
88
88
  closeButton.addEventListener('click', closeModal);
89
89
  }
90
90
 
91
+ iframe.component?.call('route', {
92
+ name: 'approval-url'
93
+ });
94
+
91
95
  return iframe;
92
96
  }
package/CONTRIBUTING.md DELETED
@@ -1,4 +0,0 @@
1
- # Constributing to Rebilly Instruments package/core
2
-
3
- ## Setup
4
- No additional setup is required to run this package locally