for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/
namespace SprykerEco\Yves\Payone\Form;
use Generated\Shared\Transfer\PaymentTransfer;
use SprykerEco\Shared\Payone\PayoneApiConstants;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\FormBuilderInterface;
class BancontactOnlineTransferSubForm extends OnlineTransferSubForm
{
public const PAYMENT_METHOD = 'bancontact_online_transfer';
public const OPTION_BANK_COUNTRIES = 'bancontact online transfer bank countries';
* @return string
public function getName(): string
return PaymentTransfer::PAYONE_BANCONTACT_ONLINE_TRANSFER;
}
public function getPropertyPath(): string
* @param \Symfony\Component\Form\FormBuilderInterface $builder
* @param array $options
*
* @return $this
public function addOnlineBankTransferType(FormBuilderInterface $builder, array $options): self
$builder->add(
static::FIELD_ONLINE_BANK_TRANSFER_TYPE,
HiddenType::class,
[
'label' => false,
'data' => PayoneApiConstants::ONLINE_BANK_TRANSFER_TYPE_BANCONTACT,
]
);
return $this;