Support » Plugin: Mollie Payments for WooCommerce » Remove function getInstructions ideal.php payment details

  • Resolved precies

    (@precies)


    Hello,

    Using this plugin and it is great only we have one issue regarding the extra payment info grabbed from ideal.php.

    In the last function “function getInstructions” it is getting extra bank and payment info and this is displayed in e-mails, succes page ect. ect. like this:

    Payment completed by T. TEST (IBAN (last 4 digits): 8412, BIC: TESTNL99)

    This is not really user friendy, first it is hard coded in english and webshop is Dutch, second I dont want this information to be displayed at all.

    Is there a clean way to remove this so I can keep updating this plugin. I would hate it to remove it from plugin file directly.

    Anyone who can help me with this?

    Kind regards

    Joep

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor davdebcom

    (@davdebcom)

    Hi Joep

    Did some research: it’s not hardcoded, but the translation hasn’t been accepted yet, I’ll see what I can do about that so it appears in the new version.

    Looking into the other issue now,

    Kind regards
    David

    Plugin Contributor davdebcom

    (@davdebcom)

    Hi Joep

    It’s not just iDEAL, a message like this is also added for bank transfer, credit card, directdebit, PayPal and Sofort.

    Because it is a language string, the easiest solution for you might be to override the string itself. It should work with this code:

    function mollie_payments_change_payment_completed_text( $translated_text ) {
    	if ( $translated_text == 'Payment completed by <strong>%s</strong> (IBAN (last 4 digits): %s, BIC: %s)' ) {
    		$translated_text = 'Payment completed by <strong>%s</strong>.';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'mollie_payments_change_payment_completed_text', 20 );

    I’ve also added it to my list of snippets.
    https://github.com/mollie/WooCommerce/wiki/Helpful-snippets#change-payment-completed-by-text-on-return-page

    Let me know if that works for you,

    Kind regards
    David

    • This reply was modified 3 years, 8 months ago by davdebcom.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove function getInstructions ideal.php payment details’ is closed to new replies.