@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/CHANGELOG.md +7 -0
- package/dist/index.js +16 -16
- package/dist/index.min.js +16 -16
- package/package.json +2 -2
- package/src/functions/purchase.js +4 -4
- package/src/views/confirmation.js +2 -2
- package/src/views/modal.js +4 -0
- package/CONTRIBUTING.md +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebilly/instruments",
|
|
3
|
-
"version": "3.39.
|
|
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": "
|
|
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
|
-
|
|
121
|
-
|
|
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
|
});
|
package/src/views/modal.js
CHANGED
package/CONTRIBUTING.md
DELETED