Note that there are some explanatory texts on larger screens.

plurals
  1. POResponse encryption problem
    primarykey
    data
    text
    <p>I get the response as follow:</p> <pre><code>TIMESTAMP=2011%2d09%2d22T10%3a20%3a24Z&amp;CORRELATIONID=fa0181684fd81&amp;ACK=Success &amp;VERSION=65%2e0&amp;BUILD=2133933&amp;AMT=0%2e12&amp;CURRENCYCODE=USD&amp;AVSCODE=X&amp;CVV2MATCH=M &amp;TRANSACTIONID=6PT23270XK626941N" in this encrypted format </code></pre> <p>How can I get original text string? This is my code for Parsing the URL :</p> <pre><code>NSString *parameterString = [[NSString stringWithFormat:@"USER=mercha_1316582882_biz_api1.ifuturz.com" "&amp;PWD=1316582974" "&amp;SIGNATURE=Az-qrCDOk-pVcMVvJLOJY7DrGESBAgSH4RGOILESJSsYaBlWVZ3mNfJB" "&amp;METHOD=DoDirectPayment" "&amp;CREDITCARDTYPE=Visa" "&amp;ACCT=%@" "&amp;EXPDATE=092016 " "&amp;CVV2=111" "&amp;AMT=%@" "&amp;FIRSTNAME=%@" "&amp;LASTNAME=%@" "&amp;STREET=%@" "&amp;CITY=%@" "&amp;STATE=%@" "&amp;ZIP=%@" "&amp;COUNTRYCODE=IN" "&amp;CURRENCYCODE=USD" "&amp;PAYMENTACTION=Sale" "&amp;VERSION=65.0", txtCreditCardNo.text, strAmount, txtName.text, txtName.text, txtAddress.text, txtCity.text, txtState.text, txtZipCode.text ] retain]; NSLog(@"Soap : %@",parameterString); NSURL *url = [NSURL URLWithString:@"https://api-3t.sandbox.paypal.com/nvp"]; NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url]; NSString *msgLength = [NSString stringWithFormat:@"%d", [parameterString length]]; [theRequest addValue: msgLength forHTTPHeaderField:@"Content-Length"]; [theRequest setHTTPMethod:@"POST"]; [theRequest setHTTPBody: [parameterString dataUsingEncoding:NSUTF8StringEncoding]]; NSError *err; NSURLResponse *resp; NSData *response = [NSURLConnection sendSynchronousRequest:theRequest returningResponse:&amp;resp error:&amp;err]; if (resp != nil) { NSString *stringResponse = [[NSString alloc] initWithData:response encoding:NSUTF8StringEncoding]; NSLog(@"---------------------- %@",stringResponse); SBJSON *jsonParser = [SBJSON new]; NSMutableDictionary *json = [[NSMutableDictionary alloc] init]; json = [jsonParser objectWithString:stringResponse error:NULL]; NSLog(@"\n \n JSN Dic : %@",[json description]); } else if (err != nil) { NSLog(@"\n \n Nill"); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload