public function configure(PaymentMethodInterface $paymentMethod)
{
$configuration = $paymentMethod->getConfiguration();
$resolver = new OptionsResolver();
$this->configureOptions($resolver);
$this->configuration = $resolver->resolve($configuration);
}