Skip to content

Commit

Permalink
BWPM-80 : Fix WebHook URL for plain permalink structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ponddeja committed Sep 26, 2024
1 parent 35a81ac commit 153c617
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion includes/Gateways/ReepayGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 153c617

Please sign in to comment.