src/Model/Payment.php
public function setPending($iPaymentId, $aData = []): bool
    {
        $aData['status'] = self::STATUS_PENDING;
        return $this->update($iPaymentId, $aData);
    }
public function setPending($iPaymentId, $aData = []): bool
    {
        $aData['status'] = self::STATUS_PENDING;
        return $this->update($iPaymentId, $aData);
    }
public function setPending ( $ iPaymentId , $ aData = [ ] ) : bool { $ aData [ 'status' ] = self :: STATUS_PENDING ; return $ this -> update ( $ iPaymentId , $ aData ) ; }
Set a payment as PENDING

@param  integer $iPaymentId The payment to update
@param  array   $aData      Any additional data to save to the transaction

@return bool
@throws \Nails\Common\Exception\FactoryException
Set a payment as PENDING