I currently have a working Stripe set up where the AddCardViewController is opened first and everything works.
However, when I try to implement the PaymentSettingsViewController first and let user Add/Edit their cards, it won't load.
I am using the first function to initialially present the addCardViewController, I want to replace this with the PaymentOptionsViewController.
func openAddCardViewController(navController: UINavigationController) {
addCardViewController = STPAddCardViewController()
addCardViewController?.delegate = self
self.navController = navController
navController.pushFromBottom(viewController: addCardViewController!)
}
func openPaymentOptionsViewController(navController: UINavigationController) {
paymentOptionsViewController = STPPaymentOptionsViewController()
self.navController = navController
navController.pushFromBottom(viewController: paymentOptionsViewController!)
}
I would like it to just load and then I take it from there and use existing code from the working setup.
What I don't understand is why when I push the AddCardViewController, the view loads fine, but not with the PaymentOptions, its just a loading indicator, and the cancel button won't pop the view.