0

Hi All, I have been configuring a monthly subscription Paypal IPN to collect monthly recurring payments from a membership website.

I have my annual IPN working great. Just strugling with the monthly recurring payments.

I have the following configured in my subscription button

     <input type="hidden" name="a1" value="' . $price . '">
     <input type="hidden" name="p1" value="1"> 
     <input type="hidden" name="t1" value="M">  
     <input type="hidden" name="a2" value="' . $pricem1 . '">  
     <input type="hidden" name="p2" value="1">  
     <input type="hidden" name="t2" value="M">
     <input type="hidden" name="a3" value="' . $pricemthly . '">  
     <input type="hidden" name="p3" value="12">  
     <input type="hidden" name="t3" value="M">
     <input type="hidden" name="src" value="1">
     <input type="hidden" name="sra" value="1">  
     <input type="hidden" name="lc" value="US">
     <input type="hidden" name="currency_code" value="USD">

basically, the first month is free, second month is 50% off and every other month afterwards is the full price of the subscription.

What I am getting confused about is what variable names paypal send me back.
Are the variables the same name as above so I can update my database.
or do they have different names like here https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_IPNandPDTVariables

Hope someone can help point me in the right direction.
Cheers

2
Contributors
1
Reply
5
Views
5 Years
Discussion Span
Last Post by LastMitch
0

What I am getting confused about is what variable names paypal send me back.
Are the variables the same name as above so I can update my database.

The variable should look like this:

https://www.paypal.com/cgi-bin/webscr?cmd=p/acc/ipn-subscriptions-outside

This has an example on how this works.

You only have to create a table on your database by using those variables:

https://www.x.com/developers/paypal/documentation-tools/ipn/integration-guide/IPNIntro

Edited by LastMitch: grammer

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.