CCAvenue Gateway Integration kit for ios Application

后端 未结 6 1303
我寻月下人不归
我寻月下人不归 2020-12-13 07:44

Hi,
I have developed an application which needs payment gateway. I have already worked on \"Paypal\". It was successful and now i need to integrate another payment gate

6条回答
  •  旧时难觅i
    2020-12-13 08:08

    Since the CCAvenue shows server side options we need to connect to web view and load the ccavenue gateway which is compatable with iphone screens. Here in Our application we need to do small things as follows

    First create the html file and parameters related to your ccavenue gateway

    
    
    
    
        















    After that load the web view on your screen

      NSURL *url = [NSURL URLWithString: @"https://www.ccavenue.com/shopzone/cc_details.jsp"];
    
    webView.delegate = self;
    webView.scalesPageToFit = YES;
    
    NSString *strUsername = [[NSUserDefaults standardUserDefaults] objectForKey:@"userName"];
    
       NSString *body = [NSString stringWithFormat: @"Merchant_Id=%@&Amount=%@&Order_Id=%@&Redirect_Url=%@&Checksum=%@&billing_cust_name=%@&billing_cust_address=%@&billing_cust_country=%@&billing_cust_tel=%@&billing_cust_email=%@&delivery_cust_name=%@&delivery_cust_address=%@&delivery_cust_tel=%@&delivery_cust_notes=%@&Merchant_Param=%@",@"XXXXX",@"10",@"123456",@"http://us2guntur.com/us2guntur/CCAvenueredirecturl.jsp",@"1234567890",@"Test",@"Hyderabad",@"India",@"1357896437",@"Test1000",@"Guntur",@"234567896",@"",@""];
    
    NSLog(@"%@",body);
    
    NSMutableURLRequest *request = [[NSMutableURLRequest alloc]initWithURL: url];
    [request setHTTPMethod: @"POST"];
    [request setHTTPBody: [body dataUsingEncoding: NSUTF8StringEncoding]];
    [webView loadRequest: request];
    

提交回复
热议问题