Re: Remotely Hosted Payment Page - Possible?!?!
Update
It is deffinatly checkout_process.php that needs to let order.php know this unique value.
checkout_process.php reads the value being passed to it from the gateway and I've been working on adding code to it to make that same value available to order.php so it includes it in the confimration email.
However, the strange thing is order.php is called from within checkout_process.php so I can't really create a session wthin checkout_process.php.
Any ideas anyone??
Re: Remotely Hosted Payment Page - Possible?!?!
Quote:
Originally Posted by Vger
Please feel free to write one. And once you've done it post the info here, as I'm sure others would be interested to have it.
Vger
I would love to, but the documentation is rather sparse.
Regards,
Ian Tresman
Re: Remotely Hosted Payment Page - Possible?!?!
Well after quite a while and with the kind input of Merlinpa1969 and Vger, we are not able to get Zen to read a simple value being passed back to it by a remotely hosted gateway and put it on the order confirmation emails.
From my previous posts you will see the result of all attempts, most have been per the kind suggestions from the above two "zenners".
I narrowed it down to one area:
order.php is unable to read the a value being passed back to it and therefore is unable to add it to the confirmation emails.
I'm heading over to the "suggestion" section because its a pretty basic function. OSCommerce does it without a problem - and this is something I don't like admitting very easily.
Thanks
Re: Remotely Hosted Payment Page - Possible?!?!
Re: Remotely Hosted Payment Page - Possible?!?!
Who and where is DrByte???
Re: Remotely Hosted Payment Page - Possible?!?!
DrByte is a dev here.
he willbe your best help on this
do a member search he is easy to find
Re: Remotely Hosted Payment Page - Possible?!?!
I've PM'd DrByte, hope this is the appropriate thing to do. He must get hammered with mundane requests. At least he'll see that no stone has been left unturned in our quest here.
Thanks Merlinpa1969
1 Attachment(s)
Re: Remotely Hosted Payment Page - Possible?!?!
This is not a problem in Zen Cart. The problem is with missing logic in the payment module.
PHP Code:
function before_process() {
return false;
}
should be
PHP Code:
function before_process() {
global $messageStack, $order;
if (!isset($_POST['ord']) || $_POST['ord'] == '') {
$messageStack->add_session('checkout_payment', MODULE_PAYMENT_EPATH_ERROR, 'error');
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
}
$_SESSION['ord'] = $_POST['ord']; // this is just to keep it handy for other purposes ... it's not really needed
$order->info['comments'] .= sprintf(MODULE_PAYMENT_EPATH_RECEIPT_NUMBER_TEXT, $_POST['ord']);
return $_POST['ord'];
}
There are a couple other errors in the code you had sent to Merlin. I'm attaching the updated files for your convenience.
Re: Remotely Hosted Payment Page - Possible?!?!
What can I say.
It works perferctly and e-Path have approved it as the offical module for Zencart for the e-Path payment gateway.
They have given you a nice mention and published an extra link to these forums I think.....
http://thefruitboxshop.com/shopping_carts.html
Thank you oh great one.
Re: Remotely Hosted Payment Page - Possible?!?!
Actually, they requested some minor alterations to the module which I have completed before they signed off on it being the officially approved one for e-Path (as far as they are concerned). But the fact remains it would not have happened had it not been for the great DrByte.
Thanks