iOS Paypal response id i don't take -
iOS Paypal response id i don't take -
hello i'm using paypal sdk xcode , ios
everything works success want take response id how can add together response id nsstring value. please help me i'm writing output.
my codes
(paypalpayment *)completedpayment { nslog(@"paypal payment success!"); self.resulttext = [completedpayment description]; kod = [completedpayment description]; nslog (@" \n\n\n\ndesc = %@\n\n\n ",kod);
output
currencycode: usd amount: 43.45 short description: surprise intent: sale processable: processed display: $43.45 confirmation: { client = { environment = sandbox; "paypal_sdk_version" = "2.1.2"; platform = ios; "product_name" = "paypal ios sdk"; }; response = { "create_time" = "2014-06-20t11:15:56z"; id = "pay-2g6302017m038104ykosbp3a"; intent = sale; state = approved; }; "response_type" = payment; } details: subtotal: 28, shipping: 12, tax: 3.45 bn code: (null) item: '{1|surprise|28.00|usd|sale-1244}'
i need nsstring create_time , id
ex :
nsstring *createtime = etc.. nsstring *id = etc...
im working 2-3 hours didn't do
please help me.
best regards
i did working codes
nsdictionary *dicpayments = [[nsdictionary alloc] initwithdictionary:completedpayment.confirmation[@"response"]]; nsstring *paymentkey = [dicpayments objectforkey:@"id" ]; nsstring *createdtime = [dicpayments objectforkey:@"create_time" ];
thanks thought dude ;)
if kid giving desc = { "create_time" = "2014-06-20t11:52:06z"; id = "pay-1j490299fr6951927koscazq"; intent = sale; state = approved; } utilize nsdictionary *dicpayments = [[nsdictionary alloc] initwithdictionary:completedpayment.confirmation[@"response"]];
nsstring *paymentkey = [dicpayments objectforkey:@"id" ]; nsstring *createdtime = [dicpayments objectforkey:@"create_time" ];
ios
Comments
Post a Comment