New to the community? Welcome! Please read our Community Rules and Guidelines
Hello everyone. My boss and I have discovered some ambiguities in the PayPal Subscriptions API regarding the Plan object's payment_failure_threshold parameter and the relationship between auto_renewal and total_cycles, and we need to resolve these ambiguities before we can continue maintaining our product. I hope I've come to the right place to ask about them.
First of all, our plan's payment_preferences.payment_failure_threshold parameter is set to 0. I set this parameter under the assumption this would cause a subscription to suspend immediately upon failing to bill the user, but my boss saw the following message in the subscription report during testing:
"This profile will be suspended after: No limit failure"
My boss thinks this message implies that a subscription can continue failing to bill infinitely, and it will never be suspended. And to avoid this, payment_failure_threshold should be set to 1 instead of 0.
However, I think there's a reason why payment_failure_threshold defaults to 0 if not explicitly specified, and that PayPal wouldn't be so careless to default to allowing a subscription to last indefinitely if the user can't pay. If we do set payment_failure_threshold to 1, then a user can fail to pay once, and the subscription will continue until the 2nd payment failure, and only then will the subscription end.
Next, we also have different interpretations of the relationship between a subscription's auto_renewal parameter and a plan's billing_cycle.total_cycles parameter.
What my boss thinks is the following:
And what I think is the following:
The PayPal Subscriptions API documentation does not make it clear which 2 of these 4 interpretations are correct. We cannot continue until these ambiguities are resolved.
I found your question very useful,
Do you now able to explain about the issues which you had,
How can use payment_failure_threshold and auto_renewal in better way,
In documentation they didn't describe something useful other than definition,