This commit is contained in:
@@ -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<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
|
||||
|
||||
Reference in New Issue
Block a user