Skip to content

Swe 12 enable payment suite #13

Merged
merged 14 commits into from Apr 8, 2019

SWE-12 Remove unused “Home” button

- we now simply display “Done” as the title to dismiss the payment result screen which is presented modally
  • Loading branch information
ahm11003 committed Apr 5, 2019
commit ed55a49e095c298490e72608c08ab9958a2e5116
@@ -243,14 +243,9 @@
<label width="1" alignment="center" text="Payment Result:" textAlignment="center" id="gg1-Wq-NeI"/>
<separator width="1" alignment="center" id="Y1o-3Q-hjG"/>
<label width="1" alignment="center" text="Confirmation Number:" textAlignment="center" minimumScaleFactor="0.69999999999999996" id="qAX-bM-U5t"/>
<label width="1" alignment="center" text="Label" textAlignment="center" id="cF3-r2-BMf"/>
<label width="1" alignment="center" text="Payment ID:" textAlignment="center" id="7Cr-Kh-rJ2"/>
<label width="1" alignment="center" text="Label" textAlignment="center" id="wSp-wZ-Ksf"/>
<button width="1" height="30" alignment="left" title="Home" id="HbC-l6-p2S">
<connections>
<action selector="didTapHome" destination="mpK-7H-pjK" id="nZ1-FD-iEx"/>
</connections>
</button>
<label width="1" alignment="center" text="Label" textAlignment="center" minimumScaleFactor="0.5" id="cF3-r2-BMf"/>
<label width="1" alignment="center" verticalAlignment="center" text="Payment ID:" textAlignment="center" id="7Cr-Kh-rJ2"/>
<label width="1" alignment="center" verticalAlignment="center" text="Label" textAlignment="center" id="wSp-wZ-Ksf"/>
</items>
<connections>
<outlet property="confirmationNumberLabel" destination="cF3-r2-BMf" id="FBR-K8-kdQ"/>
@@ -21,13 +21,10 @@ class PaymentResultInterfaceController: WKInterfaceController {
let paymentID = data["payment_id"] {
confirmationNumberLabel.setText(paymentConfirmation)
paymentIDLabel.setText(paymentID)
setTitle("Done")
}
}

@IBAction func didTapHome() {
popToRootController()
}

override func willActivate() {
// This method is called when watch view controller is about to be visible to user
super.willActivate()
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.