Skip to content

Commit c5c5f4a

Browse files
author
Nathan DIAS
committed
Merge branch 'hotfix/2.0.8'
2 parents 93b6e94 + ce3e208 commit c5c5f4a

8 files changed

Lines changed: 27 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2.0.8, 2023-08-24
2+
- Compatibility with Drupal 10.x.
3+
- Update list of supported payment means.
4+
- Update list of supported currencies.
5+
16
2.0.7, 2023-04-26:
27
- Bug fix: Update order balance in case of online refund.
38
- Improve module documentation management field.

commerce_payzen/commerce_payzen.info.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ dependencies:
66
- commerce_payment
77

88
# information about project
9-
version: "8.x-9.x-2.0.7"
9+
version: "8.x-10.x-2.0.8"
1010
core: "8.x"
11-
core_version_requirement: ^8 || ^9
11+
core_version_requirement: ^8 || ^9 || ^10
1212
project: "commerce_payzen"
1313
datestamp: "1612773362"
1414
interface translation project: commerce_payzen

commerce_payzen/src/Includes/Form/Api.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,14 @@ public static function getSupportedCardTypes()
212212
'ACCORD_STORE' => 'Cartes Enseignes Partenaires', 'ACCORD_STORE_SB' => 'Cartes Enseignes Partenaires (sandbox)',
213213
'ALINEA' => 'Carte myalinea', 'ALINEA_CDX' => 'Carte Cadeau Alinéa', 'ALINEA_CDX_SB' => 'Carte Cadeau Alinéa (sandbox)',
214214
'ALINEA_SB' => 'Carte myalinea (sandbox)', 'ALIPAY' => 'Alipay', 'ALLOBEBE_CDX' => 'Carte Cadeau Allobébé',
215-
'ALLOBEBE_CDX_SB' => 'Carte Cadeau Allobébé (sandbox)', 'APETIZ' => 'Apetiz', 'APPLE_PAY' => 'Apple Pay',
215+
'ALLOBEBE_CDX_SB' => 'Carte Cadeau Allobébé (sandbox)', 'ALMA' => 'Alma en 1 fois', 'ALMA_10X' => 'Alma in 10 installments',
216+
'ALMA_12X' => 'Alma in 12 installments', 'ALMA_2X' => 'Alma in 2 installments', 'ALMA_3X' => 'Alma in 3 installments',
217+
'ALMA_4X' => 'Alma in 4 installments', 'APETIZ' => 'Apetiz', 'APPLE_PAY' => 'Apple Pay',
216218
'AUCHAN' => 'Carte Auchan', 'AUCHAN_SB' => 'Carte Auchan (sandbox)', 'AURORE-MULTI' => 'Cpay Aurore',
217219
'BANCONTACT' => 'Bancontact Mistercash', 'BIZUM' => 'Bizum', 'BIZZBEE_CDX' => 'Carte Cadeau Bizzbee',
218220
'BIZZBEE_CDX_SB' => 'Carte Cadeau Bizzbee (sandbox)', 'BOULANGER' => 'Carte b+',
219221
'BOULANGER_SB' => 'Carte b+ (sandbox)', 'BRICE_CDX' => 'Carte Cadeau Brice', 'BRICE_CDX_SB' => 'Carte Cadeau Brice (sandbox)',
220-
'BUT' => 'But', 'CA_DO_CARTE' => 'CA DO Carte', 'CABAL' => 'Cabal', 'CARNET' => 'Carnet', 'CASINO' => 'Banque Casino',
222+
'BUT' => 'But', 'CABAL' => 'Cabal', 'CARNET' => 'Carnet', 'CASINO' => 'Banque Casino', 'CA_DO_CARTE' => 'CA DO Carte',
221223
'CDGP' => 'Carte Privilège', 'CDISCOUNT' => 'CDiscount', 'CHQ_DEJ' => 'Chèque Déjeuner', 'COF3XCB' => 'Cofinoga 3 fois CB',
222224
'COF3XCB_SB' => 'Cofinoga 3 fois CB Sandbox', 'COFINOGA' => 'Cofinoga', 'COM_BARRY_CDX' => 'Carte Cadeau Comtesse du Barry',
223225
'COM_BARRY_CDX_SB' => 'Carte Cadeau Comtesse du Barry (sandbox)', 'CONECS' => 'Conecs', 'CONFORAMA' => 'Conforama',
@@ -231,7 +233,8 @@ public static function getSupportedCardTypes()
231233
'ILLICADO' => 'Carte Illicado', 'ILLICADO_SB' => 'Carte Illicado (sandbox)', 'IP_WIRE' => 'Virement SEPA',
232234
'IP_WIRE_INST' => 'Virement SEPA Instantané', 'JCB' => 'JCB', 'JOUECLUB_CDX' => 'Carte Cadeau Joué Club',
233235
'JOUECLUB_CDX_SB' => 'Carte Cadeau Joué Club (sandbox)', 'JULES_CDX' => 'Carte Cadeau Jules',
234-
'JULES_CDX_SB' => 'Carte Cadeau Jules (sandbox)', 'KLARNA' => 'Klarna', 'LECLERC' => 'Carte Reglo',
236+
'JULES_CDX_SB' => 'Carte Cadeau Jules (sandbox)', 'KADEOS_CULTURE' => 'Carte Kadéos Culture',
237+
'KADEOS_GIFT' => 'Carte Kadéos Zénith', 'KLARNA' => 'Klarna', 'LECLERC' => 'Carte Reglo',
235238
'LEROY-MERLIN' => 'Carte Maison Financement', 'LEROY-MERLIN_SB' => 'Carte Maison Financement (sandbox)',
236239
'MASTERPASS' => 'MasterPass', 'MC_CORDOBESA' => 'Mastercard Cordobesa', 'MULTIBANCO' => 'Multibanco', 'MYBANK' => 'MyBank',
237240
'NARANJA' => 'Naranja', 'NORAUTO' => 'Carte Norauto option Financement', 'NORAUTO_SB' => 'Carte Norauto option Financement (sandbox)',

commerce_payzen/src/Plugin/Commerce/PaymentGateway/Payzen.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
229229
'#type' => 'item',
230230
'#title' => $this->t('Instant Payment Notification URL'),
231231
'#description' => '<span class="payzen-ipn-desc">
232-
<img src="' . base_path() . drupal_get_path('module', 'commerce_payzen') . '/images/warn.png">' .
232+
<img src="' . base_path() . $this->payzen_get_path() . '/images/warn.png">' .
233233
$this->t('URL to copy into your PayZen Back Office > Settings > Notification rules.') .
234234
'</span>',
235235
'#markup' => $this->getNotifyUrl()->toString()
@@ -753,4 +753,13 @@ private function savePayment($order, $response)
753753

754754
return $state !== 'voided';
755755
}
756+
757+
private function payzen_get_path()
758+
{
759+
if (function_exists('drupal_get_path')) {
760+
return drupal_get_path('module', 'commerce_payzen');
761+
}
762+
763+
return \Drupal::service('extension.list.module')->getPath('commerce_payzen');
764+
}
756765
}

commerce_payzen/src/Tools.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Tools
2424
const GATEWAY_CODE = 'PayZen';
2525
const GATEWAY_VERSION = 'V2';
2626
const CMS_IDENTIFIER = 'Drupal_Commerce_2.x';
27-
const PLUGIN_VERSION = '2.0.7';
27+
const PLUGIN_VERSION = '2.0.8';
2828
const DOC_PATTERN = '###DOC_PATTERN###';
2929

3030
public static $pluginFeatures = array(

commerce_payzen/translations/payzen.de.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: PayZen for Drupal Commerce (8.x-"
4-
"2.0.7)\n"
4+
"2.0.8)\n"
55
"Report-Msgid-Bugs-To: \n"
66
"POT-Creation-Date: 2020-12-02 14:59+0100\n"
77
"PO-Revision-Date: 2021-01-31 15:19+0100\n"

commerce_payzen/translations/payzen.es.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: PayZen for Drupal Commerce (8.x-"
4-
"2.0.7)\n"
4+
"2.0.8)\n"
55
"Report-Msgid-Bugs-To: \n"
66
"POT-Creation-Date: 2020-12-02 15:02+0100\n"
77
"PO-Revision-Date: 2021-01-31 15:17+0100\n"

commerce_payzen/translations/payzen.fr.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: PayZen for Drupal Commerce (8.x-"
4-
"2.0.7)\n"
4+
"2.0.8)\n"
55
"Report-Msgid-Bugs-To: \n"
66
"POT-Creation-Date: 2020-12-02 15:05+0100\n"
77
"PO-Revision-Date: 2021-01-31 15:16+0100\n"

0 commit comments

Comments
 (0)