Benutzer-Werkzeuge

Webseiten-Werkzeuge


Seitenleiste

pc:paypalform

PayPal Payment Link Online Generator

under construction…

Hier erstmal der Anfang..

Your PayPal E-mail:
Description:
Amount:Euro


<script type='text/javascript'>
      function buildPayPalUrl(b) {
        var f = b.form;
        var paypalEmail = f.elements['paypal_email'].value;
        var amount = f.elements['amount'].value;
        var description = f.elements['description'].value;
        if(amount == '' || description == '' || paypalEmail == '') {
          alert("Whoops, need to fill in the entire form before you can continue");
        } else {
          var url =  "https://www.paypal.com/cgi-bin/webscr?" +
                     "business=" + escape(paypalEmail) + "&amp;" +
                     "cmd=_xclick&amp;currency_code=EUR&amp;" +
                     "amount=" + escape(amount) + "&amp;" +
                     "item_name=" + escape(description);
          f.elements['output'].innerHTML = url;
 
        }
      }
    </script>
 
    <form style='background-color: #E4E4E4; border: 1px solid #CCCCCC; padding: 10px'>
      <table>
        <tr><td>Your PayPal E-mail:</td><td> <input name='paypal_email' type='text' size='40'/></td></tr>
        <tr><td>Description:</td><td> <input name='description' type='text' size='40'/></td></tr>
        <tr><td>Amount:</td><td>Euro<input name='amount' type='text' size='4'/></td></tr>
        <tr><td colspan='2'><input type='button' value='Make PayPal Link' onclick='buildPayPalUrl(this)'/></td></tr>
        <tr><td colspan='2'><textarea name='output' onclick='this.select()' rows='3' cols='50'></textarea></td></tr>
      </table>
    </form>
 
pc/paypalform.txt · Zuletzt geändert: 2014/01/02 07:43 von admin