function DatabaseQueue::deleteByPaymentId in Payment 8.2
Deletes a payment from the queue by payment ID.
Parameters
integer $payment_id:
Overrides QueueInterface::deleteByPaymentId
File
- src/
DatabaseQueue.php, line 245
Class
- DatabaseQueue
- Provides a database-based payment queue.
Namespace
Drupal\paymentCode
function deleteByPaymentId($id) {
$this->database
->delete('payment_queue')
->condition('payment_id', $id)
->condition('queue_id', $this->queueId)
->execute();
}