YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Calling a class from IPN jsp Options
andye456
#1 Posted : Monday, January 31, 2011 7:49:23 PM
Rank: Starting Member

Groups: Registered

Joined: 1/31/2011
Posts: 1
Location: UK
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
Sponsor  
 
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.127 seconds.