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