paypal ipn - subscriptions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm creating a subscription service where customers will signup and pay $X
per month to have access to this service. I've done the easy part, which is
communicating back and forth with paypal. Anytime a transaction is made,
it's sent to my ipn.php script. The part I'm having difficulty with is
figuring out how to manage who does and doesn't have access to the service
based on what paypal sends me.

 

It looks like there are 6 different transaction types possible for
subscriptions.

"subscr_signup"
"subscr_cancel"

"subscr_modify"

"subscr_failed"

"subscr_payment"

"subscr_eot"

 

For example, what if someone cancels their subscription? I don't think I can
turn off their service immediately because their month might not be over
yet.

 

Another thought. Would I just mark their account active if they are
"subscr_signup" or "subscr_payment" and leave it at that unless paypal tells
me otherwise (from subscr_failed, or subscr_cancel, or subscr_eot). OR
should I record the date of the "subscr_signup" or "subscr_payment" and only
allow them access for one month after that date?

Anyone have experience creating something like this? Would really appreciate
hearing how you did it. Or if you haven't, but have ideas, let me know!


Thanks!
Nate


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux