Redirect to http://site.com/{$charge_response->id} without additional arguments?
-
Hello,
I am trying to use sc_redirect_example filter to change the redirect to be
http://site.com/{$charge_response->id} without additional arguments.
Here is the code I have in the functions.phpfunction sc_redirect_example( $url, $charge_response ) {
$url = ‘http://donnay.ca/’;
$url .= $charge_response->id;
return $url;
}
add_filter( ‘sc_redirect’, ‘sc_redirect_example’ );The redirect works after the charge is successful but the result is:
http://donnay.ca/?charge=ch_17loiGK19Ijyq7THu8Z9KHeE&store_name=mBibe.beerAny help would be appreciated.
Thanks
The topic ‘Redirect to http://site.com/{$charge_response->id} without additional arguments?’ is closed to new replies.