PAYMENT.SALE.PENDING triggers all kinds of webhooks

TommyBB
New Community Member

I have a problem.

I have registered recurring payment in state Pending in my PayPal account.

I have 3 kinds of webhooks defined.

One of these 3 webhooks is triggered when Payment sale pending event occures.

I want to change state od this pending payments, so I try to resend webhook but I found one problem.

When i go to webhooks list and i open PAYMENT.SALE.PENDING webhook json, I can find all 3 kinds of webhooks inside this json. WHY??

As you can see below, there is: paypal_notifier_webhookbilling_subscription_cancel_webhook and payment_sale_completed_webhook. Why?  

 

{
"id": "WH-276273347D549503W-0UL8478730114332P",
"create_time": "2018-04-14T11:22:31.320Z",
"resource_type": "sale",
"event_type": "PAYMENT.SALE.PENDING",
"summary": "Payment completed for $ 4.99 USD",
"resource": {
"reason_code": "ECHECK",
"billing_agreement_id": "I-J2L67X0DSM85",
"update_time": "2018-04-14T04:22:28Z",
"payment_mode": "ECHECK",
"amount": {
"total": "4.99",
"currency": "USD"
},
"create_time": "2018-04-14T04:22:28Z",
"links": [
{
"href": "https://https://api.paypal.com/v1/payments/sale/1CX69828RT872844H",
"rel": "self",
"method": "GET"
},
{
"href": "https://https://api.paypal.com/v1/payments/sale/1CX69828RT872844H/refund",
"rel": "refund",
"method": "POST"
},
{
"href": "https://https://api.paypal.com/v1/payments/payment/PAY-8PT73171H0574062LLLI6I4Q",
"rel": "parent_payment",
"method": "GET"
}
],
"protection_eligibility": "INELIGIBLE",
"state": "pending",
"id": "1CX69828RT872844H"
},
"status": "PENDING",
"transmissions": [
{
"webhook_url": "https://xxx/paypal_notifier_webhook",
"response_headers": {
"Transfer-Encoding": "chunked",
"Server": "Cowboy",
"X-Request-Id": "68b35bc5-7c48-4db0-b7fb-79ad4cd07ee4",
"X-Content-Type-Options": "nosniff",
"X-Runtime": "0.013067",
"Connection": "keep-alive",
"Date": "Tue, 17 Apr 2018 10:48:32 GMT",
"Via": "1.1 vegur",
"SERVER_INFO": "",
"X-Frame-Options": "SAMEORIGIN",
"Strict-Transport-Security": "max-age=15552000; includeSubDomains",
"Cache-Control": "no-cache",
"X-Xss-Protection": "1; mode=block",
"HTTP/1.1 400 Bad Request": "",
"Vary": "Accept-Encoding",
"Content-Type": "text/plain; charset=utf-8"
},
"transmission_id": "c3df62e0-421a-11e8-9a77-ed8a5a41564b",
"status": "PENDING",
"timestamp": "2018-04-17T08:38:55Z"
},
{
"webhook_url": "https://xxx/billing_subscription_cancel_webhook",
"response_headers": {
"SERVER_INFO": "",
"Strict-Transport-Security": "max-age=15552000; includeSubDomains",
"Server": "Cowboy",
"X-Request-Id": "67b463d5-73c5-4b8a-8b68-58a06f819c2e",
"HTTP/1.1 500 Internal Server Error": "",
"X-Runtime": "0.014084",
"Connection": "keep-alive",
"Content-Length": "2239",
"Date": "Tue, 17 Apr 2018 10:48:31 GMT",
"Content-Type": "text/html; charset=UTF-8",
"Via": "1.1 vegur"
},
"transmission_id": "c3d37c00-421a-11e8-9a77-ed8a5a41564b",
"status": "PENDING",
"timestamp": "2018-04-17T08:38:55Z"
},
{
"webhook_url": "https://xxx/payment_sale_completed_webhook",
"response_headers": {
"Transfer-Encoding": "chunked",
"Server": "Cowboy",
"X-Request-Id": "6a3d6350-4fc0-458f-bed4-26359a4c28bf",
"X-Content-Type-Options": "nosniff",
"X-Runtime": "0.155035",
"Connection": "keep-alive",
"Date": "Tue, 17 Apr 2018 08:39:00 GMT",
"Via": "1.1 vegur",
"SERVER_INFO": "",
"X-Frame-Options": "SAMEORIGIN",
"Strict-Transport-Security": "max-age=15552000; includeSubDomains",
"Cache-Control": "no-cache",
"X-Xss-Protection": "1; mode=block",
"Vary": "Accept-Encoding",
"HTTP/1.1 200 OK": "",
"Content-Type": "text/plain; charset=utf-8"
},
"transmission_id": "c3d9e4a0-421a-11e8-9a77-ed8a5a41564b",
"status": "SUCCESS",
"timestamp": "2018-04-17T08:38:55Z"
}
],
"links": [
{
"href": "https://api.paypal.com/v1/notifications/webhooks-events/WH-276273347D549503W-0UL8478730114332P",
"rel": "self",
"method": "GET",
"encType": "application/json"
},
{
"href": "https://api.paypal.com/v1/notifications/webhooks-events/WH-276273347D549503W-0UL8478730114332P/resen...",
"rel": "resend",
"method": "POST",
"encType": "application/json"
}
],
"event_version": "1.0"
}

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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