Hi everyone. I offer both PayPal and PayPal Pro as payment options. I want every end process to show order details, similar to what a customer would receive in their confirmation email. As per another thread where Nicholas mentions adding the code below to either end.php or after_end.php depending on whether payment is internal or external, I have done that, which works perfectly when I add it to either end or after_not, but not to both. Since I offer both payment options, how can I ensure that both payment options redirect correctly? When I add it to end.php and try to pay with PayPal, it redirects me prematurely and I cannot pay.
The code I'm trying to add:
$app=& JFactory::getApplication();
$app->redirect(hikashop::completeLink('order&task=show&order_id='.$app->getUserState('com_hikashop.order_id'),false,true));
This is what I currently have configured:
- On HikaShop I have left the end URL/return URL blank for both PayPal and PayPal Pro, just in case.
- Checkout workflow: confirm_cart_coupon_login_address_shipping_payment_fields_status,end
- On the PayPal end, I am required to put a return URL, and I have index.php?option=com_hikashop&ctrl=checkout&task=after_end
What should I change to achieve this?
Thank you in advance! The support on here is incredible, and I'll be recommending HikaShop as often as I can.