function commerce_authnet_cron in Commerce Authorize.Net 8
Implements hook_cron().
File
- ./
commerce_authnet.module, line 31 - Contains hooks for Commerce Authorize.net.
Code
function commerce_authnet_cron() {
$verifier = \Drupal::getContainer()
->get('commerce_authnet.echeck_transaction_verifier');
$payments = $verifier
->getPayments();
foreach ($payments as $payment) {
$verifier
->processPayment($payment);
}
}