Hi,

When I process payment via paygate module I receive the following error:

"This transaction cannot be completed due to the following error:
The Amount Must Consist Of Digits Only (DATA_AMT_NUM)
Please report this error to the web site administrator"

I am using the test settings that comes with the module. I am using ubercart with vat setup.

Regards
Andre

Comments

Max_Headroom’s picture

Status: Active » Closed (won't fix)

Can't reproduce

Ddroid’s picture

Hey Andre,

Did you ever get this to work? having the same issue! Is the Checksum key in the mod the same number as the encryption key in paygate?

Captain Silverballs’s picture

Sorry,

Given the 10 month delay in reply from maintainer I gave up using module. Switched to netcash.

Ddroid’s picture

thanks! sigh, not an option here though. I will post solution if i find :)

Max_Headroom’s picture

As I said, before, I can't reproduce the problem.
Please post your steps you take to get to the problem and what other functions/modules you use for Ubercart.

Ddroid’s picture

IN my case paygate requires the amount in cents, so im just figuring out where the decimal is sneaking in. this is what the module is doing (line 117 of paygate.module): $AMOUNT = ($order->order_total) * 100; //Paygate requires amount to be in cents

i dont think that is right in my case as I'm doing a lot of price calculations via JS.

Max_Headroom’s picture

Version: 6.x-1.3 » 6.x-1.4
Status: Closed (won't fix) » Active

Not knowing what you are actually doing with JS, I can only guess about the follow:
How is the amount passed back to Ubercart from JS?
Is and where is the $order object updated?
Is your syntax correct (ie: using "," instead of "." as decimal point)
Maybe the amount is passed back as a string?
If you use the devel module, put the line dpm($order); above line 117 and send me the results (you can PM me).

Ddroid’s picture

Got it working:) Thanks Max!

Max_Headroom’s picture

Status: Active » Closed (fixed)

Not sure what I did, but pleasure :)