public function DatabaseQueue::releaseClaim in Payment 8.2
Releases a claimed payment.
Parameters
integer $payment_id:
string $acquisition_code: The code that was received from self::claim().
Overrides QueueInterface::releaseClaim
File
- src/
DatabaseQueue.php, line 204
Class
- DatabaseQueue
- Provides a database-based payment queue.
Namespace
Drupal\paymentCode
public function releaseClaim($payment_id, $acquisition_code) {
return (bool) $this->database
->update('payment_queue', array(
'return' => Database::RETURN_AFFECTED,
))
->condition('payment_id', $payment_id)
->condition('acquisition_code', $acquisition_code)
->condition('queue_id', $this->queueId)
->fields(array(
'claimed' => 0,
))
->execute();
}