close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Authorize.net and Size Problem

Thread began 6/30/2009 6:04 am by lee365928 | Last modified 6/30/2009 3:22 pm by lee365928 | 1608 views | 10 replies |

lee365928

Authorize.net and Size Problem

Originally everything seemed to be working except that my static size info wasn't being displayed on my authorize.net receipt email. I've tried appending the size to the name or details in the local checkout server behavior mentioned in this thread,

showthread.php?t=465&highlight=authorize.net

but then I started being redirected to the checkout_failure page. I added the local checkout response to my failure page so that I could see what was causing the problem and now it displays whatever size was previously selected on the failure page. Clearly I'm doing something wrong, but I'm not sure what to try next.

Sign in to reply to this post

Ray BorduinWebAssist

Please include the "full response" error message from authorize.net. That might help me determine what is going wrong.

Sign in to reply to this post

lee365928

Progress

Ok, I've made a bit of progress. now the size shows up on the customer's email receipt, but not on my merchant receipt. here's the code i added. maybe i missed something?

$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "ID";
$AuthNet_itemized[1][$nextIndex] = "".$OandACart->DisplayInfo("ID") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Name";
$AuthNet_itemized[1][$nextIndex] = "".$OandACart->DisplayInfo("Name") ."";
$AuthNet_itemized[0][$nextIndex] = "Size";
$AuthNet_itemized[1][$nextIndex] = "".$OandACart->DisplayInfo("Size") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Description";
$AuthNet_itemized[1][$nextIndex] = "".$OandACart->DisplayInfo("Description") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Quantity";
$AuthNet_itemized[1][$nextIndex] = "".$OandACart->DisplayInfo("Quantity") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Price";
$AuthNet_itemized[1][$nextIndex] = "".$OandACart->DisplayInfo("Price") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Taxable";
$AuthNet_itemized[1][$nextIndex] = "YES";

Sign in to reply to this post

Ray BorduinWebAssist

I think it should be:

$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "ID";
$AuthNet_itemized[1][$nextIndex] = "".$OandACart->DisplayInfo("ID") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Name";
$AuthNet_itemized[1][$nextIndex] = "".$OandACart->DisplayInfo("Name") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Description";
$AuthNet_itemized[1][$nextIndex] = "".$OandACart->DisplayInfo("Size")." ".$OandACart->DisplayInfo("Description") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Quantity";
$AuthNet_itemized[1][$nextIndex] = "".$OandACart->DisplayInfo("Quantity") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Price";
$AuthNet_itemized[1][$nextIndex] = "".$OandACart->DisplayInfo("Price") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Taxable";
$AuthNet_itemized[1][$nextIndex] = "YES";

Sign in to reply to this post

lee365928

Thanks, but it looks like I'm getting the same result. Here's what I'm talking about.

From the Authorize.net Merchant email-
========= ORDER INFORMATION =========
Invoice : tnjp0j2bt1scmab8vv71
Description : 1 Test Tee (1)
Amount : 22.90 (USD)
Payment Method : Visa
Type : Authorization and Capture


From the Authorize.net Customer email
========= ORDER INFORMATION =========
Invoice Number : tnjp0j2bt1scmab8vv71
Description : 1 Test Tee (1)
Total : US $22.90
Tax Exempt : No
Payment Method : Visa

Item : 1
Description : Test Tee
Extra Large Test Tee description.
Quantity : 1
Unit Price : US $15.00

Sign in to reply to this post

Ray BorduinWebAssist

It looks like it is sending the full description instead of the itemized one.

You can probably add the [Size] variable to the FullDescription Calculation in the cart object to add it to this particular message.

Sign in to reply to this post

lee365928

How would I do that? I'm not sure I know what you mean.

Sign in to reply to this post

Ray BorduinWebAssist

Open the cart object and go to the calculations tab.

Look at the "FullDetails" calculation and it should be pretty clear how to add to it from there.

Sign in to reply to this post

lee365928

ok, i opened the cart object and selected calculations. I then selected FullDetails and clicked the "Add to Formula" button at the bottom right and selected "Size" from the list. This generated the following code.

[Size][Quantity] . ' ' . [Name] . ' (' . [ID] . ')'

When I uploaded the revised cart and clicked on any product, i got the following error. Parse error: syntax error, unexpected T_VARIABLE in D:\Domains\mysite.com\wwwroot\WA_eCart\mycartCart_PHP.php on line 11

Here's line 11
$itmObj->FullDetails = $itmObj->Quantity . ' ' . $itmObj->Name . ' (' . $itmObj->ID . ')'$itmObj->Size;//t

Thanks for all the help, by the way.

Sign in to reply to this post

Ray BorduinWebAssist

Try:


[Quantity] . ' ' . [Size] . ' ' . [Name] . ' (' . [ID] . ')'

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...