developer:ios-processccpayment

processCCPayment : Process credit card payment

Description

The method doesn’t need any parameter values. Before you call this method, make sure you have these values set

	
Required
	1) creditCardNumber
	2) creditCardExpDate
	3) creditCardCVV
	4) creditCardHolderName
	5) creditCardAvsStreet
	6) creditCardAvsZip
	7) creditCardChargeAmount
Optional
	8) invoiceNumber
Once all the above required values have set, we can call processCCPayment() method to process a credit card transaction

Code Snippet

-(void)processTransaction
{
    CreditCardPayment *ccPayment = [[CreditCardPayment alloc]init];
 
    ccPayment.creditCardNumber = @"5555444433332226";
    ccPayment.creditCardExpDate = @"0916";
    ccPayment.creditCardCVV = @"123";
    ccPayment.creditCardHolderName = @"test name";
    ccPayment.creditCardAvsStreet = @"123 test street";
    ccPayment.creditCardAvsZip = @"90012";
    ccPayment.creditCardChargeAmount = @"22.50";
 
    [ccPayment processCCPayment];
 
}
developer/ios-processccpayment.txt · Last modified: 2014/04/30 09:44 by jlei

Page Tools