Jump to content

PayPal Subscriptions


rarebit

Recommended Posts

I'm trying to do a new paypal subscription module for my cms, but the ipn sandbox is throwing 307's so it's a bit hard to test at the moment.

 

Here's the key variable and it's possible values (for subscriptions):

'txn_type'

"subscr_signup" This Instant Payment Notification is for a subscription sign-up.

"subscr_cancel" This Instant Payment Notification is for a subscription cancellation.

"subscr_modify" This Instant Payment Notification is for a subscription modification.

"subscr_failed" This Instant Payment Notification is for a subscription payment failure.

"subscr_payment" This Instant Payment Notification is for a subscription payment.

"subscr_eot" This Instant Payment Notification is for a subscription's end of term.

 

And this is my basic ruleset (but no way to test it):

- first a payment notification (subscr_payment) is sent back. At this point subscription should be made...

- Next (straight away really), a sign up (subscr_signup) notificaqtion is sent. This indicates it's a new user (and not just a recurring payment)

- At the next period another payment notification (subscr_payment) will be sent back.

 

- If a user manually cancels the payment from their account then a canellation notification (subscr_cancel) will be sent.

- If paypal has tried to debit for another subscription period and failed, then a failure notification (subscr_failed) will be sent.

 

- If reacuuring payments wasn't initially set then when the full subscription period is over (?) an end of term (subscr_eot) notification will be sent.

 

- (subscr_modify) is used when a user is allowed to modify a subscription... ??? this might be useful?

 

Can anyone confirm, deny or add to this please?

Link to comment
https://forums.phpfreaks.com/topic/109293-paypal-subscriptions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.