hapi-paypal
Advanced tools
Comparing version 0.0.41 to 0.0.42
@@ -88,2 +88,19 @@ "use strict"; | ||
}); | ||
this.routes.set("paypal_webhooks_test", { | ||
config: { | ||
id: "paypal_webhooks_test", | ||
}, | ||
handler: (request, reply, ohandler) => { | ||
paypal.notification.webhookEvent.get(request.params.webhookid, request.payload, (error, response) => { | ||
this.server.inject({ | ||
method: "POST", | ||
payload: response, | ||
url: "/paypal/webhooks/listen", | ||
}); | ||
}); | ||
return; | ||
}, | ||
method: "GET", | ||
path: "/paypal/webhooks/test/{webhookid}", | ||
}); | ||
this.routes.set("paypal_invoice_search", { | ||
@@ -90,0 +107,0 @@ config: { |
{ | ||
"name": "hapi-paypal", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"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
59434
656