IPN doesn't work sometimes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have this code that worked for years and still works for 95% of the payments
public string Fwd(string payPalEmail, string currency, string product, string priceVal, string userId, int commId, int year, bool? monthly)
{
var rootUrl = Util.RootUrl();
var html = "<form name='paypalForm' name='_xclick' action='https://www.paypal.com/cgi-bin/webscr' method='post'>";
if (monthly.HasValue && monthly.Value)
{
var remainingMonths = 12 - DateTime.Now.Month+1;
decimal a3 = Convert.ToDecimal(priceVal) / remainingMonths;
html += "<input type='hidden' name='cmd' value='_xclick-subscriptions'>" +
"<input type='hidden' name='a3' value='" + a3.ToString(".##") + "'>" +
"<input type='hidden' name='p3' value='1'>" +
"<input type='hidden' name='t3' value='M'>" +
"<input type='hidden' name='src' value='1'>" +
"<input type='hidden' name='srt' value='" + remainingMonths + "'>"+
"<input type='hidden' name='sra' value='1'>";
}
else
{
html += "<input type='hidden' name='cmd' value='_xclick'>";
html += "<input type='hidden' name='amount' value='" + priceVal + "'>";
}
html += "<input type='hidden' name='business' value='" + payPalEmail + "'>";
html += "<input type='hidden' name='currency_code' value='" + currency + "'>";
html += "<input type='hidden' name='item_name' value='" + product + ", " + year + "'>";
product = HttpUtility.UrlEncode(product);
html += "<input name='notify_url' value='" + rootUrl + "//notify?communityId=" + commId + "&product=" + product + "-" + year + "&isMembership=true&userId=" + userId + "' type='hidden'>";
html += "<input type='hidden' name='return' value='" + rootUrl + "/profile/paid/'>";
if (monthly.HasValue && monthly.Value)
{
}
html += "</form>";
html += "<script>document.paypalForm.submit();</script>";
return html;
}
suddenly few months ago or more we start missing some payments. We have few dozens paypal accounts, Australia has most missing payments. 95% are getting registered, 5% not. I have nothing in my logs, there are no calls whatsoever for those missing payments. The biggest WTF is that I can't find IPN logs in paypal dashboard. WHERE ARE THE DAMN LOGS, paypal? Don't tell me if you get 400/500 there is no way to know it?
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Things don’t appear to be working at the moment in PayPal Payments Standard
- Cannot create developer account from invitation link in Braintree Client-side Integration (JS, iOS, Android SDKs)
- QR Code Issue in Braintree Client-side Integration (JS, iOS, Android SDKs)
- How to enable on-demand / recurring payments to existing PayPal checkout? in SDKs
- IPN simulator always send INVALID answer in Sandbox Environment