Skip to content

Webhooks PayPal

Payment gateways can send webhook events that notify our application any time an event happens on our accounts. This is especially useful for events—like disputed charges and recurring billing events—that are not triggered by a direct API request. This mechanism is also useful for services that are not directly responsible for making an API request, but still need to know the response from that request.

CUSTOMER.DISPUTE.CREATED

Find a new dispute on https://www.paypal.com/resolutioncenter/billing/entry?action=view

CUSTOMER.DISPUTE.RESOLVED

Find a dispute on https://www.paypal.com/resolutioncenter/billing/entry?action=view

PAYMENT.SALE.DENIED

PAYMENT state of a Sale changed from PENDING to DENIED.

Sometime PayPal creates PENDING payments ("sale" in terms on PayPal). In such cases we do not provide a buyable product or service immediately, but wait for PayPal to settle the payment. PENDING PayPal’s sale can be settled in few days into one of these options:

  1. DENIED (PAYMENT.SALE.DENIED webhook event)
  2. COMPLETED (PAYMENT.SALE.COMPLETED webhook event)

DENIED means that payment is canceled, and we need to:

  • inform our customer that his payment is failed (haven’t passed a review on PayPal side)
  • ask to use another Payment Method to buy a product or service on our site

COMPLETED: nothing to do, our application will automatically do everything that it usually does on completed payment.