Skip to content
Permalink
e48f289d83
Go to file
 
 
Cannot retrieve contributors at this time
38 lines (31 sloc) 1.13 KB
//
// 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()
}
}
You can’t perform that action at this time.