After adding a donation of any amount to my shopping cart, the authorize_net.module credit card payment page displays '1 order of Donation at $0.00 each'.

The translation of this string in the code (line 183) makes reference to $p->qty, $p->title but then uses $product->price. I changed this to $p->price and removed $product = product_load($p) on line 181 since $product is not referenced anywhere else.

CommentFileSizeAuthor
#2 authorize.net_.patch1.04 KBbrmassa
authorize_net.module_0.patch984 byteszroger

Comments

dtj’s picture

This problem is also present in paypalpro payment module.

brmassa’s picture

Status: Needs review » Patch (to be ported)
StatusFileSize
new1.04 KB

i confirm the error on v4 and v3.

patch to v4 provided

brmassa’s picture

Version: 4.7.x-1.x-dev » 5.x-4.x-dev

Guys,

fixed on eC4. eC3 still needs the patch. on eC4, the paypal module has been rewritten and the bug doesnt exits anymore.

regards,

massa

gordon’s picture

Status: Patch (to be ported) » Fixed

Back ported to 5.x-3.x-dev and 4.7.x-3.x-dev

Anonymous’s picture

Status: Fixed » Closed (fixed)