Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SWE-24 Configure cancellation success screen
  • Loading branch information
ahm11003 committed Apr 9, 2019
1 parent f48164b commit 7ed54df
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
Expand Up @@ -314,7 +314,19 @@
<!--Cancellation-->
<scene sceneID="ZZZ-KP-exO">
<objects>
<controller identifier="Cancellation" id="Cwl-i7-4Od" customClass="CancellationInterfaceController" customModule="SynchronyFinancial_WatchKit_Extension"/>
<controller identifier="Cancellation" id="Cwl-i7-4Od" customClass="CancellationInterfaceController" customModule="SynchronyFinancial_WatchKit_Extension">
<items>
<label width="1" alignment="center" text="Cancellation Result:" textAlignment="center" numberOfLines="2" id="UKx-cb-xBx">
<fontDescription key="font" type="boldSystem" pointSize="15"/>
</label>
<separator alignment="left" id="9Q6-wJ-WvP"/>
<label width="1" alignment="center" text="Confirmation Number:" textAlignment="center" minimumScaleFactor="0.69999999999999996" id="YZm-kP-QEl"/>
<label width="1" alignment="center" text="Label" textAlignment="center" id="mS7-FX-NiH"/>
</items>
<connections>
<outlet property="confirmationLabel" destination="mS7-FX-NiH" id="HNE-E7-kF1"/>
</connections>
</controller>
</objects>
<point key="canvasLocation" x="1806" y="-229"/>
</scene>
Expand Down
Expand Up @@ -9,13 +9,18 @@
import WatchKit
import Foundation


class CancellationInterfaceController: WKInterfaceController {

@IBOutlet var confirmationLabel: WKInterfaceLabel!

override func awake(withContext context: Any?) {
super.awake(withContext: context)

// Configure interface objects here.

guard let data = context as? [String: String], let confirmation = data["cancellation_confirm"] else {
NSLog("Error receiving context for payment cancellation")
return
}

confirmationLabel.setText(confirmation)
}

override func willActivate() {
Expand Down

0 comments on commit 7ed54df

Please sign in to comment.