Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

paypal recurring payments form

I have a website with a payment form, I want to add recurring payments. how would i do that? what ID's do I need to use in the form fields?

I saw a WordPress plugin that uses a3 t3 and p3 like so:

    <input type="hidden" name="a3" id="a3" value="" />
<p class="donate_recur"><label for="recur">Repeat Donation</label>
<select name="t3" id="t3">
                <option value="0"> Do not repeat </option> 
                 <option value="D"> Daily </option> 
                 <option value="W"> Weekly </option> 
                 <option value="M"> Monthly </option> 
                 <option value="Y"> Yearly </option> 
 </select> x 
<input name="p3" id="p3" value="'.$dplus['duration'].'" type="text" style="width:10px;" />

I'm not sure what a3 is but t3 is ever how long the transaction will happen, and p3 is how many times it will happen.

I looked a little on the web and i found how to make a PayPal button for some kind of product with recurring payments. but I need it to be dynamically inputted.

thank you.

like image 486
Dvir Levy Avatar asked Jun 13 '12 17:06

Dvir Levy


People also ask

How do I set up recurring payments in PayPal?

To get started, log in or sign up for your PayPal Business account. Click on Tools > Recurring Payments. You'll be guided step-by-step on how to create a subscription payment button for your website, allowing you to bill customers on a recurring basis.

Does PayPal do automatic recurring payments?

PayPal Recurring Payments PayPal defines a subscription as a recurring payment. Memberships paid through PayPal are automatically renewed each year unless the subscription is canceled or the funding source (eg credit card) that PayPal has on file expires.

Where do I find PayPal recurring payments?

Log in to your PayPal Business or Premier account at www.paypal.com. Click Tools > All Tools at the top of the page, and then select Recurring Payments from the Tools page. The Recurring payments dashboard opens.

Can I create a subscription on PayPal?

You can use billing plans and subscriptions to create subscriptions that process recurring PayPal payments for physical or digital goods, or services. A plan includes pricing and billing cycle information that defines the amount and frequency of charge for a subscription.


1 Answers

a3 - amount to billed each recurrence
p3 - number of time periods between each recurrence
t3 - time period (D=days, W=weeks, M=months, Y=years)


<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="1">
<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="a3" value="5.00">
<input type="hidden" name="p3" value="1"> 
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
</form>
like image 128
dilip kumbham Avatar answered Sep 27 '22 23:09

dilip kumbham