This commit is contained in:
2023-01-23 20:07:26 +00:00
parent 209acc33e8
commit 09f2f3be2f

View File

@@ -102,9 +102,14 @@ namespace Sockeye.Biz
} }
#endif #endif
//It's a test purchase, no need to process it any further...or is there?? //It's a test purchase, no need to process it any further...or is there??
if (jData["order_notification"]["purchase"]["is_test"].Value<bool>() == true) if (jData["order_notification"]["purchase"]["is_test"] != null && jData["order_notification"]["purchase"]["is_test"].Value<bool>() == 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 //fundamentally validate the object is a purchase notification