Jump to content


Photo

Calling a class from IPN jsp


  • This topic is locked This topic is locked
No replies to this topic

#1 andye456

andye456

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 31 January 2011 - 02:49 PM

Hi Everyone...

I have downloaded the sample jsp code and it works in the IPN simulator in the sand box.

If I then call my class from the jsp to create a licence key and send it via email - deployed on my Tomcat server via a war file, I get the error message - "IPN delivery failed. Unable to connect to the specified URL. Please verify the URL and try again" - which I know is really because some thing has failed.

If I use a test jsp that calls the class and browse to it it works fine and I get the email with the license key.

Is there something else I should be doing?

Here's my code to call the class:


// check notification validation
if(res.equals("VERIFIED")) {
if (paymentStatus.equals("Completed")) {
MyKeyGen kg = new MyKeyGen(firstName+" "+lastName, payerEmail);
}
etc..

Should I be using a servlet? The only reason I used the jsp is because there was an example on PayPal.

Thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users