Permalink
This commit does not belong to any branch on this respository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #13 from rrk12005/SWE-12-enable-payment-suite
Swe 12 enable payment suite
- Loading branch information
Showing
with
178 additions
and 53 deletions.
- +44 −15 SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard
- +34 −18 SynchronyFinancial/SynchronyFinancial WatchKit Extension/FetchData.swift
- +3 −0 SynchronyFinancial/SynchronyFinancial WatchKit Extension/PayBillInterfaceController.swift
- +41 −11 SynchronyFinancial/SynchronyFinancial WatchKit Extension/PaymentDetailInterfaceController.swift
- +38 −0 SynchronyFinancial/SynchronyFinancial WatchKit Extension/PaymentResultInterfaceController.swift
- +0 −1 SynchronyFinancial/SynchronyFinancial WatchKit Extension/TransactionCell.swift
- +4 −1 SynchronyFinancial/SynchronyFinancial.xcodeproj/project.pbxproj
- +9 −7 SynchronyFinancial/SynchronyFinancial/Defaults.swift
- +5 −0 SynchronyFinancial/SynchronyFinancial/Transaction.swift
@@ -0,0 +1,38 @@ | |||
// | |||
// PaymentResultInterfaceController.swift | |||
// SynchronyFinancial WatchKit Extension | |||
// | |||
// Created by Alan Maynard on 3/29/19. | |||
// Copyright © 2019 Alan Maynard. All rights reserved. | |||
// | |||
import WatchKit | |||
import Foundation | |||
|
|||
class PaymentResultInterfaceController: WKInterfaceController { | |||
@IBOutlet weak var confirmationNumberLabel: WKInterfaceLabel! | |||
@IBOutlet weak var paymentIDLabel: WKInterfaceLabel! | |||
|
|||
override func awake(withContext context: Any?) { | |||
super.awake(withContext: context) | |||
|
|||
if let data = context as? [String: String], | |||
let paymentConfirmation = data["payment_confirmation_number"], | |||
let paymentID = data["payment_id"] { | |||
confirmationNumberLabel.setText(paymentConfirmation) | |||
paymentIDLabel.setText(paymentID) | |||
setTitle("Done") | |||
} | |||
} | |||
|
|||
override func willActivate() { | |||
// This method is called when watch view controller is about to be visible to user | |||
super.willActivate() | |||
} | |||
|
|||
override func didDeactivate() { | |||
// This method is called when watch view controller is no longer visible | |||
super.didDeactivate() | |||
} | |||
|
|||
} |
Oops, something went wrong.