Skip to content

Commit

Permalink
DAVAMS-683: Add support for Multibanco payment method (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel-MultiSafepay committed Feb 12, 2024
1 parent 6e47c5a commit cbefe62
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin/language/de-de/payment/multisafepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
$_['text_brief_description_klarna'] = '';
$_['text_brief_description_maestro'] = '';
$_['text_brief_description_mastercard'] = '';
$_['text_brief_description_multibanco'] = '';
$_['text_brief_description_mbway'] = '';
$_['text_brief_description_mybank'] = '';
$_['text_brief_description_nationaletuinbon'] = '';
Expand Down Expand Up @@ -170,6 +171,7 @@
$_['text_title_maestro'] = 'Maestro';
$_['text_title_mastercard'] = 'Mastercard';
$_['text_title_mbway'] = 'MB WAY';
$_['text_title_multibanco'] = 'Multibanco';
$_['text_title_mybank'] = 'MyBank - Bonifico Immediato';
$_['text_title_parfum_cadeaukaart'] = 'Parfum Cadeaukaart';
$_['text_title_pay_after_delivery'] = 'Pay After Delivery';
Expand Down
2 changes: 2 additions & 0 deletions admin/language/en-gb/payment/multisafepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
$_['text_brief_description_klarna'] = 'A popular post-payment solution available for webshops based in Austria, Germany and the Netherlands.';
$_['text_brief_description_maestro'] = 'Enable a widely used debit card payment method by MasterCard.';
$_['text_brief_description_mastercard'] = 'Accept Mastercard credit card payments from consumers worldwide.';
$_['text_brief_description_multibanco'] = 'Multibanco is a payment method in Portugal that allows the customer to complete payment through home banking, service payments, or on the ATM Network.';
$_['text_brief_description_mbway'] = 'With MB WAY, whether online or at the point of sale, customers will be able to pay for purchases using only their mobile phone number.';
$_['text_brief_description_mybank'] = '';
$_['text_brief_description_nationaletuinbon'] = '';
Expand Down Expand Up @@ -168,6 +169,7 @@
$_['text_title_klarna'] = 'Klarna - Pay in 30 days';
$_['text_title_maestro'] = 'Maestro';
$_['text_title_mastercard'] = 'Mastercard';
$_['text_title_multibanco'] = 'Multibanco';
$_['text_title_mbway'] = 'MB WAY';
$_['text_title_mybank'] = 'MyBank - Bonifico Immediato';
$_['text_title_parfum_cadeaukaart'] = 'Parfum Cadeaukaart';
Expand Down
2 changes: 2 additions & 0 deletions admin/language/es/payment/multisafepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
$_['text_brief_description_klarna'] = '';
$_['text_brief_description_maestro'] = '';
$_['text_brief_description_mastercard'] = '';
$_['text_brief_description_multibanco'] = '';
$_['text_brief_description_mbway'] = '';
$_['text_brief_description_mybank'] = '';
$_['text_brief_description_nationaletuinbon'] = '';
Expand Down Expand Up @@ -170,6 +171,7 @@
$_['text_title_klarna'] = 'Klarna - Compra ahora, paga después';
$_['text_title_maestro'] = 'Maestro';
$_['text_title_mastercard'] = 'Mastercard';
$_['text_title_multibanco'] = 'Multibanco';
$_['text_title_mbway'] = 'MB WAY';
$_['text_title_mybank'] = 'MyBank - Bonifico Immediato';
$_['text_title_parfum_cadeaukaart'] = 'Parfum Cadeaukaart';
Expand Down
2 changes: 2 additions & 0 deletions admin/language/it-it/payment/multisafepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
$_['text_brief_description_klarna'] = '';
$_['text_brief_description_maestro'] = '';
$_['text_brief_description_mastercard'] = '';
$_['text_brief_description_multibanco'] = '';
$_['text_brief_description_mbway'] = '';
$_['text_brief_description_mybank'] = '';
$_['text_brief_description_nationaletuinbon'] = '';
Expand Down Expand Up @@ -169,6 +170,7 @@
$_['text_title_klarna'] = 'Klarna - Compra ora, paga dopo';
$_['text_title_maestro'] = 'Maestro';
$_['text_title_mastercard'] = 'Mastercard';
$_['text_title_multibanco'] = 'Multibanco';
$_['text_title_mbway'] = 'MB WAY';
$_['text_title_mybank'] = 'MyBank - Bonifico Immediato';
$_['text_title_parfum_cadeaukaart'] = 'Parfum Cadeaukaart';
Expand Down
2 changes: 2 additions & 0 deletions admin/language/nl-nl/payment/multisafepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
$_['text_brief_description_klarna'] = '';
$_['text_brief_description_maestro'] = '';
$_['text_brief_description_mastercard'] = '';
$_['text_brief_description_multibanco'] = '';
$_['text_brief_description_mbway'] = '';
$_['text_brief_description_mybank'] = '';
$_['text_brief_description_nationaletuinbon'] = '';
Expand Down Expand Up @@ -171,6 +172,7 @@
$_['text_title_klarna'] = 'Klarna - Betaal later in 14 dagen';
$_['text_title_maestro'] = 'Maestro';
$_['text_title_mastercard'] = 'Mastercard';
$_['text_title_multibanco'] = 'Multibanco';
$_['text_title_mbway'] = 'MB WAY';
$_['text_title_mybank'] = 'MyBank - Bonifico Immediato';
$_['text_title_parfum_cadeaukaart'] = 'Parfum Cadeaukaart';
Expand Down
11 changes: 11 additions & 0 deletions catalog/controller/payment/multisafepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,17 @@ public function mastercard(): string
return $this->load->view($this->route, $data);
}

/**
* Handles the confirm order form for Multibanco payment method
*
* @return string
*/
public function multibanco(): string
{
$data = $this->paymentMethodBase('MULTIBANCO');
return $this->load->view($this->route, $data);
}

/**
* Handles the confirmation order form for MB WAY payment method
*
Expand Down
1 change: 1 addition & 0 deletions catalog/language/de-de/payment/multisafepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
$_['text_title_klarna'] = 'Klarna - Rechnung';
$_['text_title_maestro'] = 'Maestro';
$_['text_title_mastercard'] = 'Mastercard';
$_['text_title_multibanco'] = 'Multibanco';
$_['text_title_mbway'] = 'MB WAY';
$_['text_title_mybank'] = 'MyBank - Bonifico Immediato';
$_['text_title_parfum_cadeaukaart'] = 'Parfum Cadeaukaart';
Expand Down
1 change: 1 addition & 0 deletions catalog/language/en-gb/payment/multisafepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
$_['text_title_klarna'] = 'Klarna - Pay in 30 days';
$_['text_title_maestro'] = 'Maestro';
$_['text_title_mastercard'] = 'Mastercard';
$_['text_title_multibanco'] = 'Multibanco';
$_['text_title_mbway'] = 'MB WAY';
$_['text_title_mybank'] = 'MyBank - Bonifico Immediato';
$_['text_title_parfum_cadeaukaart'] = 'Parfum Cadeaukaart';
Expand Down
1 change: 1 addition & 0 deletions catalog/language/es/payment/multisafepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
$_['text_title_klarna'] = 'Klarna - Compra ahora, paga después';
$_['text_title_maestro'] = 'Maestro';
$_['text_title_mastercard'] = 'Mastercard';
$_['text_title_multibanco'] = 'Multibanco';
$_['text_title_mbway'] = 'MB WAY';
$_['text_title_mybank'] = 'MyBank - Bonifico Immediato';
$_['text_title_parfum_cadeaukaart'] = 'Parfum Cadeaukaart';
Expand Down
1 change: 1 addition & 0 deletions catalog/language/it-it/payment/multisafepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
$_['text_title_klarna'] = 'Klarna - Compra ora, paga dopo';
$_['text_title_maestro'] = 'Maestro';
$_['text_title_mastercard'] = 'Mastercard';
$_['text_title_multibanco'] = 'Multibanco';
$_['text_title_mbway'] = 'MB WAY';
$_['text_title_mybank'] = 'MyBank - Bonifico Immediato';
$_['text_title_parfum_cadeaukaart'] = 'Parfum Cadeaukaart';
Expand Down
1 change: 1 addition & 0 deletions catalog/language/nl-nl/payment/multisafepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
$_['text_title_klarna'] = 'Klarna - Betaal later in 14 dagen';
$_['text_title_maestro'] = 'Maestro';
$_['text_title_mastercard'] = 'Mastercard';
$_['text_title_multibanco'] = 'Multibanco';
$_['text_title_mbway'] = 'MB WAY';
$_['text_title_mybank'] = 'MyBank - Bonifico Immediato';
$_['text_title_parfum_cadeaukaart'] = 'Parfum Cadeaukaart';
Expand Down
8 changes: 8 additions & 0 deletions system/library/multisafepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -2404,6 +2404,14 @@ public function getGateways(): array
'type' => 'gateway',
'brief_description' => $this->language->get('text_brief_description_mastercard')
),
array(
'id' => 'MULTIBANCO',
'code' => 'multibanco',
'route' => 'multisafepay/multibanco',
'description' => $this->language->get('text_title_multibanco'),
'type' => 'gateway',
'brief_description' => $this->language->get('text_brief_description_multibanco')
),
array(
'id' => 'MBWAY',
'code' => 'mbway',
Expand Down

0 comments on commit cbefe62

Please sign in to comment.