Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mrfoxtalbot/8f4c93e27224ac8668332ecdcc27041e to your computer and use it in GitHub Desktop.
Save mrfoxtalbot/8f4c93e27224ac8668332ecdcc27041e to your computer and use it in GitHub Desktop.
Excepción del forzado de redirección HTTPS usando Lets Encrypt + Really Simple SSL para que funcione la confirmación del pago de Redsys con el plugin Redsys Gateway #WooCommerce #WordPress
<?php
function rsssl_exclude_http_url($html) {
$html = str_replace(
'https://example.com/?wc-api=WC_Sermepa',
'http://example.com/?wc-api=WC_Sermepa', $html);
return $html;
}
add_filter('rsssl_fixer_output','rsssl_exclude_http_url');
// Sources:
//https://really-simple-ssl.com/forums/topic/excluding-links-from-https-override/
//https://github.com/jesusangel/wc-sermepa/issues/2
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment