close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

products cause checkout error

Thread began 7/30/2012 12:11 pm by Brendan | Last modified 7/31/2012 11:00 am by Jason Byrnes | 680 views | 5 replies |

Brendan

products cause checkout error

I have created three donation buttons, 1 is a select list, 1 is a set amount with an updatable qty, and 1 with an updatable amount.

These all add to the cart perfectly, however, when I go through the checkout process, I get a "transaction could not be completed" message.

The payment gateway is in test mode and not processing any card information if you want to try it at, rssfundraising.com

Here is the qty update donation button donation.php

Here are the select list, and update amount buttons run4funds.php

Sign in to reply to this post

Jason ByrnesWebAssist

to help troubleshoot, add the following code to the failure page before the </body> tag, this will help us see what may be wrong:

php:
<pre><?php var_dump($_SESSION); ?></pre>
Sign in to reply to this post

Brendan

array(36) {
["RSS_Items"]=>
string(697) "|WAECART|Direct Donation|WAECART|I would like to donate directly to the school|WAECART||WAECART|0|WAECART|1|WAECART|20|WAECART||WAECART|0|WAECART||WAECART||WAECART|DD01|WAECART||WAECART|0|WAECART|20|WAECART|1 Direct Donation ()|WAECART|20&#65533;DD03|WAECART|Run4Funds Donation|WAECART|I am sponsoring a runner!|WAECART||WAECART|0|WAECART|1|WAECART|20|WAECART||WAECART|0|WAECART||WAECART||WAECART||WAECART||WAECART|0|WAECART|20|WAECART|1 Run4Funds Donation (DD03)|WAECART|20&#65533;DD04|WAECART|Direct donation|WAECART|I'm supporting a Student Runner!|WAECART||WAECART|0|WAECART|1|WAECART|21|WAECART||WAECART|0|WAECART||WAECART||WAECART||WAECART||WAECART|0|WAECART|21|WAECART|1 Direct donation (DD04)|WAECART|21"
["WAEC_ContinueRedirect"]=>
string(24) "/run4funds/run4funds.php"
["WAVT_confirm_158_Errors"]=>
string(0) ""
["eCartCheckoutForm_undefined"]=>
string(7) "Rickets"
["eCartCheckoutForm_student"]=>
string(5) "Jimmy"
["eCartCheckoutForm_school"]=>
string(2) "50"
["eCartCheckoutForm_shipping_country"]=>
string(0) ""
["eCartCheckoutForm_shipping_postcode"]=>
string(5) "80014"
["eCartCheckoutForm_shipping_state_province"]=>
string(2) "CO"
["eCartCheckoutForm_shipping_city"]=>
string(6) "Aurora"
["eCartCheckoutForm_shipping_street2"]=>
string(0) ""
["eCartCheckoutForm_shipping_street1"]=>
string(18) "12555 E. Bates Cir"
["eCartCheckoutForm_shipping_fax"]=>
string(0) ""
["eCartCheckoutForm_shipping_phone"]=>
string(12) "720-366-3135"
["eCartCheckoutForm_shipping_email"]=>
string(23) "brendan@dciwebworks.com"
["eCartCheckoutForm_shipping_lastname"]=>
string(6) "Clancy"
["eCartCheckoutForm_shipping_firstname"]=>
string(7) "Brendan"
["eCartCheckoutForm_country"]=>
string(0) ""
["eCartCheckoutForm_postcode"]=>
string(5) "80014"
["eCartCheckoutForm_state_province"]=>
string(2) "CO"
["eCartCheckoutForm_city"]=>
string(6) "Aurora"
["eCartCheckoutForm_street2"]=>
string(0) ""
["eCartCheckoutForm_street1"]=>
string(18) "12555 E. Bates Cir"
["eCartCheckoutForm_fax"]=>
string(0) ""
["eCartCheckoutForm_phone"]=>
string(12) "720-366-3135"
["eCartCheckoutForm_email"]=>
string(23) "brendan@dciwebworks.com"
["eCartCheckoutForm_lastname"]=>
string(6) "Clancy"
["eCartCheckoutForm_firstname"]=>
string(7) "Brendan"
["eCartCheckoutForm_cvv"]=>
string(3) "498"
["eCartCheckoutForm_exp_year"]=>
string(2) "14"
["eCartCheckoutForm_exp_month"]=>
string(1) "1"
["eCartCheckoutForm_cc_number"]=>
string(16) "4357609481531514"
["eCartCheckoutForm_cc_type"]=>
string(4) "Visa"
["WAAuthNet_postedValues"]=>
string(1146) "x_login=3p24PgJK &x_tran_key=36UD76hW4q9Wz9tq &x_version=3.1&x_invoice_num=f15de8ce13d6cc8b3a132571da5f73a6&x_test_request=TRUE&x_method=CC&x_type=AUTH_CAPTURE&x_relay_response=FALSE&x_delim_data=TRUE&x_delim_char=::&x_customer_ip=67.162.134.18&x_amount=62.00&x_description=1 Direct Donation (), 1 Run4Funds Donation (DD03), 1 Direct donation (DD04)&x_line_item=<|>Direct Donation<|>I would like to donate directly to the school<|>1<|>20<|>YES&x_line_item=DD03<|>Run4Funds Donation<|>I am sponsoring a runner!<|>1<|>20<|>YES&x_line_item=DD04<|>Direct donation<|>I'm supporting a Student Runner!<|>1<|>21<|>YES&x_card_num=4357609481531514&x_exp_date=114&x_card_code=498&x_email_customer=TRUE&x_tax_exempt=FALSE&x_first_name=Brendan&x_last_name=Clancy&x_address=12555 E. Bates Cir&x_city=Aurora&x_state=CO&x_zip=80014&x_phone=720-366-3135&x_fax=&x_email=brendan@dciwebworks.com&x_country=&x_ship_to_first_name=Brendan&x_ship_to_last_name=Clancy&x_ship_to_address=12555 E. Bates Cir&x_ship_to_city=Aurora&x_ship_to_state=CO&x_ship_to_zip=80014&x_ship_to_country=&x_ship_to_phone=720-366-3135&x_ship_to_fax=&x_currency_code=USD&x_recurring_billing=NO"
["WAAuthNet"]=>
string(479) "3::1::270::(TESTMODE) Line item 1 is invalid.::000000::P::0::f15de8ce13d6cc8b3a13::1 Direct Donation (), 1 Run4Funds Donation (DD03), 1 Direct donation (DD04)::62.00::CC::auth_capture::::Brendan::Clancy::::12555 E. Bates Cir::Aurora::CO::80014::::720-366-3135::::brendan@dciwebworks.com::Brendan::Clancy::::12555 E. Bates Cir::Aurora::CO::80014::::::::::FALSE::::4A4186835E64A41B14002D2B83CDEF16::::::::::::::::::::::::::XXXX1514::::::::::::::::::::::::::::::::::::720-366-3135::"
["WADbSearch1_results"]=>
string(17) " AND (cat_id = 5)"
}

Sign in to reply to this post

Jason ByrnesWebAssist

the response back from authorize.net is:
Line item 1 is invalid



this happens if the item information sent to the gateway does not meet the formatting specifications.

the item data being sent is:

x_line_item=<|>Direct Donation<|>I would like to donate directly to the school<|>1<|>20<|>YES&x_line_item=DD03<|>Run4Funds Donation<|>I am sponsoring a runner!<|>1<|>20<|>YES&x_line_item=DD04<|>Direct donation<|>I'm supporting a Student Runner!<|>1<|>21<|>YES


the first item in the cart does not have an ID. The item ID is not optional.

Sign in to reply to this post

Brendan

I gave the button an ID of DD01, and received this error now in checkout

Unknown column 'DD01' in 'field list'

Sign in to reply to this post

Jason ByrnesWebAssist

In the order details table of the database, the column used to store the product ID is set to be a numeric column type.


Either change the IDs in the cart to be numeric. Or edit the Order Details table and set the product ID column to be varchar. you will also need to edit the Store Order Details behavior on the confirm page to edit the data type for the product ID column.

Sign in to reply to this post

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