@delicity/client-cart 1.3.28 → 1.3.29

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.
@@ -234,7 +234,7 @@ class Checkout {
234
234
  var _a, _b, _c, _d;
235
235
  if (this.paymentStatus === 'COMPLETED')
236
236
  return reject('Payment already completed');
237
- if (!this.paymentMethods.some(pm => pm.type === 'wallet' && pm.status === 'pending'))
237
+ if (!this.paymentMethods.some(pm => pm.type === 'wallet' && pm.status === 'PENDING'))
238
238
  return reject('Wallet payment method not set or not ready...');
239
239
  const paymentIndex = this.getPaymentIndexViaIdentifier(paymentIdentifier);
240
240
  this.paymentMethods[paymentIndex].status = 'PENDING';
@@ -265,7 +265,7 @@ class Checkout {
265
265
  var _a, _b, _c, _d;
266
266
  if (this.paymentStatus === 'COMPLETED')
267
267
  return reject('Payment already completed');
268
- if (!this.paymentMethods.some(pm => pm.type === 'free' && pm.status === 'pending'))
268
+ if (!this.paymentMethods.some(pm => pm.type === 'free' && pm.status === 'PENDING'))
269
269
  return reject('Wallet payment method not set or not ready...');
270
270
  const paymentIndex = this.getPaymentIndexViaIdentifier(paymentIdentifier);
271
271
  this.paymentMethods[paymentIndex].status = 'PENDING';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delicity/client-cart",
3
- "version": "1.3.28",
3
+ "version": "1.3.29",
4
4
  "description": "Cart Client Package",
5
5
  "main": "index.js",
6
6
  "scripts": {