[FIXED] Mollie payment screen shows fatal error since July 2024
-
Just in case it helps somebody else who is using this plugin. The Mollie payment URL included other variables from the Mollie Api Client in the URL and Mollie didn’t like it and throws an error.
These variables get injected by the form that submits a GET request to the payment URL via javascript. According to the file ‘This prevents the WordPress error “Headers already sent in…”.
So, here’s what I changed in
wp-content/plugins/stonehenge-em-mollie/includes/gateway.mollie.js
to make it work viawindow.location.replace
and not send all those extra vars which Mollie shouldn’t need anyway I guess:// This prevents the WordPress error "Headers already sent in..."
$(document).bind('em_booking_gateway_add_mollie', function (event, response) {
if (response.result) {
console.log('the mollie return url is ', response.mollie_url);
window.location.replace(response.mollie_url);
/*
var mollieForm = $('<form action="'+response.mollie_url+'" method="get" id="em-mollie-redirect-form"></form>');
$.each( response.mollie_vars, function(index,value){
mollieForm.append('<input type="hidden" name="'+index+'" value="'+value+'" />');
});
mollieForm.append('<input id="em-mollie-submit" type="submit" style="display:none" />');
//mollieForm.appendTo('body').trigger('submit');
*/
}
});I think this has changed since the introduction of iDeal 2.0 on 1st of July 2024.
Hope this helps someone.
- The topic ‘[FIXED] Mollie payment screen shows fatal error since July 2024’ is closed to new replies.