Quarterly report pursuant to Section 13 or 15(d)

DEBT, COMMITMENTS AND CONTINGENCIES - Senior Secured Term Notes (Details)

v3.7.0.1
DEBT, COMMITMENTS AND CONTINGENCIES - Senior Secured Term Notes (Details) - USD ($)
6 Months Ended 12 Months Ended
Jan. 10, 2017
Feb. 12, 2015
Jan. 29, 2015
Jun. 30, 2017
Dec. 31, 2016
Dec. 31, 2015
DBD Credit Funding, LLC | Fortress Purchase Agreement            
DEBT, COMMITMENTS AND CONTINGENCIES            
Monetization of net revenues     $ 15,000,000      
Common stock issued (in shares)     134,409      
DBD Credit Funding, LLC | Fortress Purchase Agreement | Warrants            
DEBT, COMMITMENTS AND CONTINGENCIES            
Warrant term     5 years      
Number of shares which may be purchased by warrants     100,000      
Exercise price (in dollars per share)     $ 7.44      
Common Stock percentage to trigger warrant exercise     4.99%      
Value of warrants issued     $ 318,679      
DBD Credit Funding, LLC | Fortress Purchase Agreement, Amended And Restated            
DEBT, COMMITMENTS AND CONTINGENCIES            
Increase in revenue stream basis $ 1,225,000          
Debt covenant to maintain minimum liquidity in unrestricted cash and cash equivalents $ 1,250,000          
DBD Credit Funding, LLC | Fortress Purchase Agreement, Amended And Restated | Warrants            
DEBT, COMMITMENTS AND CONTINGENCIES            
Number of shares which may be purchased by warrants 187,500          
Senior Secured Notes            
DEBT, COMMITMENTS AND CONTINGENCIES            
Unamortized discount       $ 1,805,701 $ 1,425,167  
Term Notes, gross       15,835,900 15,620,759  
Senior Secured Notes | DBD Credit Funding, LLC | Fortress Purchase Agreement            
DEBT, COMMITMENTS AND CONTINGENCIES            
Unamortized discount         $ 1,805,701 $ 1,425,167
Senior Secured Notes | Original Agreement Promissory Note | DBD Credit Funding, LLC | Fortress Purchase Agreement            
DEBT, COMMITMENTS AND CONTINGENCIES            
Principal amount of debt     $ 20,000,000      
Interest rate on paid-in-kind interest (as a percent)     2.75%      
Term Notes, gross       15,835,900    
Cash collateral account       $ 4,500,000    
Senior Secured Notes | Initial Promissory Note | DBD Credit Funding, LLC | Fortress Purchase Agreement            
DEBT, COMMITMENTS AND CONTINGENCIES            
Principal amount of debt     $ 15,000,000      
Senior Secured Notes | New Promissory Note | DBD Credit Funding, LLC | Fortress Purchase Agreement, Amended And Restated            
DEBT, COMMITMENTS AND CONTINGENCIES            
Principal amount of debt $ 4,500,000          
Increase in interest rate (as a percent) 2.00%          
Structuring fees (as a percent) 2.00%          
Senior Secured Notes | Additional Notes | DBD Credit Funding, LLC | Fortress Purchase Agreement            
DEBT, COMMITMENTS AND CONTINGENCIES            
Principal amount of debt   $ 5,000,000        
Note term   42 months        
Senior Secured Notes | Additional Notes | DBD Credit Funding, LLC | Fortress Purchase Agreement, Amended And Restated            
DEBT, COMMITMENTS AND CONTINGENCIES            
Structuring fees (as a percent) 2.00%          
Senior Secured Notes | Additional Notes | DBD Credit Funding, LLC | Fortress Purchase Agreement, Amended And Restated | Maximum            
DEBT, COMMITMENTS AND CONTINGENCIES            
Maximum borrowing capacity $ 7,500,000          
Senior Secured Notes | Additional Notes available prior to June 30, 2017 | DBD Credit Funding, LLC | Fortress Purchase Agreement, Amended And Restated | Maximum            
DEBT, COMMITMENTS AND CONTINGENCIES            
Principal amount of debt 3,750,000          
Senior Secured Notes | Additional Notes available during the period following June 30, 2017 and on or prior to December 31, 2017 | DBD Credit Funding, LLC | Fortress Purchase Agreement, Amended And Restated | Maximum            
DEBT, COMMITMENTS AND CONTINGENCIES            
Principal amount of debt $ 3,750,000          
LIBOR | Senior Secured Notes            
DEBT, COMMITMENTS AND CONTINGENCIES            
Spread (as a percent)       9.75% 9.75%  
LIBOR | Senior Secured Notes | Original Agreement Promissory Note | DBD Credit Funding, LLC | Fortress Purchase Agreement            
DEBT, COMMITMENTS AND CONTINGENCIES            
Spread (as a percent)     9.75%      
LIBOR | Senior Secured Notes | New Promissory Note | DBD Credit Funding, LLC | Fortress Purchase Agreement, Amended And Restated            
DEBT, COMMITMENTS AND CONTINGENCIES            
Spread (as a percent) 9.75%