In function authorize_net_form when creating the list of "Your Items" we query the product table for price instead of the transaction.

The problem: Donations go in with $0 price and then use add-on information to set the dollar amount.

That means on the authorize.net payment form says "1 order of Donation to Our site at $0 each" even though the cart said the same item was $10.

The fix...
Before
'%price' => payment_format($product->price)
After (see lines 208-214 of attachment)
'%price' => payment_format($p->price)

I've attached the version of your module that we're running with on our mostly-donations site. It has a few other changes....

1) displays "%title: $price" for donations instead of "%order order of %title at %price each" (because that was showing up as "1 order of Donate to Our Site.com at $10 each") (lines 208-214 of attachment)

2) Makes "Your Items" an admin setting so that you can change it to "payment details" (which again reads better for donation-centric sites) (line 222 of attachment & lines 114-121 which handle the creation of admin setting for this)

You can use this for whatever you like (or ignore it). :)

I couldn't make a patch because I'm apparently running an old version (1.27)...but I see that my fixes are still a "requirement" for what we're doing even if I were to upgrade to 1.35.

Thanks again.

CommentFileSizeAuthor
authorize_net-1.27-altered.module.tgz4.99 KBsuydam

Comments

gordon’s picture

Status: Active » Closed (duplicate)

Duplicate of http://drupal.org/node/78994.

The issues with the text can be solved using the local module to alter the text.