Capture Credit Card


use Payum\Core\Model\Payment;
use Payum\Core\Model\CreditCard;
use Payum\Core\GatewayInterface;

$card = new CreditCard();
$card->setExpireAt(new \DateTime('2018-10-10'));

$model = new Payment();

/** @var GatewayInterface $gateway */
$gateway->execute(new \Payum\Core\Request\Capture($model));

Back to examples

Supporting Payum

Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:

Last updated