@paynext/sdk 0.0.117 → 0.0.118
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.es.js +5 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5866,7 +5866,11 @@ class cd {
|
|
|
5866
5866
|
const { checkout: e, transaction: t, translate: i, styles: r } = this.config.state, { apiVersion: s } = e.getState();
|
|
5867
5867
|
e.subscribe(({ clientToken: a, environment: o, locale: l, translate: u, styles: d }) => {
|
|
5868
5868
|
const h = kn.teamId, m = kn.appIds[o];
|
|
5869
|
-
|
|
5869
|
+
l && i.locale() !== l && i.setLocale(l), u && i.overrides() !== u && i.setMessages(u), d && r.setState(d), t.updateTransaction(a, o, s).then((p) => {
|
|
5870
|
+
if (!p)
|
|
5871
|
+
throw new Error("No config found");
|
|
5872
|
+
return this.config.service.ev.initEv({ teamId: h, appId: m });
|
|
5873
|
+
}).catch((p) => {
|
|
5870
5874
|
if (console.error(p), this.component) {
|
|
5871
5875
|
const g = i.messages(), b = p.name === "INVALID_SESSION" ? g.status.invalidSession : p.message;
|
|
5872
5876
|
this.component.showError(b);
|