douglaswalker Posted April 14, 2017 Share Posted April 14, 2017 Happy Easter A simple question I hope and not to tricky for your chocolate infused brains. I am trying to identify on checkout_confirmation when PayPal payment is the method being used. It is for affiliate code so I can check paypal sales match up. I have this code... if (tep_session_is_registered('cart_PayPal_Standard_ID')){} It correctly identifies PayPal on checkout confirmation but I just wondered if there is another way... A better way? Doug Link to comment Share on other sites More sharing options...
♥ecartz Posted April 18, 2017 Share Posted April 18, 2017 if (substr($payment_modules->selected_module, 0, 6) == 'paypal') { This would catch any of the modules that start 'paypal', e.g. PayPal Standard, PayPal Express, etc. If you just want to catch Standard if ($payment_modules->selected_module == 'paypal_standard') { This is from memory, so if it doesn't work, try echoing the value to the screen. Note that you have to do this after the payment modules object is created. It won't work at the top of the file. // load the selected payment module require(DIR_WS_CLASSES . 'payment.php'); $payment_modules = new payment($payment); Always back up before making changes. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.