Duplicate webhook events on billing agreements

NimLevy
Contributor
Contributor

We started testing our subscription options for our clients (new feature we are working on) and noticed that when we subscribe to a billing agreement, we get 4 PAYMENT.SALE.COMPLETED events instead of 2.

We expect to get one for the subscription, and one for the initial payment.

But we receive 2 for each event.

When looking in the "Live Webhook Events" page in the PayPal Developer dashboard, we see (for example):

Payment completed for $ 5.0 USD

Payment completed for $ 5.00 USD

Both events seem VERY similar except for the Event ID and some minor details.

 

Can anyone clarify why we get two of these events and how to prevent this?

 

Thanks,

Nim

Login to Me Too
3 REPLIES 3

angelleye
Advisor
Advisor
Have you checked your web server logs to ensure your listener is returning a 200 response back to PayPal?
Angell EYE - www.angelleye.com
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
Login to Me Too

NimLevy
Contributor
Contributor

Yes I have.

I also see the response in the event logger with "status": "SUCCESS".

 

I can send you the two event ids if that can help.

Login to Me Too

angelleye
Advisor
Advisor

For that sort of thing you'll need to submit a ticket here.  Provide all the details you can including screenshots, request logs, transaction IDs, etc.

 

 

Angell EYE - www.angelleye.com
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
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.