Sometimes when you use percentage discounts in modules like Commerce Coupon then the amount decimal isn't to 2 digits after the dot. Therefore SagePay just rejects the payment.

This patch just corrects that, however I'm using GBP, I'm not sure if it would work well with other currencies.

I also noticed your files aren't encoded as UTF-8 which is throwing up a few issues and should probably be changed.

Thanks

CommentFileSizeAuthor
patch_commit_ca63737903ae.patch1.72 KBjdelaune

Comments

ikos’s picture

Status: Active » Needs review

Hi,

This is in the latest dev release.

Please have a look and I'll roll a full 1.0 release soon.

kind regards

Richard

ikos’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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