mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
switch to POST method in rest endpoint and do not replace http:// by default
This commit is contained in:
parent
ff0e7b2af6
commit
524809d6f6
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ class IncomingWebhookEndpoint
|
||||||
self::ROUTE,
|
self::ROUTE,
|
||||||
[
|
[
|
||||||
'methods' => [
|
'methods' => [
|
||||||
'GET',
|
'POST',
|
||||||
],
|
],
|
||||||
'callback' => [
|
'callback' => [
|
||||||
$this,
|
$this,
|
||||||
|
@ -44,7 +44,7 @@ class IncomingWebhookEndpoint
|
||||||
}
|
}
|
||||||
|
|
||||||
public function url() : string {
|
public function url() : string {
|
||||||
return str_replace('http://', 'https://', rest_url(self::NAMESPACE . '/' . self::ROUTE ));
|
return rest_url(self::NAMESPACE . '/' . self::ROUTE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handledEventTypes() : array {
|
public function handledEventTypes() : array {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue