Link to PayPal Sandbox incorrect?

9 replies [Last post]
jaybee
Offline
Joined: 08/14/2009
Status: 
Answered

 Hi - have just purchased PayPal subscriptions v4.4 (latest version) and am getting this error on the PayPal screen after submitting the registration:

 

The link you have used to enter the PayPal system is invalid. Please review the link and try again.

 

Can you look into this please?

 

Thanks

Leighton Whiting
Offline
Joined: 06/02/2009
James, Can you confirm that

James,
Can you confirm that you are using a Paypal Sandbox email address for the receiving email (set in the Subscription Plan)? This error is usually caused by trying to use a non-sandbox email address with the sandbox server.

-Leighton

jaybee
Offline
Joined: 08/14/2009
Yes

 Hi Leighton - yes, I am using the the sandbox email address (seller account).

paypal_1251476653_biz@referensys.com

Leighton Whiting
Offline
Joined: 06/02/2009
Jaybee, Sometimes Paypal

Jaybee,
Sometimes Paypal errors can be vague, this is one of those cases. Can you post a screenshot of your Subscription Plan configuration?

-Leighton

jaybee
Offline
Joined: 08/14/2009
Fixed the first issue, but got another one...

You were right, the email address was wrong (additional space in there when I cut and pasted from PayPal screen).

So this got as far as confirming the payment on PayPal, but when I clicked Return to Merchant, no user was created?

I don't have the 'Automatically Login New Users?' checked, and I have not received any emails to the email address I specified in the Drupal registration page, but I do have the confirmation email that was sent to the paypal test address.

Thanks.

Leighton Whiting
Offline
Joined: 06/02/2009
James, Can you check the

James,
Can you check the Watchdog Logs and see what it says when it received the IPN?

-Leighton

jaybee
Offline
Joined: 08/14/2009
Have sent you

the log via email. No user created again, which I suspect is due to the SQL errors I can see in the log.

 

Thanks 

Leighton Whiting
Offline
Joined: 06/02/2009
James, Can you see any

James,
Can you see any messages saying 'New IPN Received' or something similar to that? The code you posted was from the Thank-You page. What I suspect is that either the IPN is not being sent (not very likely), or the IPN is being sent to the wrong URL (more likely). Since you are running this on your local server through Acquia Drupal, I suspect that the URL is not being detected correctly.
Another equally viable reason is that Paypal can't access your server. This is because your 'local server' is not accessible from the outside (paypal cant send a post to localhost for example).

Sincerely,
Leighton

jaybee
Offline
Joined: 08/14/2009
 Hi Leighton, In the log, I

 Hi Leighton,

In the log, I have an entry of type 'paypal subscript' where the message starts

New Thank You Page. IPN: Array ( [merchantReturn_x] ...

and the location is:

http://mytestsite.localhost:8082/membership/thankyou

That's all there is in the log.

 

What you seem to be suggesting is that there is no way to test this without being on a hosted platform with a publicly visible URL?

It would be really useful if  you could spend a few minutes to document the sort of test environment needed to successfully test the module - I think that would be great in the FAQ. I think it is important to be able to evaluate and test the module in a development environment if possible.

Thanks.

Leighton Whiting
Offline
Joined: 06/02/2009
James, Yes, you cannot test

James,
Yes, you cannot test the system unless Paypal is able to access your development server, otherwise there is no way that they can send you the IPN which is needed to confirm payment. The log report you are seeing is from the Thank-You page, which is from you accessing the page. The variables are also sent to the Thank-You page, but it is not secure because there is no way to verify them, that is why the module doesn't create accounts or add roles based on the Thank-You page, it waits for the more secure IPN variables.

To successfully test the module, it must be on a server that can be accessed by Paypal's servers. For example, you could create a subdomain on an existing domain of yours if you don't want to test on a full domain yet. Something like yoursite.yourdomain.com. That is what I usually do. There are many things which are not testable on a local server with no outside access. This is by design, and is not a bug.

You could look into setting up DNS so that your server is broadcast to the world, but my suggestion is just to do the subdomain route, since it is the least amount of work.

Sincerely,
Leighton Whiting

Twitter Feed