You are here

function DatabaseQueue::save in Payment 8.2

Saves a payment available for referencing.

Parameters

string $category_id: The ID of the category the payment falls in.

integer $payment_id:

Overrides QueueInterface::save

File

src/DatabaseQueue.php, line 136

Class

DatabaseQueue
Provides a database-based payment queue.

Namespace

Drupal\payment

Code

function save($category_id, $payment_id) {
  $this->database
    ->insert('payment_queue')
    ->fields(array(
    'category_id' => $category_id,
    'payment_id' => $payment_id,
    'queue_id' => $this->queueId,
  ))
    ->execute();
}