Hello,

Currently the module doesn't allow orders with amount < 0. (API Call error)
Edit : Currently the module doesn't allow orders with amount < 1€. (API Call error)
This is due to the fact that the amount string sent to ATOS should be 3 chars long.

Not sure if the 3 chars long is the minimum, or if it should ALWAYS be 3 chars long (which would be a problem for order > 1000€ ...

Comments

liupascal’s picture

StatusFileSize
new881 bytes

Here is a patch that forces the minimum length of the amount parameter to 3 chars long (padding with 0 on the left)

So 1€ is 100
0.50€ is 050 while it used to be 50

liupascal’s picture

Status: Active » Needs review
StatusFileSize
new881 bytes

Forgot to switch status

jsacksick’s picture

I don't understand why do you want to allow payments < 0 ? What do you have to pay then ?

liupascal’s picture

Sorry I meant amount < 1€ ...

liupascal’s picture

Issue summary: View changes

Currently the module doesn't allow orders with amount < 0. (API Call error)
Edit : Currently the module doesn't allow orders with amount < 1€. (API Call error)

  • jsacksick committed 5a07bc6 on 7.x-1.x authored by liupascal
    Issue #1998156 by liupascal: Process payments for amounts < 1.
    
jsacksick’s picture

Issue summary: View changes
Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

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