Forums / Built-in Shipping and Payment Modules / SecPay = Error - Amount missing, invalid or too small

SecPay = Error - Amount missing, invalid or too small

Locked

Started by 4dw on 5 Mar 2007, 12:02 PM · Views: 4,016

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
5 Mar 2007, 12:02 PM
#1
4dw avatar

4dw

New Zenner

Join Date:
Feb 2007
Posts:
28
Plugin Contributions:
0

SecPay = Error - Amount missing, invalid or too small

Hi

Downloaded the SecPay module. Ran through a test order and the following error appears when passed to the SecPay page:

** Error - Amount missing, invalid or too small.**

We're using version 1.3.7.

Any advice?

Many thanks

9 Mar 2007, 12:00 PM
#2
4dw avatar

4dw

New Zenner

Join Date:
Feb 2007
Posts:
28
Plugin Contributions:
0

Re: SecPay = Error - Amount missing, invalid or too small

I've checked the code and 0 (zero) is being passed to SecPay. Why? Anyone know?

<input type="hidden" name="amount" value="0" />

Has the parameters changed, anyone know PHP better then me i.e. anything!

15 Mar 2007, 3:32 PM
#3
utopiaopera avatar

utopiaopera

New Zenner

Join Date:
Mar 2007
Posts:
5
Plugin Contributions:
0

Re: SecPay = Error - Amount missing, invalid or too small

Hi WD40.

I am working on my first zen cart site and am going to be using secpay. I am still waiting for my secpay login details.

What you need to do is look at the document you get from secpay which tells you how to install it. Look for the "amount" bit for the hidden field and see if theres something thats changed.

See, im just giving you a few pointers where you might want to look, like I said I have'nt got my account through yet so....

Im thinking the Value="" bit of the Amount hiddenfield will contain the PHP variable for the total amount due from the shopping cart...

so in the php page in dreamweaver search for input type="hidden" name="amount", unless you know what page its in and it should look something like

<input type="hidden" name="amount" value="<?php $_{['zencart_php_variable'] ?>" />

That php variable for the shopping cart total must be called something else in your version... Your task my friend is to find out what it is...

Let everyone else know though if you do find it out...

Good luck.:blush:

16 Mar 2007, 4:40 PM
#4
utopiaopera avatar

utopiaopera

New Zenner

Join Date:
Mar 2007
Posts:
5
Plugin Contributions:
0

Re: SecPay = Error - Amount missing, invalid or too small

OK Guys.

I have no idea what I changed that made it work, but I was also getting this error message.

Listed here are my settings that are working for me. So set your secpay account to test account mode and input these options into your zen admin secpay module. Then you might want to change one thing at a time to see what breaks it.

Shame there is'nt more documentation on this for us all, but I hope this helps someone.

**Enable SECpay Module
**True

Merchant ID
secpay

Digest Password
secpay

Remote Password
secpay

Transaction Currency
Default Currency

Transaction Mode
Always Successfull

Defer Mode
Default

CV2 Mode
Default

Payment Zone
United Kingdom

Set Order Status
Processing [2]

Sort order of display.
0

Template
http://www.secpay.com/users/template.html

Template background colour
#ffffff

Template Background Image

Template Branding
HedgeShop.co.uk

Template Font Colour

Template Font Face

Template Font Size

SECPay E-Mail Subject

SECPay E-Mail Message

Customer E-Mail Mode
Inline

Merchant E-Mail Mode
Inline

SECPay Customer E-Mail
True

SSL Callback
Non-SSL

20 Mar 2007, 9:22 PM
#5
4dw avatar

4dw

New Zenner

Join Date:
Feb 2007
Posts:
28
Plugin Contributions:
0

Re: SecPay = Error - Amount missing, invalid or too small

I still can't get it working.

Are you using the latest version of ZenCart?

21 Mar 2007, 8:14 AM
#6
utopiaopera avatar

utopiaopera

New Zenner

Join Date:
Mar 2007
Posts:
5
Plugin Contributions:
0

Re: SecPay = Error - Amount missing, invalid or too small

1.3.6 mate.

I contacted secpay and they said the secpay module in the download section on this site should work on all current versions of zen cart!

sure you have your secpay account in test mode?

26 Mar 2007, 9:31 AM
#7
jgsc09028 avatar

jgsc09028

New Zenner

Join Date:
Jan 2007
Posts:
17
Plugin Contributions:
0

Re: SecPay = Error - Amount missing, invalid or too small

Hi did you find out why you were getting the error message "Error - Amount missing, invalid or too small."? im getting the same message and cant figure it out.

Thanks

http://wedloco.co.uk/zen

26 Mar 2007, 9:54 AM
#8
4dw avatar

4dw

New Zenner

Join Date:
Feb 2007
Posts:
28
Plugin Contributions:
0

Re: SecPay = Error - Amount missing, invalid or too small

Hi

We've never solved the problem, give up in the end now using PROTX. Which so far works without any issues.

Found that Secpay support aren't techincal enough to assist.

Sorry I can't provide any help!

7 May 2007, 10:23 AM
#9
gralyn avatar

gralyn

New Zenner

Join Date:
May 2007
Posts:
1
Plugin Contributions:
0

Re: SecPay = Error - Amount missing, invalid or too small

Hi Folks

I'm also trying to get the secpay module working.
The test secpay payment processes OK and generates the confirmation email but , then the secpay server throws a template not found error when it tries to pass back to my server which is currently running on my desktop in test mode.

Any suggestions gratefully received

11 May 2007, 3:25 PM
#10
paddyp avatar

paddyp

New Zenner

Join Date:
May 2007
Posts:
6
Plugin Contributions:
0

Re: SecPay = Error - Amount missing, invalid or too small

4dw:

Hi

We've never solved the problem, give up in the end now using PROTX. Which so far works without any issues.

Found that Secpay support aren't techincal enough to assist.

Sorry I can't provide any help!

If you look at the code the order amount is multiplied by the currency rate.

When the transaction currency is set to 'any currency' this results in zero.

Set transaction currency to default and it works fine.

4 Jun 2010, 12:50 PM
#11
jsweb avatar

jsweb

Zen Follower

Join Date:
Jul 2005
Location:
UK and Ireland
Posts:
392
Plugin Contributions:
0

Re: SecPay = Error - Amount missing, invalid or too small

utopiaopera:

OK Guys.

I have no idea what I changed that made it work, but I was also getting this error message.

Listed here are my settings that are working for me. So set your secpay account to test account mode and input these options into your zen admin secpay module. Then you might want to change one thing at a time to see what breaks it.

Shame there is'nt more documentation on this for us all, but I hope this helps someone.

**Enable SECpay Module
**True

Merchant ID
secpay

Digest Password
secpay

Remote Password
secpay

Transaction Currency
Default Currency

Transaction Mode
Always Successfull

Defer Mode
Default

CV2 Mode
Default

Payment Zone
United Kingdom

Set Order Status
Processing [2]

Sort order of display.
0

Template
http://www.secpay.com/users/template.html

Template background colour
#ffffff

Template Background Image

Template Branding
HedgeShop.co.uk

Template Font Colour

Template Font Face

Template Font Size

SECPay E-Mail Subject

SECPay E-Mail Message

Customer E-Mail Mode
Inline

Merchant E-Mail Mode
Inline

SECPay Customer E-Mail
True

SSL Callback
Non-SSL

Ah you're a star bar!! Brilliant it's now back working... Most/if not all of our customers use something else as their Merchant Gateway so this was a first for us.

Thanks - now back working ;) -- Next the template needs to be changed.

The JSWeb Team
Providing Zen Cart Hosting, Design and Support services to help your business succeed online!
JSWeb | UK / Ireland ZenCart Design and Hosting Specialists