Error message from PayPal : ReturnURL is invalid.

Posts: 1
Joined: 10/11/2008

Hi,

I'm having some problems intergrating ubercart with my paypal account & was hoping someone might be able to help.

I'm using the latest ubercart mod with the latest 6.5 drupal install, and have configured everything as much as I can see to do. I've followed the instructions to enable IPN on my paypal account with the URL set as blank.

I'm trying to use the PayPal Express Checkout payment setting so that I can get IPN and then perform some back-office action when the user has successfully paid.

The problem is this:
I add a product to the cart, click checkout and then when I click 'Review Order' I get the error message

Error message from PayPal:
ReturnURL is invalid.

& the process can't get past that page to the review & pay page.

Can anyone shed any light on this?
Thanks very much in advance,
chris

AttachmentSize
ReturnURL-is-invalid.jpg177.2 KB
Posts: 5625
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

We're not supporting Drupal 6 in the forums, as the forum posting help text indicates. I actually haven't even tested PayPal on D6 at all, but your report leads me to believe I'll have some work to do. Eye-wink

Posts: 28
Joined: 10/17/2007

Line 893 in uc_paypal.module:

    //$data .= $key .'='. drupal_urlencode(ereg_replace(',', '', $value)) .'&';
    $data .= $key .'='. urlencode($value) .'&';

Seems the drupal_urlencode is messing up the string. When changed to this (regular urlencode), it works fine for me.

Posts: 5625
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Interesting... I don't have any problems changing it back. I just converted Auth.Net and used the new drupal_urlencode() function there, so I may as well change it back in both places just in case.

Posts: 28
Joined: 10/17/2007

Yeah,
I haven't investigated as to exactly WHY drupal's urlcode is messing things up as oppsed to just "urlencode". If i get time ( lets all laugh at that...time Smiling ), I may do that.