@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.
- package/classes/Checkout.js +2 -2
- package/package.json +1 -1
package/classes/Checkout.js
CHANGED
|
@@ -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 === '
|
|
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 === '
|
|
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';
|