- Posts: 4
- Thank you received: 0
Please post all pre-sales questions of all products on this forum
For European Users: Offline Payment IBAN & BIC
- Bastian Berndt
- Topic Author
- Offline
- New Member
-
Less
More
7 years 4 months ago #107441
by Bastian Berndt
For European Users: Offline Payment IBAN & BIC was created by Bastian Berndt
Hello everybody,
in Europe we usually use IBAN ( en.wikipedia.org/wiki/International_Bank_Account_Number ) for the most of our payments.
It is possible to get an Offline Payment Plugin for the Event Booking Component?
it would be awesome if the plugin will check if the IBAN-No is correct. We only need to check the IBAN if is correct.
Then we need another Text field called "BIC". it can be a free textfield without any rules. And another normal Textfield called "Account Holder".
The Plugin just need to transfer the Data (IBAN, BIC, Account Holder).
It think the IBAN-function is something like this:
public static function IBAN($value, $extra = null, $data = null) {
$iban = strtolower($value);
$Countries = array(
'al'=>28,'ad'=>24,'at'=>20,'az'=>28,'bh'=>22,'be'=>16,'ba'=>20,'br'=>29,'bg'=>22,'cr'=>21,'hr'=>21,'cy'=>28,'cz'=>24,
'dk'=>18,'do'=>28,'ee'=>20,'fo'=>18,'fi'=>18,'fr'=>27,'ge'=>22,'de'=>22,'gi'=>23,'gr'=>27,'gl'=>18,'gt'=>28,'hu'=>28,
'is'=>26,'ie'=>22,'il'=>23,'it'=>27,'jo'=>30,'kz'=>20,'kw'=>30,'lv'=>21,'lb'=>28,'li'=>21,'lt'=>20,'lu'=>20,'mk'=>19,
'mt'=>31,'mr'=>27,'mu'=>30,'mc'=>27,'md'=>24,'me'=>22,'nl'=>18,'no'=>15,'pk'=>24,'ps'=>29,'pl'=>28,'pt'=>25,'qa'=>29,
'ro'=>24,'sm'=>27,'sa'=>24,'rs'=>22,'sk'=>24,'si'=>19,'es'=>24,'se'=>24,'ch'=>21,'tn'=>24,'tr'=>26,'ae'=>23,'gb'=>22,'vg'=>24
);
$Chars = array(
'a'=>10,'b'=>11,'c'=>12,'d'=>13,'e'=>14,'f'=>15,'g'=>16,'h'=>17,'i'=>18,'j'=>19,'k'=>20,'l'=>21,'m'=>22,
'n'=>23,'o'=>24,'p'=>25,'q'=>26,'r'=>27,'s'=>28,'t'=>29,'u'=>30,'v'=>31,'w'=>32,'x'=>33,'y'=>34,'z'=>35
);
if (strlen($iban) != $Countries[ substr($iban,0,2) ]) { return false; }
$MovedChar = substr($iban, 4) . substr($iban,0,4);
$MovedCharArray = str_split($MovedChar);
$NewString = "";
foreach ($MovedCharArray as $k => $v) {
if ( !is_numeric($MovedCharArray[$k]) ) {
$MovedCharArray[$k] = $Chars[$MovedCharArray[$k]];
}
$NewString .= $MovedCharArray[$k];
}
if (function_exists("bcmod")) { return bcmod($NewString, '97') == 1; }
// au2.php.net/manual/en/function.bcmod.php#38474
$x = $NewString; $y = "97";
$take = 5; $mod = "";
do {
$a = (int)$mod . substr($x, 0, $take);
$x = substr($x, $take);
$mod = $a % $y;
}
while (strlen($x));
return (int)$mod == 1;
}
It would awesome if you could help me
Kind regards
Bastian
in Europe we usually use IBAN ( en.wikipedia.org/wiki/International_Bank_Account_Number ) for the most of our payments.
It is possible to get an Offline Payment Plugin for the Event Booking Component?
it would be awesome if the plugin will check if the IBAN-No is correct. We only need to check the IBAN if is correct.
Then we need another Text field called "BIC". it can be a free textfield without any rules. And another normal Textfield called "Account Holder".
The Plugin just need to transfer the Data (IBAN, BIC, Account Holder).
It think the IBAN-function is something like this:
public static function IBAN($value, $extra = null, $data = null) {
$iban = strtolower($value);
$Countries = array(
'al'=>28,'ad'=>24,'at'=>20,'az'=>28,'bh'=>22,'be'=>16,'ba'=>20,'br'=>29,'bg'=>22,'cr'=>21,'hr'=>21,'cy'=>28,'cz'=>24,
'dk'=>18,'do'=>28,'ee'=>20,'fo'=>18,'fi'=>18,'fr'=>27,'ge'=>22,'de'=>22,'gi'=>23,'gr'=>27,'gl'=>18,'gt'=>28,'hu'=>28,
'is'=>26,'ie'=>22,'il'=>23,'it'=>27,'jo'=>30,'kz'=>20,'kw'=>30,'lv'=>21,'lb'=>28,'li'=>21,'lt'=>20,'lu'=>20,'mk'=>19,
'mt'=>31,'mr'=>27,'mu'=>30,'mc'=>27,'md'=>24,'me'=>22,'nl'=>18,'no'=>15,'pk'=>24,'ps'=>29,'pl'=>28,'pt'=>25,'qa'=>29,
'ro'=>24,'sm'=>27,'sa'=>24,'rs'=>22,'sk'=>24,'si'=>19,'es'=>24,'se'=>24,'ch'=>21,'tn'=>24,'tr'=>26,'ae'=>23,'gb'=>22,'vg'=>24
);
$Chars = array(
'a'=>10,'b'=>11,'c'=>12,'d'=>13,'e'=>14,'f'=>15,'g'=>16,'h'=>17,'i'=>18,'j'=>19,'k'=>20,'l'=>21,'m'=>22,
'n'=>23,'o'=>24,'p'=>25,'q'=>26,'r'=>27,'s'=>28,'t'=>29,'u'=>30,'v'=>31,'w'=>32,'x'=>33,'y'=>34,'z'=>35
);
if (strlen($iban) != $Countries[ substr($iban,0,2) ]) { return false; }
$MovedChar = substr($iban, 4) . substr($iban,0,4);
$MovedCharArray = str_split($MovedChar);
$NewString = "";
foreach ($MovedCharArray as $k => $v) {
if ( !is_numeric($MovedCharArray[$k]) ) {
$MovedCharArray[$k] = $Chars[$MovedCharArray[$k]];
}
$NewString .= $MovedCharArray[$k];
}
if (function_exists("bcmod")) { return bcmod($NewString, '97') == 1; }
// au2.php.net/manual/en/function.bcmod.php#38474
$x = $NewString; $y = "97";
$take = 5; $mod = "";
do {
$a = (int)$mod . substr($x, 0, $take);
$x = substr($x, $take);
$mod = $a % $y;
}
while (strlen($x));
return (int)$mod == 1;
}
It would awesome if you could help me
Kind regards
Bastian
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 4 months ago #107442
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic For European Users: Offline Payment IBAN & BIC
Hi Bastian
I am sorry, this is not a quick and easy job, so we could not help you. If you want to have a payment plugin like that, you will need to find someone to develop it for you
It will require both developing a payment plugin and also customize the layout of registration form (displaying these extra fields to allow entering data of these fields you asked
I am afraid of this will take few hours (to one day) of working and it will cost you about 100$ to 120$
Regards,
Tuan
I am sorry, this is not a quick and easy job, so we could not help you. If you want to have a payment plugin like that, you will need to find someone to develop it for you
It will require both developing a payment plugin and also customize the layout of registration form (displaying these extra fields to allow entering data of these fields you asked
I am afraid of this will take few hours (to one day) of working and it will cost you about 100$ to 120$
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Bastian Berndt
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
7 years 4 months ago #107443
by Bastian Berndt
Replied by Bastian Berndt on topic For European Users: Offline Payment IBAN & BIC
Hi Tuan
Thank you for the quick reply. Is it possible to get a plugin with 3 Textfields IBAN, BIC, Account Holder without any check. Only to get the Data from this 3 fields?
Kind Regards
Bastian
Thank you for the quick reply. Is it possible to get a plugin with 3 Textfields IBAN, BIC, Account Holder without any check. Only to get the Data from this 3 fields?
Kind Regards
Bastian
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 4 months ago #107444
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic For European Users: Offline Payment IBAN & BIC
No, it is not possible. You will still need to customize some parts of source code to only show these fields when offline payment method is selected for the registration, so it will still require customization
The simplest option is just creating these custom fields, make it optional and modify the registration form message to tell users that if they use offline payments, they need to enter data for these custom fields
However, as you see, it will always be displayed. So better, if you really need it works perfectly, hire someone to customize the code
Regards,
Tuan
The simplest option is just creating these custom fields, make it optional and modify the registration form message to tell users that if they use offline payments, they need to enter data for these custom fields
However, as you see, it will always be displayed. So better, if you really need it works perfectly, hire someone to customize the code
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Bastian Berndt
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
7 years 4 months ago #107445
by Bastian Berndt
Replied by Bastian Berndt on topic For European Users: Offline Payment IBAN & BIC
Ok, thank you very much

Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc, Giang Dinh Truong, Mr. Dam
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.