SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Dec 2006
    0 Post(s)
    0 Thread(s)

    Price calculator...

    On my website, I want to have a "Price Calculator" that will show them the price for different options of purchase. I'll script this in Javascript. I was wondering how it would be possible to make an "order" button, and when they click this, it would have them automatically send the money via paypal.

    It's hard to explain, but heres a good example of what I want to do:

    Scroll down to the bottom of the page, theres a price calculator. Could someone please help me figure out how to do that?

    Thanks in advance.

  2. #2
    SitePoint Addict ALL's Avatar
    Join Date
    Oct 2005
    South Dakota
    1 Post(s)
    0 Thread(s)
    I know what you want and have seen it in other pages, what you need to do is go to paypal's documentation and look for the ways of forwarding info...

    In there there should be a way to pass the amount you wish to place (if memory serves correctly it is a hidden input field, and i believe a POST command).

    I cant remember the site it was on, but i know it can be done. Or another way to do it is to use a server side language like PHP. paypal has an api to send transactions that way too.

    Did I help you?
    You can repay me, support one of my projects (no money needed):
    JavaScript Wiki, Another Web Forum, Paranormal Site


Posting Permissions

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