Jump to content


Photo

contact@thelovegame.net


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

#1 Kate

Kate

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 16 December 2002 - 11:45 PM

When my test users return from PayPal, the return url throws up a Method Not Allowed
The requested method POST is not allowed for the URL /foo.html . The variables are passed from an initIPN.pl with ...
$vars = "cmd=_xclick-subscriptions&" .
"business=contact\@foo.com&" .
"a1=0.00&" .
"p1=1&" .
"t1=M&" .
"a3=0.00&" .
"p3=1&" .
"t3=Y&" .
"src=1&" .
"sra=1&" .
"custom=$user" . "&" .
"return=http://www.foo./xxx.html";

# redirect to paypal subscriptions
$cgiobject=new CGI;
$redirURL="https://www.paypal.com/cgi-bin/webscr?" . $vars;
print $cgiobject->redirect($redirURL);
My host has no clues and the server error log doesn't help either, in fact this error seemed to appear ut of nowhere, without editing this side. Please help.
Thanking you in advance
Kate


Cyberkate

#2 PayPalStephen

PayPalStephen

    Advanced Member

  • Members
  • 2,138 posts

Posted 17 December 2002 - 08:05 AM

You will want to check the file has permissions set to 755.

Stephen Ivaskevicius
PayPal/eBay, Inc.
www.paypal.com/pdn

#3 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 17 December 2002 - 12:44 PM

This used to happen because the "Access Subscription" button was a POST for subscriptions. But it was changed to a link which should avoid the error message you are seeing. To ensure that a link is used, you can include the field "rm=1" to your signup link (rm=2 will force a POST).

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn

#4 Kate

Kate

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 06 February 2003 - 10:29 PM

Thankyou for your replies, but I am still having some difficulties,
With this
"rm=2&" ."&"."return=http://www.thelovegame.net/foo/return.html";
it takes me to the subscribers Paypal account and this is no good at all.
Is there something wrong with my syntax? The script does not fall over. On its own, unconcatenated the method post not allowed returns

my working (except for method post not allowed) code looks like this
$vars = "cmd=_xclick-subscriptions&" .
"business=foo\@thelovegame.net&" .
"a1=1.00&" .
"p1=1&" .
"t1=M&" .
"a3=1.00&" .
"p3=1&" .
"t3=Y&" .
"rm=2&" .
"src=1&" .
"sra=1&" .

"custom=$user" . "&" .
"return=http://www.thelovegame.net/foo/fooindex2.html";

# redirect to paypal subscriptions
$cgiobject=new CGI;
$redirURL="https://www.paypal.com/cgi-bin/webscr?" . $vars;
print $cgiobject->redirect($redirURL);
}

This code may look a little odd because the username and password are concatenated prior and written to my database from initIPN.pl, carries all the paypal vars to ipn.pl. No card details are written though. Plese assist, thanking you in advance

Cyberkate

#5 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 07 February 2003 - 12:13 PM

The "Coninue" button/link will bring the user to their PayPal account if our system cannot determine a "return" URL.

The double '&' could be the problem:

"rm=2&" ."&"."return

Can you supply the finished URL?

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn

#6 Kate

Kate

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 07 February 2003 - 10:32 PM

Thankyou for the assistance.
the return path is http://www.thelovega...bersindex2.html
I am wondering if this method post not allowed maybe because of permissions on folders. It is now set at 755 but was at 777, still no joy. The thing is that my code was working (before rm=2, what does this stand for please?)and then out of the blue this error appeared. My memory tells me that it happened before my server moved and many problems occurred as a result of this. However I am not totally confident in my recall re this.
Thanks again
Kate

Cyberkate




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users