SMF Development > Bug Reports
Another paid subscriptions bug?
Krash.:
Per this thread, looks like there's a problem involving recurring payments. If recurring payments are enabled, and member checks the option when ordering (it's checked by default), subscription fails because SMF does not recognize the transaction code sent in the IPN. Did some test subs on a scratch 2.0.2 forum, and non-recurring sub work fine, but recurring payment does not. Payment is completed but errors are generated and subscription fails.
This is what I have so far -
In /Sources/Subscriptions-PayPal.php, it appears that the following txn_types are recognized:
Refunded
reversal
subscr_payment
web_accept
The following, which appear in the error log, are not:
subscr_cancel
subscr_eot
subscr_signup
When I do a test subscription with recurring payment, two 'Unknown transaction type' errors are generated. PayPal executes two transactions to set up the subscription:
1 - Recurring Payment created - txn_type = subscr_payment
2 - Recurring Payment completed - txn_type = subscr_signup
The second transaction debits the member's account. Don't know why the first error is generated, as subscr_payment is a recognized txn_type, but subscr_signup is not, and subscription fails. If the recurring sub is cancelled by the forum or the member (in their respective PayPal accounts), an IPN is posted to the forum with txn_type = subscr_cancel, which is also not recognized by SMF, and throws the same error.
Unless it's somewhere else in the code, SMF doesn't know what to do with subscr_signup, so there's no way a recurring subscription can work.
feline:
Interesting .. on our system (2.0.2) subsription works without any problem .. also recurring payments
Krash.:
Where is subscr_signup in the code? Can't find it, and if it's not there, recurring payments shouldn't work. Can't test it on my installs because I have a personal PayPal account, and recurring payments only works on business accounts.
feline:
I don't known which code is received .. I see only the result.
And I have a normal account on paypal .. no business
Wazza:
--- Quote from: feline on May 24, 2012, 03:34:36 PM ---Interesting .. on our system (2.0.2) subsription works without any problem .. also recurring payments
--- End quote ---
Could this be because your forum was "updated" to 2.0.2 and not a "New" install of 2.0.2?
This bug exists in a "New" install of 2.0.2 not recognizing the return_url sent like: "subscr_eot" As Krash says it seems it's not there? so this is why I ask is yours working in a New install? as maybe this is were the difference may be?
,,,The PayPal account needs to be upgraded to premium or business to except a request from the forum for a recurring payment. This part is not were we have concern with. It is how 2.0.2 handles the return_url sent like: "subscr_eot" as Krash states in the first post.
Navigation
[0] Message Index
[#] Next page
Go to full version