From 87dc1e5db4261a63fcde4d386bc4d6f07bf2d732 Mon Sep 17 00:00:00 2001 From: softsimon Date: Thu, 8 Oct 2020 00:51:11 +0700 Subject: [PATCH] Check and accept both 'complete' and 'confirmed' invoices. refs #122 --- backend/src/api/donations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/donations.ts b/backend/src/api/donations.ts index fde21940f..8a18b6cb4 100644 --- a/backend/src/api/donations.ts +++ b/backend/src/api/donations.ts @@ -50,7 +50,7 @@ class Donations { } const response = await this.getStatus(data.id); - if (response.status !== 'complete') { + if (response.status !== 'complete' && response.status !== 'confirmed') { return; }