Jump to content

How to pass my form total value to CCAvenue Payment Gateway?

Recommended Posts

That would involve knowing how to interface with the 'ccavenue' gateway, ie, API.  Do you have the literature for that in front of you?

PS - whatever that link is that you provided, be advised that not many people here click on "things" that people post.  We tend to trust relevant code that is posted by the authors who are seeking assistance.

Share this post

Link to post
Share on other sites

The answer is - you wouldn't.

You cannot trust any data coming from a user source. The only data you should accept from the form is what was bought (eg product_id) and qty. You would then query your database to get the product prices and do the totalling before passing it to the ayment gateway.

Unless, of course, you would be happy to sell Ferraris for 1 rupee each

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.