diff --git a/class/Paym.js b/class/Paym.js index 4d8b663..7ab12b2 100644 --- a/class/Paym.js +++ b/class/Paym.js @@ -105,6 +105,10 @@ export class Paym { this._isPaid = false; } + if (payment.payment_error && payment.payment_error.indexOf('IncorrectOrUnknownPaymentDetails') !== -1) { + this._isPaid = false; + } + if (payment.payment_error && payment.payment_error.indexOf('payment is in transition') !== -1) { this._isPaid = null; // null is default, but lets set it anyway }