Guest Posted June 24, 2003 Posted June 24, 2003 Hi i've activated the PayPal payment module in the Admin mode and added there our email address. But when i do a test-buy and choose PayPal as payment method and click on "confirm order" the paypal website opens with Payment Details and all the details of our PayPal account but the Order is not included in the Admin Orders List and i'll not get an email about the order. So the complete Order was erased it seems. What can i do? Any help is appreciated.
Guest Posted June 27, 2003 Posted June 27, 2003 noone who have a clue? please i really need help with this problem.
equilla Posted June 27, 2003 Posted June 27, 2003 Hi, Many people have problems with this on live sites (myself included). The fact is that the order is not actually created within osC until the point at which the customer has paid, clicked the continue in PayPal and then returned to your shop. It is the clicking on the Continue link in PayPal which some customers do not do, which means that you receive a PayPal payment with no clue as to what it was for! If you really want to test this out, the only way to do it is to actually buy and pay for something. Cheers, Mark Mark Stephens Contribs: http://www.oscommerce.com/community/contributions,1680 http://www.oscommerce.com/community/contributions,1467 http://www.oscommerce.com/community/contributions,1422
Guest Posted June 27, 2003 Posted June 27, 2003 Hi Mark Thank you very much for this info. So i have to create a second PayPal account and finish this test-buy with paying it. Or can i use the same PayPal account? thanks andreas
equilla Posted June 27, 2003 Posted June 27, 2003 Hi Andreas, There's no need to create another PayPal account; you could test with your existing one. I must admit I didn't bother to test this on my first install and hoped that it worked when the first customer came along (which it did!). If you do wish to test it completely though, why not create a dummy product that costs as little as possible (0.01 Euro or something...) ? Cheers, Mark Mark Stephens Contribs: http://www.oscommerce.com/community/contributions,1680 http://www.oscommerce.com/community/contributions,1467 http://www.oscommerce.com/community/contributions,1422
Guest Posted June 27, 2003 Posted June 27, 2003 hi Mark yes thats what i want to do now - creating an item for 1 euro and "buy" it. thanks andreas
equilla Posted June 27, 2003 Posted June 27, 2003 Just had a thought. I think you're right about the 2 accounts thing as I don't think PayPal ought to let you pay yourself! Easier in our house as we each have our own PayPal accounts.... Mark Mark Stephens Contribs: http://www.oscommerce.com/community/contributions,1680 http://www.oscommerce.com/community/contributions,1467 http://www.oscommerce.com/community/contributions,1422
Guest Posted June 27, 2003 Posted June 27, 2003 it works :-) thank you again for your help. all the best andreas
chfields Posted June 27, 2003 Posted June 27, 2003 Just in case someone doesn't click continue to get back to your site here is a mod to include into your PayPal module to you can see what the customer ordered on your PayPal payment notification (just in case they don't return to your site to complete the process and generate an invoice) - BACK UP BACK UP BACK UP change the following code: function process_button() { global $order, $currencies, $currency; if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') { $my_currency = $currency; } else { $my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5); } if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) { $my_currency = 'USD'; } $xx = ''; for ($i=0; $i<sizeof($order->products); $i++) { $xx .= $order->products[$i]['qty'] . '-' . ($order->products[$i]['name']) . '**'; } $process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', STORE_NAME . ' ' . $xx) . 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')) . tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); return $process_button_string; } the above code snippet replaces the code snippet in the catalog/includes/modules/payment/paypal.php file look for function process_button() { and then copy and paste and replace that section of code with the code above ___________
Guest Posted July 1, 2003 Posted July 1, 2003 Thank you so much for that mod. I was going to pull my hair out and I don't have that much left. :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.