vikerl Posted January 22, 2014 Posted January 22, 2014 Hello Community! Until now I was able to resolve all my osc problems by reading this forum. THANK YOU FOR THAT! But I can´t find any solution about this new bug! When placing an order with PayPal express checkout everything works perfect until PayPay redirects the user to my store! Instead of redirecting to /checkout_success.php (THANKS FOR BUYING etc.) the user comes back to /checkout_payment.php and a red bar at the top shows an error similar to this: "Please accept our Terms and Conditions ... blablabla". At this point it doesn´t matter if you check the "accept Terms" box or click "next" without agreeing -> the user is directed to the proper /checkout_success.php!!!! I´ve tried to put "automatic redirection URL" into PayPal settings in many different ways: http://www.exorno.eu...out_process.php http://www.exorno.eu...out_success.php https://www.exorno.e...out_process.php https://www.exorno.e...out_success.php www.exorno.eu/checkout_process.php www.exorno.eu/checkout_success.php WITHOUT SUCCESS! At the admin panel the orders are showing up perfectly and marked as "paid". So the communication between PayPal and my shop seems to work properly! PLEASE HELP!!!!! Feel free to try a buy at the shop! PayPal is set to sandbox! BUT the shop is in german language only! Hope somebody can help! Many Thanks and kind regards Viktor
vikerl Posted January 22, 2014 Author Posted January 22, 2014 I just realised that the /checkout_confirmation.php is skipped! It should be /checkout_payment.php -> /checkout_confirmation.php -> /checkout_success.php Maybe this is the problem? But how to solve it??
vikerl Posted January 22, 2014 Author Posted January 22, 2014 This is the code where I thing the bug is inside! Can anyone help?? //osc-support-edition BOF if ($messageStack->size('terms_agree') > 0) { echo $messageStack->output('terms_agree'); } //osc-support-edition EOF ?> <?php echo tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', 'onsubmit="return check_form();"', true); ?> <div class="contentContainer"> <?php if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) { ?> <div class="contentText"> <?php echo '<strong>' . tep_output_string_protected($error['title']) . '</strong>'; ?> <p class="messageStackError"><?php echo tep_output_string_protected($error['error']); ?></p> </div> <?php } ?> <h2><?php echo TABLE_HEADING_BILLING_ADDRESS; ?></h2> <div class="contentText"> <div class="ui-widget infoBoxContainer" style="float: right;"> <div class="ui-widget-header infoBoxHeading"><?php echo TITLE_BILLING_ADDRESS; ?></div> <div class="ui-widget-content infoBoxContents"> <?php echo tep_address_label($customer_id, $billto, true, ' ', '<br />'); ?> </div> </div> <?php echo TEXT_SELECTED_BILLING_DESTINATION; ?><br /><br /><?php echo tep_draw_button(IMAGE_BUTTON_CHANGE_ADDRESS, 'home',tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL')); ?> </div> <div style="clear: both;"></div> <h2><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></h2> <?php $selection = $payment_modules->selection(); if (sizeof($selection) > 1) { ?> <div class="contentText"> <div style="float: right;"> <?php echo '<strong>' . TITLE_PLEASE_SELECT . '</strong>'; ?> </div> <?php echo TEXT_SELECT_PAYMENT_METHOD; ?> </div> <?php } elseif ($free_shipping == false) { ?> <div class="contentText"> <?php echo TEXT_ENTER_PAYMENT_INFORMATION; ?> </div> <?php } ?> <div class="contentText"> <?php $radio_buttons = 0; for ($i=0, $n=sizeof($selection); $i<$n; $i++) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php if ( ($selection[$i]['id'] == $payment) || ($n == 1) ) { echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } else { echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } ?> <td><strong><?php echo $selection[$i]['module']; ?></strong></td> <td align="right"> <?php if (sizeof($selection) > 1) { echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment)); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } ?> </td> </tr> <?php if (isset($selection[$i]['error'])) { ?> <tr> <td colspan="2"><?php echo $selection[$i]['error']; ?></td> </tr> <?php } elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) { ?> <tr> <td colspan="2"><table border="0" cellspacing="0" cellpadding="2"> <?php for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) { ?> <tr> <td><?php echo $selection[$i]['fields'][$j]['title']; ?></td> <td><?php echo $selection[$i]['fields'][$j]['field']; ?></td> </tr> <?php } ?> </table></td> </tr> <?php } ?> </table> <?php $radio_buttons++; } ?> </div> <h2><?php echo TABLE_HEADING_COMMENTS; ?></h2> <div class="contentText"> <?php echo tep_draw_textarea_field('comments', 'soft', '60', '5', $comments); ?> </div> <?php // osc-support-edition BOF require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS); ?> <h2><?php echo HEADING_AGB_INFORMATION; ?></h2> <div class="contentText"> <div class="termsContainer"><?php echo TEXT_AGB_CHECKOUT; ?></div> </div> <?php require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WIDERRUF); ?> <h2><?php echo HEADING_WIDERRUF_INFORMATION; ?></h2> <div class="contentText"> <div class="termsContainer"><?php echo TEXT_WIDERRUF_CHECKOUT; ?></div> </div> <div class="contentText"> <div style="float:left;"><?php echo tep_draw_checkbox_field('terms', 'true'); ?></div> <div style="float:left; margin-left:10px;"><?php echo TERMS_ACCEPT_TEXT; ?></div><br style="clear: both;" /> </div> <?php // osc-support-edition EOF ?> <div class="contentText"> <div style="float: left; width: 60%; padding-top: 5px; padding-left: 15%;"> <div id="coProgressBar" style="height: 5px;"></div> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' .CHECKOUT_BAR_DELIVERY . '</a>'; ?></td> <td align="center" width="33%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_PAYMENT; ?></td> <td align="center" width="33%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td> </tr> </table> </div> <div style="float: right;"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></div> </div> </div> <script type="text/javascript"> $('#coProgressBar').progressbar({ value: 66 }); </script> </form> <?php require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
♥Tsimi Posted January 22, 2014 Posted January 22, 2014 i found following topic: http://www.oscommerce.com/forums/topic/393413-paypal-express-redirect-to-checkout-successphp/ don't know if that helps. viel glück!
vikerl Posted January 22, 2014 Author Posted January 22, 2014 Thanks for Your reply! But unfortunately it doesn´t help!
zefeena Posted January 22, 2014 Posted January 22, 2014 Hi, I had a few problems with the paypal express. It did bring it back to my page and the customer had to 'confirm' again before the order completed. However, when a customer goes direct from your website to paypal without logging into your site paypal effectively has no way of knowing where in the world the customer is, hence cannot calculate postage without the customer logging into paypal and therefore being recognised. Hence it does need to bring the customer back to your website after logging into paypal to confirm the postage is correct. Does that make sense? It actually caused me more problems as customers saw the wrong postage. Do you have postage method? I don't speak German and he site didn't load for me(my poor internet), but notice the word 'hotel' in the browser so thought you might be selling accomodation not needing to be shipped! Running a botched up version of osCommerce Online Merchant v2.3.4 bootstrap with the dresscode theme installed, numerous add-ons, terrible coding, terrible website, but will have to make do until I have made up for my losses and can risk shutting down for a couple of weeks while I start all over again. - I did not install my program but am endeavouring to fix it with your help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.