Skip to content

Instantly share code, notes, and snippets.

@digerata
Created October 7, 2012 19:08
Show Gist options
  • Save digerata/3849262 to your computer and use it in GitHub Desktop.
Save digerata/3849262 to your computer and use it in GitHub Desktop.
//Initialization - replace these values with your own account information
[[PATransactionHandler dataHolder] setDelegate:self];
[[PATransactionHandler dataHolder] setMerchantId:@"<mid>"];
[[PATransactionHandler dataHolder] setLoginId: @"<login id>"];
[[PATransactionHandler dataHolder] setUserName: @"<username>"];
[[PATransactionHandler dataHolder] setPassWord: @"<password>"];
[[PATransactionHandler dataHolder] setAppName: @"iPad Test"];
//Customization
[[PATransactionHandler dataHolder] setBackgroundImage:[UIImage imageNamed:@"background.png"]];
[[PATransactionHandler dataHolder] setLogoImage: [UIImage imageNamed:@"merchant_logo.png"]];
[[PATransactionHandler dataHolder] setBackButtonImage:[UIImage imageNamed:@"back.png"]];
[[PATransactionHandler dataHolder] setTransactionType:NewChargeTransaction];
[[PATransactionHandler dataHolder] setIsEmailOn: YES];
[[PATransactionHandler dataHolder] setIsSignatureOn: YES];
[[PATransactionHandler dataHolder] setAmount: @"14.99"];
//Start the transaction
[[PATransactionHandler dataHolder] submit];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment