Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi everyone,

 

I'm trying to figure out what I need to do to configure OSCommerce to pass the product name and description through to Authorize.net so that when I receive an authnet email receipt, I know what product was ordered. Right now it only has the amount.

 

I see in the authorizenet.php module located in /includes/modules/payment, there are some lines of code that control what get passed through to the authorize.net post url.

 

They look like:

 

tep_draw_hidden_field('x_first_name', $order->billing['firstname']) .

tep_draw_hidden_field('x_last_name', $order->billing['lastname']) .

tep_draw_hidden_field('x_address', $order->billing['street_address']) .

 

I should be able to add a line like this to also pass product name to authorize.net:

tep_draw_hidden_field('x_description', $order->products['name']) .

 

I found that variable in the checkout_confirmation.php script that uses the authorizenet.php module, but it's not doing anything when used in the payment module. It does create a hidden field called x_description, but the script doesn't recognize the variable, so that field just gets left blank. No value is entered.

 

I can't figure this out because the checkout_confirmation script uses that variable fine and the product name displays on this same page.

 

Any ideas? Surely someone has run into this before.

 

Thanks.

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...