risonav Posted May 27, 2003 Posted May 27, 2003 Hello. I am very new to osCommerce and am having trouble with my payment confirmation. When I click on the "confirm order" button it takes me to PayPal's opening page (www.paypal.com). If i click "back" and then click the "confirm order" again, it will then take me to the correct PayPal payment details page. Does anyone know how I can make sure it goes there directly each time? Thanks! http://www.risonav.com/catalog/default.php Jen
risonav Posted May 29, 2003 Author Posted May 29, 2003 I really need this fixed and I can't seem to get anything to work! Can't anyone help? :cry: Jen
risonav Posted June 2, 2003 Author Posted June 2, 2003 No one can figure this out? Or is it so simple that no one wants to point out how stupid I am :oops: If I overlooked something- please let me know. This is driving me crazy!!! Jen
Daemonj Posted June 2, 2003 Posted June 2, 2003 More than likely, everyone that knows the answer is currently busy somewhere else. I am sure that someone will assist you when they visit the forums and see your post. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
risonav Posted June 2, 2003 Author Posted June 2, 2003 Thanks. I wasn't trying to sound mean or anything- hope no one got that impression. I'll just keep playing with it and hope that some php superman comes to my rescue! -Jen Jen
Daemonj Posted June 2, 2003 Posted June 2, 2003 Thanks. I wasn't trying to sound mean or anything- hope no one got that impression. I'll just keep playing with it and hope that some php superman comes to my rescue! -Jen No worries. Everyone understands that you have a problem that is frustrating you. You post a question here hoping to receive some help but have not, adding further frustration. We have all been there at one point. ;) I was just trying to impart that nobody is paid to watch the boards and provide answers. We are all people that have become familiar with osC enough that when someone has a problem with an area that we are familiar with we try to help them out just as we were previously helped out by someone else. Sorry the rambling. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Daemonj Posted June 2, 2003 Posted June 2, 2003 One suggestion that I have is to view the source for the checkout confirmation page and see what the action is set to for the form. That might give you some indication as to why it is not working properly. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
risonav Posted June 2, 2003 Author Posted June 2, 2003 <?php if (isset($$payment->form_action_url)) { $form_action_url = $$payment->form_action_url; } else{ $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'); } echo tep_draw_form('checkout_confirmation', $form_action_url, 'post'); if (is_array($payment_modules->modules)) { echo $payment_modules->process_button(); } echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "n"; ?> Jen
Daemonj Posted June 2, 2003 Posted June 2, 2003 That all looks correct. Can you disable SSL on your site, bring up the confirmation page, and view the source to see what that looks like? Be sure to re-enable SSL as soon as you are done. ;) "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
risonav Posted June 2, 2003 Author Posted June 2, 2003 Can't disable SSL for some reason. Maybe I'm doing it wrong. I'll let you know what the source looks like if I get SSL disabled. Thanks for your help. Jen
Daemonj Posted June 2, 2003 Posted June 2, 2003 To disable SSL, edit your catalog/includes/configure.php file and the third entry should be Enable SSL. Just set that to False to disable the use of SSL. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
risonav Posted June 2, 2003 Author Posted June 2, 2003 I tried to do that 3 times, but it wouldn't disable SSL. I just tried again and it worked- weird. Anyway the source for the paypal form looks like this: <form name="checkout_confirmation" action="https://secure.paypal.com/cgi-bin/webscr" method="post"><input type="image" src="includes/languages/english/images/buttons/button_confirm_order.gif" border="0" alt="Confirm Order" title=" Confirm Order "></form> </tr> <tr> </table></td> </tr> </table></form></td> Jen
Daemonj Posted June 2, 2003 Posted June 2, 2003 If you did not clear your cache and your temporary files, that is probably what was causing your problem with the https still being used. ;) That code is correct. The only thing that I can think of is perhaps your problem is due to PayPal. Such as an order comes through when their site is busy and the user gets redirected to their home page because they are not able to process the order at that time. A suggestion would be to try the PayPal IPN contribution. As this uses a different method of connection to PayPal perhaps it may resolve your problem. The one thing that I can tell you is that everything you have is correct. That means the problem has to be outside of your site (i.e. PayPal). "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
risonav Posted June 3, 2003 Author Posted June 3, 2003 Well now I've done it... I contacted PayPal, but they couldn't figure out what was wrong so I installed PayPal IPN to see if that would help. Now when I try to add an item to my cart the shopping_cart.php page comes up and says "Your Shopping Cart is empty!" Maybe I loaded something wrong? Jen
Daemonj Posted June 3, 2003 Posted June 3, 2003 I would not think that adding the PayPal IPN payment method would affect your cart. Just as reassurance, I would recommend going through the IPN install instuctions again and making sure that you did not miss something or put something in the wrong place. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
risonav Posted June 3, 2003 Author Posted June 3, 2003 I reloaded all of the PayPal IPN files and made sure that they were all located in the correct place. Unfortunately my cart still shows empty when I try to add items. The code on the application_top page (which is one of the pages that gets changed when PayPal IPN is added) for the "add to cart" button is: // customer adds a product from the products page case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; // performed by the 'buy now' button in product listings and review page case 'buy_now' : if (isset($HTTP_GET_VARS['products_id'])) { if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])); } else { $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1); } Is this what might be messed up? Has this ever happened to anyone else? Jen
Recommended Posts
Archived
This topic is now archived and is closed to further replies.