Skip to content

Commit

Permalink
Merge branch 'BWPM-80' into pre-1.7.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ponddeja committed Sep 26, 2024
2 parents 7ad34c0 + 153c617 commit 9da5a7d
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 9da5a7d

Please sign in to comment.