Use plugin_dir_url
to get the URL of your plugin’s directory.
$ajax_url = plugin_dir_url( __FILE__ ) . 'save_contribution.php'
Use plugin_dir_url
to get the URL of your plugin’s directory.
$ajax_url = plugin_dir_url( __FILE__ ) . 'save_contribution.php'