This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stripe.customers.verifySource( | |
"cus_DpUFgoN7g1OexF", | |
"ba_1DQ1OpESJTxeELxQOP9GMNve", | |
{ | |
amounts: [32, 49] | |
}, | |
function(err, bankAccount) { | |
if (err) { | |
return err | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Timer used to raise volume | |
volumeTimer = NSTimer.scheduledTimerWithTimeInterval(2, target: self, selector: #selector(AlarmControlViewController.raiseVolume), userInfo: nil, repeats: true) | |
} | |
func raiseVolume() { | |
// Next volume level | 0.0 -> 1.0 |