Cleaned up some commented out code
This commit is contained in:
		
					parent
					
						
							
								834810baf0
							
						
					
				
			
			
				commit
				
					
						832ec48e93
					
				
			
		
					 1 changed files with 0 additions and 4 deletions
				
			
		| 
						 | 
					@ -51,7 +51,6 @@ $(document).ready(function () {
 | 
				
			||||||
    var hasCreditcard = window.hasCreditcard || false;
 | 
					    var hasCreditcard = window.hasCreditcard || false;
 | 
				
			||||||
    if (!hasCreditcard) {
 | 
					    if (!hasCreditcard) {
 | 
				
			||||||
        var stripe = Stripe(window.stripeKey);
 | 
					        var stripe = Stripe(window.stripeKey);
 | 
				
			||||||
        /* new card */
 | 
					 | 
				
			||||||
        var element_style = {
 | 
					        var element_style = {
 | 
				
			||||||
            fonts: [{
 | 
					            fonts: [{
 | 
				
			||||||
                family: 'lato-light',
 | 
					                family: 'lato-light',
 | 
				
			||||||
| 
						 | 
					@ -135,13 +134,10 @@ $(document).ready(function () {
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        cardCvcElement.mount('#card-cvc-element');
 | 
					        cardCvcElement.mount('#card-cvc-element');
 | 
				
			||||||
        cardNumberElement.on('change', function (event) {
 | 
					        cardNumberElement.on('change', function (event) {
 | 
				
			||||||
            // Switch brand logo
 | 
					 | 
				
			||||||
            if (event.brand) {
 | 
					            if (event.brand) {
 | 
				
			||||||
                setBrandIcon(event.brand);
 | 
					                setBrandIcon(event.brand);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            //setOutcome(event);
 | 
					 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        /* new card end */
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    console.log("has creditcard", hasCreditcard);
 | 
					    console.log("has creditcard", hasCreditcard);
 | 
				
			||||||
    // hasCreditcard= true;
 | 
					    // hasCreditcard= true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue