Skip to content

Instantly share code, notes, and snippets.

@digerata
Created October 7, 2012 19:15
Show Gist options
  • Save digerata/3849284 to your computer and use it in GitHub Desktop.
Save digerata/3849284 to your computer and use it in GitHub Desktop.
//Receiving the transaction response
-(void)transactionResults:(id)response
{
if ([[response objectForKey:@"Transaction status"] isEqualToString:@"Approved"])
{
NSLog(@"Transaction Approved");
NSLog(@"PNR ref: %@", [response objectForKey:@"PNFRef"]);
NSLog(@"Invoice: %@", [response objectForKey:@"Invoice"]);
NSLog(@"Card Type:%@", [response objectForKey:@"CardType"]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment