Hi All,

If order total has many digits after decimal point, like 2.49879, authorize.net will decline transaction without any comments.

Patch provided, please review and test.

CommentFileSizeAuthor
#8 authnet_rounded_order-1338574-8.patch2.4 KBshawn_smiley
#3 authorizenet_rounded_order_total_v2.patch543 bytesAnonymous (not verified)
#1 authorizenet_rounded_order_total.patch867 bytesAnonymous (not verified)
refs_#2303_authorizenet_rounded_order_total.patch867 bytesAnonymous (not verified)

Comments

Anonymous’s picture

StatusFileSize
new867 bytes
univate’s picture

Wouldn't it be better to fix this in uc_authorizenet?

Anonymous’s picture

StatusFileSize
new543 bytes

Sure, this would be better. New patch attached. Should I move this issue to ubercart module's issues?

univate’s picture

Title: Recurring Fee failed because of fractional order total in uc_recurring_authorizenet_cim_renew » uc_authorizenet_charge() will decline the transation if there is more then 2 decimal places
Project: UC Recurring Payments and Subscriptions » Ubercart
Version: 6.x-2.0-alpha6 » 6.x-2.x-dev

Status: Needs review » Needs work

The last submitted patch, authorizenet_rounded_order_total_v2.patch, failed testing.

tr’s picture

@nextanz: You assigned this issue to yourself - are you still working on this? Can you provide a patch that passes the tests?

tr’s picture

Assigned: » Unassigned
shawn_smiley’s picture

Status: Needs work » Needs review
StatusFileSize
new2.4 KB

Here is an updated patch that applies the same amount formatting routine that is used for normal credit card payments to CIM payments.

longwave’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.