From 9df3ce249b8ac65bfb1b0eb8cd2a16953cad7469 Mon Sep 17 00:00:00 2001 From: Overtorment Date: Wed, 6 May 2020 13:00:33 +0100 Subject: [PATCH] FIX: process locked script --- class/Paym.js | 4 ++++ 1 file changed, 4 insertions(+) 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 }