Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am not able to open paytm page using objective c code #27

Open
pranamyaiosdev opened this issue Oct 14, 2021 · 1 comment
Open

I am not able to open paytm page using objective c code #27

pranamyaiosdev opened this issue Oct 14, 2021 · 1 comment

Comments

@pranamyaiosdev
Copy link

pranamyaiosdev commented Oct 14, 2021

In .h file i added
#import <AppInvokeSDK/AppInvokeSDK-Swift.h>
@Property(nonatomic,strong) AIHandler *appInvoke;
@Property (nonatomic,weak) id delegate1;

In .m file

- (void)chargeRequest:(double)money {
    WS(weakSelf);
    [HUD showHud];
    [[NetWorkRequest shared] payTMChargeWithAmount:@(money) succeed:^(NSDictionary * _Nonnull dataDict, NSInteger respCode) {
            [HUD hideHud];
        PayTMChargeModel *model = [PayTMChargeModel yy_modelWithDictionary:dataDict[@"data"]];
        NSLog(@"values model %@",model);
 [self.appInvoke openPaytmWithMerchantId:model.MID orderId:model.ORDER_ID txnToken:model.SSO_TOKEN amount:model.TXN_AMOUNT callbackUrl:model.CALLBACK_URL delegate:self environment:AIEnvironmentStaging];//here i am invoking paytm.
  UIViewController *currentVC = [[UIViewController alloc]init];
 [self openPaymentWebVC:currentVC];//here i am calling paytm web page.
  } failed:^(NSError * _Nonnull error) {
            [HUD hideHud];
 
-(void)openPaymentWebVC:(UIViewController *)controller
{
    {
        UIViewController *currentVC = [[UIViewController alloc]init];
        [self.rt_navigationController pushViewController:currentVC animated:YES];
        
    }
    NSLog(@"coming");
}
-(void)didFinishWith:(enum AIPaymentStatus)status response:(NSDictionary<NSString *,id> *)response{
    
}   }];
}
-(void)openPaymentWebVC:(UIViewController *)controller
{
    {
        UIViewController *currentVC = [[UIViewController alloc]init];
        [self.rt_navigationController pushViewController:currentVC animated:YES];
        
    }
    NSLog(@"coming");
}
-(void)didFinishWith:(enum AIPaymentStatus)status response:(NSDictionary<NSString *,id> *)response{
    
}

i added this much code in .h and .m file . But i am not able to open paytm page.Please provide the solution and please do needful.

@pranamyaiosdev pranamyaiosdev changed the title i am not able to open paytm page using objective c code I am not able to open paytm page using objective c code Oct 14, 2021
@dhirajpandey7800
Copy link

Hi @soumyavats @LalitChaudhary1 @himanshupaytm any comment? What may be the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants