Skip to content

Commit

Permalink
Merge pull request #4 from spryker-eco/bugfix/ECO-686-there-is-no-car…
Browse files Browse the repository at this point in the history
…dholder-field-for-credit-card-payment-method

Bugfix/eco 686 there is no cardholder field for credit card payment method
  • Loading branch information
serhiisikachov authored Aug 4, 2017
2 parents e30504b + 737a1a1 commit dcdc84a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/SprykerEco/Yves/Payone/Form/CreditCardSubForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
public function buildForm(FormBuilderInterface $builder, array $options)
{
$this->addCardType($builder, $options)
->addNameOnCard($builder)
->addHiddenInputs($builder);
}

Expand Down
6 changes: 6 additions & 0 deletions src/SprykerEco/Yves/Payone/Theme/default/credit_card.twig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
<span id="cardexpireyear"></span>
</span>

<label>{{ 'Payone_credit_card.cardholder' | trans }}</label>
<div class="field">
{{ form_widget(form.payoneCreditCard.cardholder) }}
{{ form_errors(form.payoneCreditCard.cardholder) }}
</div>

<div class="field">
{{ form_widget(form.payoneCreditCard.payone_client_api_config) }}
{{ form_widget(form.payoneCreditCard.pseudocardpan, {'id': 'pseudocardpan'}) }}
Expand Down

0 comments on commit dcdc84a

Please sign in to comment.