pdh Posted May 4, 2006 Posted May 4, 2006 Hi, I've had a store running for about a year now an it's working fine with credit cards. However I want to use the paypal module (built in) and this seems to work - well the money ends up in my paypal account. However the order is not stored in OSC after the transaction is complete. When I click the 'return to merchant' button in paypal I get taken back to the log in screen and I appear to have been logged out. There is no record of the order being placed. Any ideas ? Paul.
boonespooner Posted May 5, 2006 Posted May 5, 2006 Hi, I've had a store running for about a year now an it's working fine with credit cards. However I want to use the paypal module (built in) and this seems to work - well the money ends up in my paypal account. However the order is not stored in OSC after the transaction is complete. When I click the 'return to merchant' button in paypal I get taken back to the log in screen and I appear to have been logged out. There is no record of the order being placed.Any ideas ? Paul. I don't have a solution, but I've been having the same problem and have been looking for a solution! Thanks!
pdh Posted May 6, 2006 Author Posted May 6, 2006 I don't have a solution, but I've been having the same problem and have been looking for a solution! Thanks! I found a soluton, if you are interested. It was posted in the paypal contributions. ---------- Go to catalog/includes/modules/payment/paypal.php. (Backup this file before editing.) At appx line 87 you'll find most of the following: $process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', $_SESSION['FixOrder']) . 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))) . tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('currency_code', $my_currency) . tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . /* and insert this line */ tep_draw_hidden_field('rm', 2) . tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); Save, upload, test. That's it! -------- I tried this and it fixed the problem. Paul.
♥14steve14 Posted May 6, 2006 Posted May 6, 2006 You could of course set up you paypal account to do the same, by entering the correct return url within your profile. REMEMBER BACKUP, BACKUP AND BACKUP
Pompeylad Posted May 6, 2006 Posted May 6, 2006 You could of course set up you paypal account to do the same, by entering the correct return url within your profile. Hi Steve, I have been using Worldpay for a few years, now that I can not afford the ?180pa charged I am now using Paypal. In the WP mod the return url was http://...../catalog/FILENAME_WPCALLBACK what would the correct PP url be? http://...../catalog/FILENAME_PPCALLBACK (thats just a shot in the dark my friend) I do take it that once the customer is returned to my site they will still be logged into their account. Thanks, Pompeylad. PHP?!? Long live HTML!!!! But then again we never stop learning.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.