@swirepay-developer/swirepay-ach-sdk 2.0.3 → 2.0.4
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
|
@@ -181,14 +181,13 @@ export class SwirepayCheckout extends HTMLElement {
|
|
|
181
181
|
})
|
|
182
182
|
return await response.json();
|
|
183
183
|
}
|
|
184
|
-
|
|
185
184
|
|
|
186
185
|
async connectedCallback() {
|
|
187
186
|
this.amount = parseInt(this.getAttribute("amount")) || 0;
|
|
188
187
|
this.test = this.getAttribute("mode") === "test";
|
|
189
|
-
this.currencyCode = this.getAttribute("
|
|
188
|
+
this.currencyCode = this.getAttribute("currencycode");
|
|
190
189
|
this.apiKey = this.getAttribute("api-key");
|
|
191
|
-
this.isAddressRequired = this.getAttribute("
|
|
190
|
+
this.isAddressRequired = this.getAttribute("isaddressrequired") === "true";
|
|
192
191
|
this.inventory = this.getAttribute("inventory") === "true";
|
|
193
192
|
this.frequency = this.getAttribute("frequency");
|
|
194
193
|
this.description = this.getAttribute("description");
|
|
@@ -225,7 +224,6 @@ export class SwirepayCheckout extends HTMLElement {
|
|
|
225
224
|
"api-key",
|
|
226
225
|
"isaddressrequired",
|
|
227
226
|
"inventory",
|
|
228
|
-
"productname",
|
|
229
227
|
"frequency",
|
|
230
228
|
"description",
|
|
231
229
|
"totalpayments",
|
|
@@ -259,10 +257,6 @@ export class SwirepayCheckout extends HTMLElement {
|
|
|
259
257
|
this.isAddressRequired = newValue === "true";
|
|
260
258
|
break;
|
|
261
259
|
|
|
262
|
-
case "inventory":
|
|
263
|
-
this.inventory = newValue === "true";
|
|
264
|
-
break;
|
|
265
|
-
|
|
266
260
|
case "frequency":
|
|
267
261
|
this.frequency = newValue;
|
|
268
262
|
break;
|
|
@@ -282,6 +276,18 @@ export class SwirepayCheckout extends HTMLElement {
|
|
|
282
276
|
case "inventoryorders":
|
|
283
277
|
this.inventoryOrder = newValue ? JSON.parse(newValue) : {};
|
|
284
278
|
break;
|
|
279
|
+
|
|
280
|
+
case "inventory":
|
|
281
|
+
this.inventory = newValue === "true";
|
|
282
|
+
|
|
283
|
+
if (this.inventory && this.inventoryOrder) {
|
|
284
|
+
this.getSplitUpDetails(this.inventoryOrder).then(res => {
|
|
285
|
+
this.splitUp = res?.entity;
|
|
286
|
+
this.render();
|
|
287
|
+
});
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
break;
|
|
285
291
|
|
|
286
292
|
default:
|
|
287
293
|
break;
|