Closed (fixed)
Project:
UC PayGate
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2010 at 10:49 UTC
Updated:
25 Nov 2011 at 09:07 UTC
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
Comment #1
Max_Headroom commentedCan't reproduce
Comment #2
Ddroid commentedHey 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?
Comment #3
Captain Silverballs commentedSorry,
Given the 10 month delay in reply from maintainer I gave up using module. Switched to netcash.
Comment #4
Ddroid commentedthanks! sigh, not an option here though. I will post solution if i find :)
Comment #5
Max_Headroom commentedAs 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.
Comment #6
Ddroid commentedIN 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.
Comment #7
Max_Headroom commentedNot 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).
Comment #8
Ddroid commentedGot it working:) Thanks Max!
Comment #9
Max_Headroom commentedNot sure what I did, but pleasure :)