Jump to content



trier

Member Since 03 Jul 2008
OFFLINE Last Active Apr 27 2017 08:42
-----

Topics I've Started

PayPal Standard Return

24 April 2017 - 11:45

Can someone please put me out of my misery and explain how payments via PayPal Standard reach checkout_success. I am setting up a new 2.3.4BS Edge with the latest PayPal app. The first couple of runs returned to checkout_success. PayPal Standard payments, though successful, are now returning to an empty shopping_cart. Every time I check the scripts I (obviously wrongly) come to the conclusion that an empty shopping_cart is correct:
 
 
PayPal returns to checkout_process -
 
    checkout_process    @ line 46:    $payment_modules = new payment($payment);
 
        function paypal_standard   @ line 75:    $this->pre_before_check();
 
        function pre_before_check  @ line 659:   (may call $this->after_process(); if IPN already actioned)
 
    checkout_process (continues)    @ line 81:   $payment_modules->before_process();
 
        function before_process    @ line 801:   $this->after_process();
 
        function after_process  clears cart, unregister variables, tep_redirect(tep_href_link('checkout_process.php', '', 'SSL'));
 
    checkout_process (restarts)    @ line 22:    if ($cart->count_contents() < 1) { tep_redirect(tep_href_link('shopping_cart.php')); }
 
 
As far as I can see the only route to checkout_success is at the end of checkout_process which (intentionally?) is never reached, to get there another order would be created and email sent?
 
 
Also, to confirm, the order_status_history table is updated with a status OSCOM_APP_PAYPAL_PS_PREPARE_ORDER_STATUS_ID by the return processing and by the IPN process (i.e. 2 entries intentionally). The table is only updated with the OSCOM_APP_PAYPAL_PS_ORDER_STATUS_ID by the return processing (i.e. never by the IPN).

v2.3.4 Edge PayPal Standard question

03 November 2016 - 12:00

Hi, I think I’m going round in circles & missing something:
 
Is the a minor fault in the latest version (2.3.4 Edge) of includes>modules>payment>paypal_standard.php -
 
    The last line in function after_process()
 
        is                 tep_redirect(tep_href_link('checkout_process.php', '', 'SSL'));
        should it be tep_redirect(tep_href_link('checkout_success.php', '', 'SSL'));  ?
 
 
 
v2.4 :heart:  :heart:  :heart:  :D  :D  :D