Skip to content

Commit c96eefb

Browse files
authored
Merge pull request #69 from NoResponseMate/SYL-4540/fix-not-showing-card-inputs
[Shop] Fix card inputs not showing
2 parents 65c73b9 + 1cdf68f commit c96eefb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Form/Type/MollieGatewayConfigurationType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
133133
->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event): void {
134134
$data = $event->getData();
135135

136-
$apiKeyField = isset($data['environment']) ? MollieGatewayConfigurationType::API_KEY_LIVE : MollieGatewayConfigurationType::API_KEY_TEST; $apiKey = $data[$apiKeyField] ?? '';
136+
$apiKeyField = $data['environment'] ? MollieGatewayConfigurationType::API_KEY_LIVE : MollieGatewayConfigurationType::API_KEY_TEST;
137137

138+
$apiKey = $data[$apiKeyField] ?? '';
138139
if (!preg_match('/^(test|live)_\w{26,}$/', $apiKey)) {
139140
return;
140141
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{{ encore_entry_script_tags('shop-entry', null, 'shop') }}
2-
{{ encore_entry_script_tags('app-shop-entry', null, 'app.shop') }}
32
<script src="https://js.mollie.com/v1/mollie.js"> </script>
3+
{{ encore_entry_script_tags('app-shop-entry', null, 'app.shop') }}

0 commit comments

Comments
 (0)