From 09f2f3be2f6e064922e0673a06cd9d6ad5d82067 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 23 Jan 2023 20:07:26 +0000 Subject: [PATCH] --- server/generator/SockBotProcessVendorNotifications.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/server/generator/SockBotProcessVendorNotifications.cs b/server/generator/SockBotProcessVendorNotifications.cs index 14c0afc..ae44a3f 100644 --- a/server/generator/SockBotProcessVendorNotifications.cs +++ b/server/generator/SockBotProcessVendorNotifications.cs @@ -102,9 +102,14 @@ namespace Sockeye.Biz } #endif //It's a test purchase, no need to process it any further...or is there?? - if (jData["order_notification"]["purchase"]["is_test"].Value() == true) + if (jData["order_notification"]["purchase"]["is_test"] != null && jData["order_notification"]["purchase"]["is_test"].Value() == true) { - vn.Processed = DateTime.UtcNow; + + //during debugging allow it to process as a test but normally test orders should stop here +#if (!DEBUG) + return true; +#endif + } //fundamentally validate the object is a purchase notification