Umer Waheed
Umer Waheed

Reputation: 4594

Which webhook event will call if subscription payment failed for paypal

I'm integrating PayPal payment gateway into my application. I'm using the PayPal REST API's. I'm able to authorize the request and webhook. Also, API and webhooks are working fine for me. The only thing about I'm little confused that which event and sequences of events will be if subscription payment failed?

Upvotes: 0

Views: 122

Answers (1)

Preston PHX
Preston PHX

Reputation: 30477

For subscriptions, the only event you need to act on is PAYMENT.SALE.COMPLETED. When you receive this event, update the profile's valid date through the next cycle (e.g. 1 month in the future). If you don't receive a new PAYMENT.SALE.COMPLETED in time, the subscription has lapsed.

When creating the subscription you can set a custom_id which is useful for reconcilliation.

Upvotes: 0

Related Questions