Commit dae19c4c by Brent Gulanowski

Merge pull request #51 from Shopify/bugfix/dismiss-order-status

Pop to root after dismissing order status page
parents b690365a d8fd7be9
......@@ -184,12 +184,20 @@ NSString * const MerchantId = @"";
style:UIAlertActionStyleDefault
handler:^(UIAlertAction *action) {
SFSafariViewController *safariViewController = [[SFSafariViewController alloc] initWithURL:self.checkout.order.statusURL];
safariViewController.delegate = self;
[self presentViewController:safariViewController animated:YES completion:NULL];
}]];
[self presentViewController:alertController animated:YES completion:nil];
}
#pragma mark - SafariViewControllerDelegate
- (void)safariViewControllerDidFinish:(SFSafariViewController *)controller
{
[self.navigationController popToRootViewControllerAnimated:YES];
}
#pragma mark Native Checkout
- (void)checkoutWithCreditCard
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment