Skip to content

Commit

Permalink
update for AppDelegate
Browse files Browse the repository at this point in the history
  • Loading branch information
momodevelopment authored Jun 13, 2018
1 parent da14859 commit ae6d058
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions ios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Step 1. Config file Plist
</dict>
```
Step 2. Import SDK
AppDelegate instance
AppDelegate instance - Objective C
```
#import "MoMoPayment.h"
Expand All @@ -43,6 +43,18 @@ AppDelegate instance
return YES;
}
```
AppDelegate instance - Swift
```
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
MoMoPayment.sharedInstance.handleOpenUrl(url: url, sourceApp: sourceApplication!)
return true
}
func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any]) -> Bool {
MoMoPayment.sharedInstance.handleOpenUrl(url: url, sourceApp: "")
return true
}
```

Step 3. Update Layout Payment
```
Expand Down Expand Up @@ -122,13 +134,6 @@ MOMO NOTIFICATION KEYS SHOULD BE REMOVED WHEN THE VIEWCONTROLLERS DEALLOCATING O
}
}
}
-(void)NoficationCenterTokenStartRequest:(NSNotification*)notif
{
if (notif.object != nil && [notif.object isEqualToString:@"MoMoWebDialogs"]) {
dialog = [[MoMoDialogs alloc] init];
[self presentViewController:dialog animated:YES completion:nil];
}
}
```
Add Button Action to Pay Via MOMO
Button title: EN = MoMo Wallet , VI = Ví MoMo
Expand Down

0 comments on commit ae6d058

Please sign in to comment.