oringmonkey Posted July 18, 2009 Share Posted July 18, 2009 If your customers are using Paypal to check out and they're getting the message "Sorry - your last action could not be completed", the solution is: Edit Paypal.php (Includes>Modules>Payments>Paypal.php) Search for this line: $this->form_action_url = 'https://secure.paypal.com/cgi-bin/webscr'; Change it to: $this->form_action_url = 'https://www.paypal.com/cgi-bin/webscr'; Worked like a charm for me! Quote Link to comment Share on other sites More sharing options...
spooks Posted July 18, 2009 Share Posted July 18, 2009 nice tip, thanks Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
haggisv Posted July 19, 2009 Share Posted July 19, 2009 I've had a lot of trouble like this lately... hope that does the trick, thank a lot! When did this problem start for you? Mine started about a month ago... Cheers! Quote Link to comment Share on other sites More sharing options...
oringmonkey Posted July 19, 2009 Author Share Posted July 19, 2009 Mine started 2 nights ago which was weird. I haven't done any changes to the site so not sure why Paypal was blaming OSCommerce for the problem They said that 5 or 6 other people called in for the same exact problem within the past 2 days also and said that there has been no changes to Paypal...but ooh well at least the problem was solved. For me at least (I'm in no way a programmer). Hope it helps out! Quote Link to comment Share on other sites More sharing options...
hejhog Posted July 19, 2009 Share Posted July 19, 2009 Hello, Was suffering the same problem. I use the standard paypal.php module in includes>modules>payments . It appears the issue could be with the "cmd" _xclick method. It has also been suggested that _xclick is being phased out but I cannot find an official answer from PayPal. The following changes from _xclick to _cart method. 1. Backup includes>modules>payments>paypal.php 2. Backup includes>modules>payments>paypal.php !!!! 3. Open paypal.php in an editor and find $process_button_string (approx line 88) 4. Change $process_button_string = tep_draw_hidden_field('cmd', '_xclick') . to $process_button_string = tep_draw_hidden_field('cmd', '_cart') . 5. Add an extra hidden field tep_draw_hidden_field('upload', '1') . You can copy and paste this line into the string after $process_button_string = tep_draw_hidden_field('cmd', '_cart') . 6. Change tep_draw_hidden_field('item_name', STORE_NAME) . to tep_draw_hidden_field('item_name_1', STORE_NAME) . 7. Change tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . to tep_draw_hidden_field('amount_1', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . 8. Change tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) to tep_draw_hidden_field('shipping_1', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) 9. Save and upload. 10. Run a checkout test to PayPal. Hope this helps. Many Thanks, Shaun hejhog Quote Link to comment Share on other sites More sharing options...
haggisv Posted July 20, 2009 Share Posted July 20, 2009 Mine started 2 nights ago which was weird. I haven't done any changes to the site so not sure why Paypal was blaming OSCommerce for the problem They said that 5 or 6 other people called in for the same exact problem within the past 2 days also and said that there has been no changes to Paypal...but ooh well at least the problem was solved. For me at least (I'm in no way a programmer). Hope it helps out! Sounds just like mine! That seemed to fix it for me, thank a lot!!! If you're not a programmer, how on earth did you figure it out??? :lol: Quote Link to comment Share on other sites More sharing options...
oringmonkey Posted July 20, 2009 Author Share Posted July 20, 2009 Sounds just like mine! That seemed to fix it for me, thank a lot!!! If you're not a programmer, how on earth did you figure it out??? :lol: Hahah! I did a lot of searches on Google and here and found the post by Magdalena and tried it out. I'm still puzzled as to why or how everything suddenly changed... Quote Link to comment Share on other sites More sharing options...
obsolete Posted July 21, 2009 Share Posted July 21, 2009 Thanks! I think this fixed my problem! Mine started a few days ago as well, and Paypal tried to blame OsCommerce at first, claiming they didn't change anything. Then Paypal told me I must have been hacked. :blink: I am glad to see I am not the crazy one here... Quote Link to comment Share on other sites More sharing options...
lloydrobbins Posted July 21, 2009 Share Posted July 21, 2009 Thanks, Oringmonkey - that did the trick! Quote -- Lloyd "Managing programmers is like herding cats." Link to comment Share on other sites More sharing options...
oringmonkey Posted July 21, 2009 Author Share Posted July 21, 2009 Hahah, actually everyone should be thanking Magdalena. All I did was just post this with a clear title stating the exact problem so people could find it easily :) Quote Link to comment Share on other sites More sharing options...
Logcbnfvr Posted July 24, 2009 Share Posted July 24, 2009 Thank you, Thank you, Thank you... Quick and painless fix :) Quote Log Cabin Fever Gifts Link to comment Share on other sites More sharing options...
smitp11 Posted August 3, 2009 Share Posted August 3, 2009 Haha, PayPal tried to blame our code too. The above fix worked for me, but I suspect PayPal has been tinkering with their own systems, I'm sure they would have told the likes of eBay about this change, but not the common man. Thanks again. Quote Link to comment Share on other sites More sharing options...
arzooloo Posted August 5, 2009 Share Posted August 5, 2009 Haha, PayPal tried to blame our code too. The above fix worked for me, but I suspect PayPal has been tinkering with their own systems, I'm sure they would have told the likes of eBay about this change, but not the common man. Thanks again. Thank you for the Tip!! Paypal tried to blame my code and when I stated it used to work and we have not changed anything they had no answers and said they would escalate it. Still have not heard and that was 1 week ago. I suspect Paypal is tinkering and maybe that was an old page that they were phasing out and did not realise people were still using it. Quote Link to comment Share on other sites More sharing options...
wjansen Posted January 18, 2010 Share Posted January 18, 2010 Hello, According to oringmokey's reply the answer to the PayPal problem would be to change a small part in the file Paypal.php. Edit Paypal.php (Includes>Modules>Payments>Paypal.php) Search for this line: $this->form_action_url = 'https://secure.paypal.com/cgi-bin/webscr'; Change it to: $this->form_action_url = 'https://www.paypal.com/cgi-bin/webscr'; I've searched all the Magento folders but could not find a file called "Paypal.php". Therefor unable to do the changes. Perhaps I'm missing something. But does this file come with Magento or is it part of one of the extensions. Would very much like to solve this annoying problem. Thanks in advance, Willem Quote Link to comment Share on other sites More sharing options...
AxelMoerman Posted July 7, 2010 Share Posted July 7, 2010 This is maybe a stupid question... But where can i find that file Paypal.php? Please help Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.