Jump to content

PayPal Return URL throwing 405 error when paying by credit card


Guest sparrowdog

Recommended Posts

Guest sparrowdog

I have a problem that's happening on two websites I have set up that PayPal can't seem to find a fix for. Both shops are running Cube Cart 3.0.13

Both sites have a business PayPal account. The Return URL info is set up correctly inside PayPal. When you pay with a PayPal account, you successfully get returned to the client's website. When you pay through PayPal using a credit card, you don't.

The transaction is successful but when you get back to the www.domainname.com/thanks.htm page, you get an Error 405 Method Not Allowed error message in the browser. The requested method POST is not allowed for the URL www.domainname.com/thanks.htm

While I'm guessing this is indeed a PayPal issue, they say they have doen test runs through my shop and could not replicate the error.

They suggested I do the following (below). Has anyone else come across this? Know of a fix?

Something that you may wish to try is removing the "rm" variable that is being passed in the code to PayPal. This is part of the form information sent to PayPal at the end of the transaction.

Here is a copy of the form as I was able to obtain from a test transaction on your site:

<input type='hidden' name='cmd' value='_xclick' />

<input type='hidden' name='business' value='[email protected]' />

<input type='hidden' name='item_name' value='Cart Order No: 061118-110335-8964' />

<input type='hidden' name='item_number' value='061118-110335-8964' />

<input type='hidden' name='amount' value='29.00' />

<input type='hidden' name='shipping' value='4.70' />

<input type='hidden' name='invoice' value='061118-110335-8964' />

<input type='hidden' name='first_name' value='test' />

<input type='hidden' name='last_name' value='drive' />

<input type='hidden' name='currency_code' value='AUD' />

<input type='hidden' name='address1' value='2 test drive' />

<input type='hidden' name='address2' value='' />

<input type='hidden' name='city' value='chicago' />

<input type='hidden' name='state' value='IL' />

<input type='hidden' name='zip' value='60611' />

<input type='hidden' name='day_phone_a' value='888-555-8888' />

<input type='hidden' name='add' value='1' />

<input type='hidden' name='rm' value='2' />

<input type='hidden' name='no_note' value='1' />

<input type='hidden' name='upload' value='1' />

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...