Paypal SandBox IPN always returns INVALID

Edit: Now that I can see the array you’ve outputted, try replacing this to get rid of the PHP array error: foreach ($_POST as $key => $value) { if (!is_array($value)) { $value = urlencode(stripslashes($value)); $req .= “&$key=$value”; } else if (is_array($value)) { $paymentArray = explode(‘ ‘, $value[0]); $paymentCurrency = urlencode(stripslashes($paymentArray[0])); $paymentGross = urlencode(stripslashes($paymentArray[1])); $req .= … Read more

Newtonsoft.Json Assembly Conflict

I just had the same problem and I solved it by updating the Newtonsoft.Json to the latest version using Update-Package Newtonsoft.Json and then going to Web.config and adding: <dependentAssembly> <assemblyIdentity name=”Newtonsoft.Json” publicKeyToken=”30ad4fe6b2a6aeed”/> <bindingRedirect oldVersion=”0.0.0.0-4.5.0.0″ newVersion=”5.0.8″/> </dependentAssembly>