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