public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('method', PaymentMethodChoiceType::class, ['label' => 'sylius.form.payment.method'])->add('amount', MoneyType::class, ['label' => 'sylius.form.payment.amount'])->add('state', ChoiceType::class, ['choices' => ['sylius.form.payment.state.processing' => PaymentInterface::STATE_PROCESSING, 'sylius.form.payment.state.failed' => PaymentInterface::STATE_FAILED, 'sylius.form.payment.state.void' => PaymentInterface::STATE_VOID, 'sylius.form.payment.state.completed' => PaymentInterface::STATE_COMPLETED, 'sylius.form.payment.state.authorized' => PaymentInterface::STATE_AUTHORIZED, 'sylius.form.payment.state.new' => PaymentInterface::STATE_NEW, 'sylius.form.payment.state.cancelled' => PaymentInterface::STATE_CANCELLED, 'sylius.form.payment.state.refunded' => PaymentInterface::STATE_REFUNDED, 'sylius.form.payment.state.unknown' => PaymentInterface::STATE_UNKNOWN], 'label' => 'sylius.form.payment.state.header']);
}