Web-hooks for Subscription recurring FAILED payments not working on LIVE

CreativeGS
Contributor
Contributor

Hello there!

TLDR; We are not getting webhooks for failed subscription payments and subscription suspending for LIVE env.

I have integrated REST API with webhooks for '/v1/billing/subscriptions' endpoints and I'm testing them one live environment. For now, I'm catching all webhooks and some of them work. We can successfully receive the following webhooks:

 

CATALOG.PRODUCT.CREATED
BILLING.SUBSCRIPTION.CREATED
BILLING.PLAN.CREATED
BILLING.SUBSCRIPTION.ACTIVATED
PAYMENT.SALE.COMPLETED   

 Problem is with unsuccessful payments, we are waiting for these webhooks, but are receiving none:

 

PAYMENT.SALE.DENIED
BILLING.SUBSCRIPTION.SUSPENDED

How I am testing this scenario:
1 ) A client pays for a subscription
2 ) We create billing plans, products, agreements, and all that good stuff.
3 ) The first payment is successful and subscription is started
4 ) Client removes payment card from his account
5 ) Recurring payment fails (client has no card)
6 ) PayPal tries to charge the client multiple times
7 ) PayPal suspends clients subscription
8 ) We receive all webhooks for plan creation and successful payment, but we don't receive any webhooks for failed payments and suspended subscription.

Additional details:
1) I created PayPal Support ticked, no response so far
2) I have enabled webhooks for Live and Sandbox environments
3) We are testing with real users and real money
4) We have tested multiple cases, different codes, and endpoints, so far no luck
5) We use Laravel and PayPal REST API

Are we using webhooks wrong? Is this a known bug? How can we resolve this?

I hope we can resolve this and if I can help with additional information, feel free to ask.

Login to Me Too
3 REPLIES 3

Harish_lsn
Contributor
Contributor

Hy CreativeGS,

I am having/facing same issues, regarding a missing payment for a subscription,

Have you got answers of those questions?

Please help me,

Thanks,

Login to Me Too

CreativeGS
Contributor
Contributor

Hi Harish_lsn,

No there is no fix for this issue so far. As I mentioned in the ticket, we do not receive WH events for failed subscription payment and suspended subscriptions. PayPal support isn't super helpful either. The best solution that we implemented so far, is to use IPN. We are receiving half of the events from WH and missing half from IPN, this is a super trashy solution because we have to support both systems at the same time. At least it works for now, but we are still waiting for a decent solution.

Good luck,
CreativeGS

Login to Me Too

Harish_lsn
Contributor
Contributor

Thanks CreativeGS,

There are always some issues with Paypal,

They guys should make things complete, It is very bad that we need to depend on Webhooks and IPN both, 😭

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.