close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Price Variable on PayPal Form

Thread began 5/19/2014 12:11 pm by Me | Last modified 5/19/2014 12:33 pm by Me | 490 views | 3 replies


Price Variable on PayPal Form


Here (for example), is the form variable created by eCart for the amount being submitted to PayPal from the Checkout Page

<input type="hidden" name="amount_<?php echo $ShoppingCart_Index+1; ?>" id="amount_<?php echo $ShoppingCart_Index+1; ?>" value="<?php echo WA_eCart_FormatNumber($ShoppingCart->DisplayInfo("Price") - (($ShoppingCart->DisplayInfo("Price")/$ShoppingCart->TotalColumn("TotalPrice")) * $ShoppingCart->GetDiscounts()), false, 2) ?>" />

Using the browser element inspector, what is there to stop an individual from changing the value of this variable, before submitting to PayPal. I just did this and it is possible to do and PayPal shows the amount I manipulated. This means of course, that say this variable holds a total value of £100.00, I could manipulate it to £1.00 and PayPal at this point in the process would have no problem in processing as the value passed from the checkout page?

Advice real quick would be cool on this one please :-)


PS: If this is a dumb question, please simply point me in the right direction, as looking through the eCart behaviour dialogues, I cannot see anyway of (for example) hashing the form output?

PSS: I should also say this is for PayPal Standard

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...