diff --git a/Magewire/Payment/Method/Giftcards.php b/Magewire/Payment/Method/Giftcards.php index 118590a..91f4b62 100644 --- a/Magewire/Payment/Method/Giftcards.php +++ b/Magewire/Payment/Method/Giftcards.php @@ -70,7 +70,7 @@ public function evaluateCompletion(EvaluationResultFactory $resultFactory): Eval if ($this->canSubmit === false) { return $resultFactory->createErrorMessageEvent() ->withCustomEvent('payment:method:error') - ->withMessage('Cannot complete payment with voucher'); + ->withMessage('Cannot complete payment with giftcards'); } return $resultFactory->createSuccess(); @@ -142,10 +142,10 @@ public function applyGiftcard( $quote, $this->buildGiftcardRequest($quote, $card, $cardNumber, $pin)->send() ); - $this->emit("giftcard_response", [$response]); + $this->emit("giftcard_response", $response); } catch (\Throwable $th) { $this->logger->addDebug((string)$th); - $this->emit("giftcard_response", [["error" => __('Cannot apply giftcard')]]); + $this->emit("giftcard_response", ["error" => __('Cannot apply giftcard')]); } } diff --git a/i18n/fr_FR.csv b/i18n/fr_FR.csv index e69de29..b629c34 100644 --- a/i18n/fr_FR.csv +++ b/i18n/fr_FR.csv @@ -0,0 +1,7 @@ +"MM/YY","MM/AA" +"Expiration:","Expiration :" +"Billing Middle Name:","Deuxième prénom (facturation):" +"Select giftcard issuer:","Sélectionner l'émetteur de la carte-cadeau:" +"PIN / Security code:","Code PIN / Code de sécurité:" +"Please select issuer","Veuillez sélectionner l'émetteur:" +"Voucher code:","Code du bon d'achat:" \ No newline at end of file diff --git a/i18n/nl_BE.csv b/i18n/nl_BE.csv index e69de29..9c8fa18 100644 --- a/i18n/nl_BE.csv +++ b/i18n/nl_BE.csv @@ -0,0 +1,7 @@ +"MM/YY","MM/JJ" +"Expiration:","Vervaldatum:" +"Billing Middle Name:","Tussenvoegsel voor facturatienaam:" +"Select giftcard issuer:","Selecteer Cadeaukaart:" +"PIN / Security code:","PIN-/beveiligingscode:" +"Please select issuer","Selecteer de uitgever" +"Voucher code:","Voucher code:" \ No newline at end of file diff --git a/i18n/nl_NL.csv b/i18n/nl_NL.csv index 453e86c..9c8fa18 100644 --- a/i18n/nl_NL.csv +++ b/i18n/nl_NL.csv @@ -1,7 +1,7 @@ "MM/YY","MM/JJ" -"Expiration:","Expiration:" -"Billing Middle Name:","Billing Middle Name:" -"Select giftcard issuer:","Select giftcard issuer:" -"PIN / Security code:","PIN / Security code:" -"Please select issuer","Please select issuer" +"Expiration:","Vervaldatum:" +"Billing Middle Name:","Tussenvoegsel voor facturatienaam:" +"Select giftcard issuer:","Selecteer Cadeaukaart:" +"PIN / Security code:","PIN-/beveiligingscode:" +"Please select issuer","Selecteer de uitgever" "Voucher code:","Voucher code:" \ No newline at end of file