Commit d8fd7be9 by Brent Gulanowski

Pop to root view controller after dismissing Safari view controller.

parent b690365a
...@@ -184,12 +184,20 @@ NSString * const MerchantId = @""; ...@@ -184,12 +184,20 @@ NSString * const MerchantId = @"";
style:UIAlertActionStyleDefault style:UIAlertActionStyleDefault
handler:^(UIAlertAction *action) { handler:^(UIAlertAction *action) {
SFSafariViewController *safariViewController = [[SFSafariViewController alloc] initWithURL:self.checkout.order.statusURL]; SFSafariViewController *safariViewController = [[SFSafariViewController alloc] initWithURL:self.checkout.order.statusURL];
safariViewController.delegate = self;
[self presentViewController:safariViewController animated:YES completion:NULL]; [self presentViewController:safariViewController animated:YES completion:NULL];
}]]; }]];
[self presentViewController:alertController animated:YES completion:nil]; [self presentViewController:alertController animated:YES completion:nil];
} }
#pragma mark - SafariViewControllerDelegate
- (void)safariViewControllerDidFinish:(SFSafariViewController *)controller
{
[self.navigationController popToRootViewControllerAnimated:YES];
}
#pragma mark Native Checkout #pragma mark Native Checkout
- (void)checkoutWithCreditCard - (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