Наследование: implements Payum\Core\Action\ActionInterface, implements Payum\Core\GatewayAwareInterface, implements Payum\Core\Security\GenericTokenFactoryAwareInterface, use trait Payum\Core\GatewayAwareTrait, use trait Payum\Core\Security\GenericTokenFactoryAwareTrait
 /**
  * {@inheritDoc}
  */
 public function execute($request)
 {
     /** @var $request Capture */
     RequestNotSupportedException::assertSupports($this, $request);
     $details = ArrayObject::ensureArrayObject($request->getModel());
     $details['PAYMENTREQUEST_0_PAYMENTACTION'] = Api::PAYMENTACTION_AUTHORIZATION;
     parent::execute($request);
 }
Пример #2
0
 /**
  * {@inheritDoc}
  */
 public function execute($request)
 {
     /** @var $request Capture */
     RequestNotSupportedException::assertSupports($this, $request);
     $details = ArrayObject::ensureArrayObject($request->getModel());
     $details['PAYMENTREQUEST_0_PAYMENTACTION'] = Api::PAYMENTACTION_SALE;
     foreach (range(0, 9) as $index) {
         if (Api::PENDINGREASON_AUTHORIZATION == $details['PAYMENTINFO_' . $index . '_PENDINGREASON']) {
             $details->defaults(['PAYMENTREQUEST_' . $index . '_COMPLETETYPE' => 'Complete']);
             $this->gateway->execute(new DoCapture($details, $index));
         }
     }
     parent::execute($request);
 }