Created
October 7, 2012 19:08
-
-
Save digerata/3849262 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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