Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Remove Whitespace from IBAN #22

Open
Florian1990 opened this issue Oct 10, 2023 · 2 comments
Open

Remove Whitespace from IBAN #22

Florian1990 opened this issue Oct 10, 2023 · 2 comments

Comments

@Florian1990
Copy link

IBANs are often grouped via space characters for better readability. For use in the QR code they have to be removed (if present) in order to be standard compliant and work with all banking apps.

Something like the following could work for this (untested):

function muxp_create_qrcode ($amount,$orderid, $muxp_PURPOSE_PREFIX) {

(…)

  $iban = preg_replace('/\s+/', '', $iban);  

  require_once(dirname(__FILE__) . "/vendor/bezahlcode/bezahlcode.class.php");
  
  $bezahlcode = new Bezahlcode($iban, $bic, $company, "phpqrcode", false);

(…)
reichemn pushed a commit to reichemn/SEPA-QR-for-Woocommerce that referenced this issue Oct 11, 2023
@Coernel82
Copy link
Owner

Can you make a pull request?

Florian1990 pushed a commit to Florian1990/SEPA-QR-for-Woocommerce that referenced this issue Jan 12, 2024
@Florian1990
Copy link
Author

Florian1990 commented Jan 12, 2024

I opened pull request #24 . I am still waiting for @reichemn to confirm this change does fix the issue. Feel free to merge.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants