@mainmoneyapp/js-checkout 0.2.2 → 0.2.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/dist/index.js +7 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -510,9 +510,15 @@ function createCheckout(session, options) {
|
|
|
510
510
|
try {
|
|
511
511
|
simulation = await feeSimulation(payCurrency);
|
|
512
512
|
} catch (error) {
|
|
513
|
-
if (!
|
|
513
|
+
if (!(error instanceof MerchantBackendException)) {
|
|
514
514
|
throw error;
|
|
515
515
|
}
|
|
516
|
+
if (!isNoQuote(error) || payCurrency === state.currency) {
|
|
517
|
+
state.fees = void 0;
|
|
518
|
+
state.quoteUnavailable = true;
|
|
519
|
+
state.error = messageFromError(error);
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
516
522
|
notice = t("noQuote", { from: payCurrency, to: state.currency });
|
|
517
523
|
state.fees = void 0;
|
|
518
524
|
if (!providerAcceptedCurrencies(provider).includes(state.currency)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mainmoneyapp/js-checkout",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Checkout wizard for the MainMoney JS/TS frontend SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@mainmoneyapp/js-core": "0.2.
|
|
45
|
-
"@mainmoneyapp/js-http": "0.2.
|
|
44
|
+
"@mainmoneyapp/js-core": "0.2.3",
|
|
45
|
+
"@mainmoneyapp/js-http": "0.2.3"
|
|
46
46
|
}
|
|
47
47
|
}
|