Skip to content

Swe 24 show pending transactions and allow cancel #16

Merged
merged 9 commits into from Apr 9, 2019

SWE-24 Configure cancellation success screen

  • Loading branch information
ahm11003 committed Apr 9, 2019
commit 7ed54df793a551ee712c30bc476947c05bcf6070
@@ -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>
@@ -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() {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.