Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix credit card types if not set #23

Merged
merged 1 commit into from
Jun 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions meta/documents/changelog_de.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes für PAYONE

## 2.2.1

### Behoben
- Durch eine fehlerhafte Konfiguration des Plugins konnte es Fehler im Webshop geben, dies wurde behoben.

## 2.1.0

### Hinzugefügt
5 changes: 5 additions & 0 deletions meta/documents/changelog_en.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes for PAYONE

## 2.2.1

### Fixed
- Due to a faulty configuration of the plugin there could be errors in the webshop, this has been fixed.

## 2.1.0

### Added
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.1.0",
"version": "2.1.1",
"license": "MIT",
"pluginIcon": "icon_plugin_xs.png",
"price": 0.0,
5 changes: 4 additions & 1 deletion src/Models/CreditcardTypes.php
Original file line number Diff line number Diff line change
@@ -39,7 +39,10 @@ public function __construct(SettingsService $settingsService)
public function getAllowedTypes(): array
{
$allowedTypesFromConfig = $this->settingsService->getPaymentSettingsValue('AllowedCardTypes',PayoneCCPaymentMethod::PAYMENT_CODE);
return $allowedTypesFromConfig;
if(!is_array($allowedTypesFromConfig)) {
return $allowedTypesFromConfig;
}
return [];
}

/**