diff --git a/includes/Gateways/ReepayGateway.php b/includes/Gateways/ReepayGateway.php index 5a525916..f695b51c 100644 --- a/includes/Gateways/ReepayGateway.php +++ b/includes/Gateways/ReepayGateway.php @@ -430,7 +430,14 @@ public static function get_webhook_url(): string { } } - return $default_wc_api_url . 'WC_Gateway_Reepay/'; + $structure = get_option( 'permalink_structure' ); + if( empty( $structure ) ){ + $default_wc_api_url = $default_wc_api_url . '=WC_Gateway_Reepay/'; + }else{ + $default_wc_api_url = $default_wc_api_url . 'WC_Gateway_Reepay/'; + } + + return $default_wc_api_url; } /**