mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
Always use https for webhook urls
Paypal allows only https
This commit is contained in:
parent
d6aa1166f1
commit
295ecb91ff
1 changed files with 5 additions and 1 deletions
|
@ -230,7 +230,11 @@ class IncomingWebhookEndpoint {
|
|||
* @return string
|
||||
*/
|
||||
public function url(): string {
|
||||
return rest_url( self::NAMESPACE . '/' . self::ROUTE );
|
||||
$url = rest_url( self::NAMESPACE . '/' . self::ROUTE );
|
||||
|
||||
$url = str_replace( 'http://', 'https://', $url );
|
||||
|
||||
return $url;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue