Skip to Content Skip to Menu

Instant Payment Notification (IPN) doesn't work

  • giecie
  • giecie
  • OFFLINE
  • Posts: 23
  • Thanks: 1
  • Karma: 0
12 years 4 months ago - 12 years 4 months ago #202745 by giecie
Situation;
J1.5.25
CB1.8
CBSubs 2.0.1

For several weeks now PayPal is retying, for each online payment, to send the IPN to my website. I get the PayPal info in the backend but no automatic registration happens for each new user. (cfr forum ticket #200323)

In the PayPal Instant Payment Notification (IPN) details I see now HTTP response code
500 and is retrying to send the IPN untill PayPal times-out (around 15 reties).

I used following method to try to find the issue:
1) briefly turned site debug on
2) error reporting -> maximum
3) accessed the site using the IPN url that failed and that is in Paypal account in History -> IPN History.

In the CBSubs backend "CB Paid Subscriptions: Notifications" I get for test;
- Log Type = IPN notification not authenticating at payment gateway
- Verification = INVALID
- Gateway account = On-line payment

I don't see any errors, just a blank white screen.
This should mean there are no problems BUT on the PayPal IPN details screen I get an HTTP response code 500!!

I use also an events registration system on the same website via PayPal, without any problems at all.

I'm realy lost here!!.
Are there other ways to dive into this problem and try to find a resolution?
Last edit: 12 years 4 months ago by giecie.

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
12 years 4 months ago #202808 by beat
> 3) accessed the site using the IPN url that failed and that is in Paypal account in History -> IPN History.

that's not enough, you also need to POST the variables listed in the field above or below the link at Paypal IPN history. Otherwise CBSubs can't give the payment reference to Paypal, nor verify successfully with Paypal that the IPN is authentic. That's why you get the INVALID verification result.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in or Create an account to join the conversation.

  • giecie
  • giecie
  • OFFLINE
  • Posts: 23
  • Thanks: 1
  • Karma: 0
12 years 4 months ago - 12 years 4 months ago #202815 by giecie
OK, sounds logic.

So I use the PayPal notification URL + the IPN message in 1 URL and add a "&" just after format=raw?

Or how can I construct the complete POST URL with all the required variables?
Sorry for this question but it's unclear for me.

I can PM a real URL & IPN message.
Last edit: 12 years 4 months ago by giecie.

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
12 years 4 months ago #202862 by beat
CBSUbs does not allow the POST values as GET for security reasons.

You will need a Paypal IPN simulator like:
developer.paypal.com/us/cgi-bin/devscr
like described here:
cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_admin_IPNTesting

or alternatively (that's how i found last time that you had a third-party plugin that gave an error making the paypal IPN fail), you can use jsfiddle.net/

and write your form there. I replaced each name=value pair of paypal by NAME:<input name="NAME" value="VALUE" /> (using a regexp-replace in an editor).

Then just use the RUN button of jsfiddle, and press the submit button i added to the form.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in or Create an account to join the conversation.

  • giecie
  • giecie
  • OFFLINE
  • Posts: 23
  • Thanks: 1
  • Karma: 0
12 years 4 months ago #203315 by giecie
Can I ask you to send me (PM) a form example to use in jsfiddle.net?

I'm still suffering error 500 in the PayPal IPN history and I need now to drill down to the cause of the problem.

Thanks.

Please Log in or Create an account to join the conversation.

  • giecie
  • giecie
  • OFFLINE
  • Posts: 23
  • Thanks: 1
  • Karma: 0
12 years 3 months ago #204162 by giecie
I made a payment to get personal support.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum