Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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.

  • 6 months later...
Posted (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 by slattman

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...