NameSilo

PayPal Subscription

NamecheapNamecheap
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

asgsoft

VIP Member
Impact
9
Hi

Is there any free scripts that use paypal subscription around?

if not are there any tutorials that do so with use of IPN?

Thanks
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
PHP:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">  
   <p>
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="item_name" value="<?php echo $desc; ?>">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="a1" value="<?php echo $today; ?>">
<input type="hidden" name="p1" value="1">
<input type="hidden" name="t1" value="M">
<input type="hidden" name="a3" value="<?php echo $monthly; ?>">
<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">
<input name="submit" type="submit" id="submit" value="Checkout Now" />
</p>
</form>

something like that,

$desc is the predefined varible for description
$today is how much they are paying today
$month is how much they pay each month

It should work, if you are use to paypal then you will be able to work out how to implement it into ipn etc
 
0
Close
but how do I detect if that month's subscription has been paid? also how do i cancel subscriptions?
 
0
Close
You could set up IPN (Instant Payment Notification i think) at Paypal and then Paypal would send you notices whenever something happened. For example, if a user signed up, canceled, paid their monthly payment and so on, you would get a notification. If you keep track of them in DB it's easier. I just coded a paypal subscription website so if you have more questions, go for it.
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Search: better matches first
Search now shows better matches first. Threads with your words in their title now come near the top. A poll with your words in its...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back