How to use PayPal standrad with reccuring method.

Use this bellow html form into your code :

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

<!-- Identify your business so that you can collect the payments. -->

<input type="hidden" name="business" value="example@example.com">

<!-- Specify a Subscribe button. -->

<input type="hidden" name="cmd" value="_xclick-subscriptions">

<!-- Identify the subscription. -->

<input type="hidden" name="item_name" value="Alice's Weekly Digest">
<input type="hidden" name="item_number" value="DIG Weekly">

<!-- Set the terms of the 1st trial period. -->

<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="a1" value="0">
<input type="hidden" name="p1" value="7">
<input type="hidden" name="t1" value="D">

<!-- Set the terms of the 2nd trial period. -->

<input type="hidden" name="a2" value="5.00">
<input type="hidden" name="p2" value="3">
<input type="hidden" name="t2" value="W">

<!-- Set the terms of the regular subscription. -->

<input type="hidden" name="a3" value="49.99">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="Y">
<input type="hidden" name="src" value="1">

<!-- Display the payment button. -->
<input type="image" name="submit" border="0" src="https://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif" alt="PayPal - The safer, easier way to pay online" />

<img alt="" border="0" width="1" height="1" src="https://www.paypal.com/en_US/i/scr/pixel.gif" >

</form>
Name Required or Optional Description Character Length
business Required Your PayPal ID or an email address associated with your PayPal account. Email addresses must be confirmed.
item_name Optional Description of item being sold (maximum 127 characters). If you are collecting aggregate payments, this can include a summary of all items purchased, tracking numbers, or generic terms such as “subscription.” If omitted, customer will see a field in which they have the option of entering an Item Name
currency_code Optional The currency of prices for trial periods and the subscription. The default isUSD. 3
a1 Optional Trial period 1 price. For a free trial period, specify0.
p1 See description. Trial period 1 duration. Required if you specifya1. Specify an integer value in the allowable range for the units of duration that you specify witht1. 2
t1 See description. Trial period 1 units of duration. Required if you specifya1. Allowable values:

  • D– for days; allowable range for p1 is 1 to 90
  • W– for weeks; allowable range for p1 is1 to52
  • M– for months; allowable range for p1 is1 to24
  • Y– for years; allowable range forp1 is1 to 5
1
a2 Optional Trial period 2 price. Can be specified only if you also specify a1.
p2 See description. Trial period 2 duration. Required if you specify a2. Specify an integer value in the allowable range for the units of duration that you specify with t2. 2
t2 See description. Trial period 2 units of duration. Allowable values:

  • D– for days; allowable range for p1 is 1 to 90
  • W– for weeks; allowable range for p1 is1 to52
  • M– for months; allowable range for p1 is1 to24
  • Y– for years; allowable range forp1 is1 to 5
1
a3 Required Regular subscription price.
p3 Required Subscription duration. Specify an integer value in the allowable range for the units of duration that you specify with t3. 2
t3 Required Regular subscription units of duration. Allowable values:

  • D– for days; allowable range for p1 is 1 to 90
  • W– for weeks; allowable range for p1 is1 to52
  • M– for months; allowable range for p1 is1 to24
  • Y– for years; allowable range forp1 is1 to 5
1
src Optional Recurring payments. Subscription payments recur unless subscribers cancel their subscriptions before the end of the current billing cycle or you limit the number of times that payments recur with the value that you specify for srt.Allowable values:

  • 0 – subscription payments do not recur
  • 1 – subscription payments recur

The default is 0.

1
srt Optional Recurring times. Number of times that subscription payments recur. Specify an integer above 1. Valid only if you specify src=”1″. 1
sra Optional Reattempt on failure. If a recurring payment fails, PayPal attempts to collect the payment two more times before canceling the subscription.Allowable values:

  • 0 – do not reattempt failed recurring payments
  • 1 – reattempt failed recurring payments before canceling

The default is 1.

For more information, see

1
no_note Required Do not prompt payers to include a note with their payments. Allowable values for Subscribe buttons:

  • 1 – hide the text box and the prompt For Subscribe buttons, always include no_noteand set it to 1.
1
custom Optional User-defined field which will be passed through the system and returned in your merchant payment notification email. This field will not be shown to your subscribers. 255
invoice Optional User-defined field which must be unique with each subscription. The invoice number will be shown to subscribers with the other details of their transactions 127
modify Optional Modification behavior. Allowable values:

  • 0– allows subscribers to only create new subscriptions
  • 1– allows subscribers to modify their current subscriptions or sign up for new ones
  • 2– allows subscribers to only modify their current subscriptions. The default value is 0.
1
usr_manage Optional Set to1to have PayPal generate usernames and initial passwords for subscribers. 1

Leave a Reply

Your email address will not be published. Required fields are marked *