title: Payumoney getway error occur in ios
body: <p>I have integrate payumoney payment getway. But i get error in webView not load this <a href="https://test.payu.in/_payment" rel="nofollow noreferrer">https://test.payu.in/_payment</a> testing url.</p>
  
  <p><a href="https://i.stack.imgur.com/H9W1F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H9W1F.png" alt="enter image description here"></a></p>
  
  <p><strong>And my code:</strong></p>
  
  <pre><code> int i = arc4random() % 9999999999;
      NSString *strHash = [self createSHA512:[NSString stringWithFormat:@"%d%@",i,[NSDate date]]];
      NSString *txnid1 = [strHash substringToIndex:20];
      NSLog(@"tnx1 id %@",txnid1);
  
      NSString *key = @"xxxxx"; // my key
      NSString* salt = @"xxxxxx"; // my salt key
  
      NSString *amount = @"1.00";
      NSString *productInfo = @"Nice product";
      NSString *firstname = @"Mani";
      NSString *email = @"mani.ingenius@gmail.com";
      NSString *phone = @"1234566";
      NSString *surl = @"http://www.google.com/";
      NSString *furl = @"http://www.github.in/";
      NSString *serviceprovider = @"payu_paisa";
  
      NSString *hashValue = [NSString stringWithFormat:@"%@|%@|%@|%@|%@|%@|||||||||||%@",key,txnid1,amount,productInfo,firstname,email,salt];
  
  
      NSString *hash = [self createSHA512:hashValue];
      NSDictionary *parameters = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:txnid1,key,amount,productInfo,firstname,email,phone,surl,furl,hash,serviceprovider
                                                                      , nil] forKeys:[NSArray arrayWithObjects:@"txnid",@"key",@"amount",@"productinfo",@"firstname",@"email",@"phone",@"surl",@"furl",@"hash",@"service_provider", nil]];
  
  
      __block NSString *post = @"";
      [parameters enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
          if ([post isEqualToString:@""]) {
              post = [NSString stringWithFormat:@"%@=%@",key,obj];
          }else{
              post = [NSString stringWithFormat:@"%@&amp;%@=%@",post,key,obj];
          }
  
      }];
  
      NSData *postData = [post dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];
  
      NSString *postLength = [NSString stringWithFormat:@"%lu",(unsigned long)[postData length]];
      NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
      [request setURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://test.payu.in/_payment"]]];
      [request setHTTPMethod:@"POST"];
      [request setValue:postLength forHTTPHeaderField:@"Content-Length"];
      [request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Current-Type"];
      [request setHTTPBody:postData];
  
      [web_view_PayU loadRequest:request];
  </code></pre>
  
  <p>i have refer this link <a href="https://stackoverflow.com/questions/27898349/payumoney-payment-gateway-issue">PayUMoney payment gateway issue</a> .And I have pass all parameter correct. I have not understand what i am wrong.</p>
  
  <p>I get my merchant and salt key this following path</p>
  
  <pre><code> Seller Dashboard -&gt; Settings -&gt; My account -&gt; Merchant Key - Salt
  </code></pre>