1

I use Payum stable version 0.13 and Zend framework v2 for make payments via AuthorizeNet. My code for test:

    $storage = $this->getServiceLocator()
        ->get('payum')
        ->getStorage('LowbiddoPayment\Entity\AgreementDetails');

    $details                = $storage->create();
    $details['currency']    = 'USD';
    $details['amount']      = 100;
    $details['card_num']    = new SensitiveValue('4111111111111111');
    $details['exp_date']    = new SensitiveValue('10/16');
    $details['description'] = 'Test';
    $storage->update($details);

    $this->getServiceLocator()
        ->get('payum.security.token_factory')
        ->setUrlPlugin($this->url());

    $doneUrl = $this->url()->fromRoute('payment_done', array('id' => $orderId), array('force_canonical' => true));

    $captureToken = $this->getServiceLocator()
        ->get('payum.security.token_factory')
        ->createCaptureToken('authorize-net-aim', $details, $doneUrl);

I have this error

/vendor/payum/payum/src/Payum/AuthorizeNet/Aim/Action/CaptureAction.php:58

Credit card details has to be set explicitly or there has to be an action that supports ObtainCreditCard request.

How can I fix it? Thanks!

Maksim Kotlyar
  • 3,821
  • 27
  • 31
Enustik
  • 43
  • 1
  • 6

1 Answers1

1

PayumModule does not provide (yet) a built-in ObtainCreditCardAction. So there are two ways to go.

Maksim Kotlyar
  • 3,821
  • 27
  • 31