Buying Someone To fix This Simple Paypal Script

Discussion in 'Programming' started by Moe901, Aug 2, 2011.

  1. #1
    Ive tried to get this working like the one in the link below but cant,everything works but the one time donation dont show the amount when you submit

    
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick-subscriptions">
    
    <!--You will need to set the email to your PayPal email or Secure Merchant ID -->
    <input type="hidden" name="business" value="myemail@domain.com">
    
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="item_name" value="Donate to My Organization">
    <input type="hidden" name="item_number" value="1234">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="no_shipping" value="2">
    <input type="hidden" name="src" value="1">
    <input type="hidden" name="p3" value="1">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHosted">
    <table>
    <tr><td>When would you like this to Recur?</td></tr>
    <tr>
      <td>Name</td>
    </tr>
    <tr>
      <tr><td><input type="text" name="os0" maxlength="60"><input type="hidden" name="on0" value="Name"></td></tr>
    
    </tr>
    <tr><td><select name="t3">
     <option value="" selected>One Time (Not recurring)</option>
     <option value="W">Weekly</option>
     <option value="M">Monthly</option>
     <option value="Y">Yearly</option>
    </select> </td></tr>
    <tr></tr><tr></tr>
    <tr><td>Enter Your Donation Amount</td></tr>
    <tr><td><input type="text" name="a3" maxlength="60"></td></tr>
    </table>
    <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to
    pay online!">
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form> 
    PHP:
     
    Moe901, Aug 2, 2011 IP
  2. Moe901

    Moe901 Member

    Messages:
    425
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    As Seller:
    100% - 1
    As Buyer:
    100% - 0
    #2
    Anyone can fix this will get instant payment via paypal
     
    Moe901, Aug 2, 2011 IP
  3. ardianet

    ardianet Member

    Messages:
    494
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Hi,
    Perhaps this could help you :

    
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick">
    
    <!--You will need to set the email to your PayPal email or Secure Merchant ID -->
    <input type="hidden" name="business" value="myemail@domain.com">
    
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="item_name" value="Donate to My Organization">
    <input type="hidden" name="item_number" value="1234">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="no_shipping" value="2">
    <input type="hidden" name="src" value="1">
    <input type="hidden" name="p3" value="1">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHosted">
    
    <table>
     <tr><td>When would you like this to Recur?</td></tr>
     <tr><td>Name</td></tr>
     <tr>  
      <tr><td><input type="text" name="os0" maxlength="60"><input type="hidden" name="on0" value="Name"></td></tr>
     </tr>
     <tr>
       <td>
         <select name="t3"> 
          <option value="" selected>One Time (Not recurring)</option>
          <option value="W">Weekly</option> 
          <option value="M">Monthly</option> 
          <option value="Y">Yearly</option>
         </select> 
        </td>
      </tr>
     <tr></tr>
     <tr></tr>
     <tr><td>Enter Your Donation Amount</td></tr>
     <tr><td><input type="text" name="amount" maxlength="60"></td></tr>
    </table>
    
    <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way topay online!">
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    
    
    PHP:
    I've changed the :
    <input type="hidden" name="cmd" value="_xclick-subscriptions"> to <input type="hidden" name="cmd" value="_xclick">
    <input type="text" name="a3" maxlength="60"> to <input type="text" name="amount" maxlength="60">

    :)
     
    ardianet, Aug 3, 2011 IP