dxbrich Posted June 28, 2006 Posted June 28, 2006 Hi there, I'm a ColdFusion developer who's been asked by a friend to set-up oscommerce and add cashu as a payment module. I've added the module, but need to add a variable to the cashu form that allows me to call the cart and customer info back when they are finished at cashu. This field has to be called txt1. What variable do I need to pass? I cannot pass a url with osCsid as the url is defined at the payment gateway. How do I call this variable when I return to customer_process.php? Form.txt1 will be returned. Thanks, Rich Quote
Guest Posted June 28, 2006 Posted June 28, 2006 Depends how the form is setup. If it's a POST then set the txt1 as a hidden variable. Append it in the $process_button_string var in the payment module tep_draw_hidden_field('txt1', tep_session_id()) . or you could pass an array (serialize/unserialize) with a bunch of extra parameters. Quote
dxbrich Posted June 28, 2006 Author Posted June 28, 2006 Thanks for getting back to me. That works great for putting the session id into the gateway. How do I know use this value (txt1) that is returned to checkout_process.php to stop it going to a login and pull the cart and complete the order? I'm sure this is simple, but cannot get it to work. Quote
Guest Posted June 29, 2006 Posted June 29, 2006 I do not know the specifics of the whole transaction. If you have the api then you could control the session coming back and set it in includes\apllication_top.php via the $HTTP_GET_VARS and do a redirect with the osc session on the same page before a new session is created. Quote
slattman Posted January 4, 2007 Posted January 4, 2007 (edited) Hi there, I'm a ColdFusion developer who's been asked by a friend to set-up oscommerce and add cashu as a payment module. I've added the module, but need to add a variable to the cashu form that allows me to call the cart and customer info back when they are finished at cashu. This field has to be called txt1. What variable do I need to pass? I cannot pass a url with osCsid as the url is defined at the payment gateway. How do I call this variable when I return to customer_process.php? Form.txt1 will be returned. Thanks, Rich I agree with enigma, use a session and store a serialized variable or something like that. Edited January 4, 2007 by slattman Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.