Skip to content

Swe 12 enable payment suite #13

merged 14 commits into from Apr 8, 2019

SWE-12 Navigation changes

- in order to avoid having a back button on the Payment Result screen, we present it modally and then pop to the root controller
- this gives the user a view with Cancel in the left corner, and a Home button. Tapping cancel will dismiss the modal, showing the Home screen
  • Loading branch information
ahm11003 committed Mar 29, 2019
commit 0e76bccb4be1253e5fae95abacd3316093deef7d
@@ -39,10 +39,9 @@ class PaymentDetailInterfaceController: WKInterfaceController {
guard error == nil else { return }
self.dictForPayment.updateValue(confirmationNum, forKey: "payment_confirmation_number")
self.dictForPayment.updateValue(paymentID, forKey: "payment_id")
self.pushController(withName: "PaymentResult", context: self.dictForPayment)
self.presentController(withName: "PaymentResult", context: self.dictForPayment)

// popToRootController()
} else {
// animate(withDuration: 0.75) {
// self.paymentButton.setBackgroundColor(UIColor.init(red: 141, green: 241, blue: 48, alpha: 1.0))
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.