Results 1 to 2 of 2

Thread: PayPal Fee Calculator

Hybrid View

  1. #1
    Join Date
    Apr 2013

    PayPal Fee Calculator

    I would like to have a form do the following automatically:

    text_field_1 = (User Input) (e.g. 12.00)
    text_field_2 = text_field_1/100*3.4+0.2 (e.g. 0.608)
    text_field_3 = text_field_1 + text_field_2 (e.g. 12.608)

    It is to calculate additional charges for accepting paypal payment. It would be great if it could automatically round up or down on the final value to give an accurate figure.

    If this has already been done can anyone point in the right direction?



  2. #2
    Join Date
    Mar 2009
    Look at the built-in Javascript 'Math" object. A quick google search will turn up many sources on this subject.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center