Jump to content
Sign in to follow this  
MikeHunt79

I need to pass my order ID to my payment gateway.

Recommended Posts

I'm using the metacharge payment gateway, but I've run into a bit of a problem.

 

Now, it uses hidden fields to pass the info to the metacharge payment gateway, and at the moment it passes the storename and the customers name to the gateway.

	tep_draw_hidden_field('strCartID', STORE_NAME.' : '.$order->customer['firstname'].' '.$order->customer['lastname']).

Now, how do I change this line so it passes on the order ID?

 

I guess it would be this, is this correct?

	tep_draw_hidden_field('strCartID', $order->['orders_id']).

Share this post


Link to post
Share on other sites

Allow me to bump this for you...Ive been trying to do this for months...basically you cant include an order_id with a payment module until AFTER the checkout_process.php page is complete. Im also looking for a solution to this issue, seems crazy no one has figured this out before!

Share this post


Link to post
Share on other sites
Allow me to bump this for you...Ive been trying to do this for months...basically you cant include an order_id with a payment module until AFTER the checkout_process.php page is complete. Im also looking for a solution to this issue, seems crazy no one has figured this out before!

if you check the pre-logged orders contributions they do exactly that:

http://www.oscommerce.com/community/contributions,1153

http://www.oscommerce.com/community/contributions,871

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×