hapi-paypal
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -79,7 +79,7 @@ "use strict"; | ||
handler: (request, reply, ohandler) => { | ||
paypal.notification.webhookEvent.getAndVerify(request.payload, (err, response) => { | ||
if (err) { | ||
paypal.notification.webhookEvent.getAndVerify(request.payload, (error, response) => { | ||
if (error) { | ||
this.server.log("error", `PayPal Webhook not verified: ${JSON.stringify(request.payload)}`); | ||
} | ||
ohandler(request, reply, err, response); | ||
ohandler.apply(this, [request, reply, error, response]); | ||
}); | ||
@@ -86,0 +86,0 @@ }, |
{ | ||
"name": "hapi-paypal", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "A hapi plugin to interface with PayPal Rest API's and webhooks.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21882