hapi-paypal
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -79,4 +79,8 @@ "use strict"; | ||
handler: (request, reply, ohandler) => { | ||
ohandler(request, reply, null, null); | ||
return; | ||
paypal.notification.webhookEvent.getAndVerify(request.payload, (err, response) => { | ||
if (err) { | ||
this.server.log("error", `PayPal Webhook not verified: ${JSON.stringify(request.payload)}`); | ||
} | ||
ohandler(request, reply, err, response); | ||
}); | ||
}, | ||
@@ -83,0 +87,0 @@ method: "POST", |
{ | ||
"name": "hapi-paypal", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"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
21832
251