developer:ios

The USAePay-iOS library allows developers to implement our payment gateway within their iOS apps (iPhone & iPad). The library is designed to give developers the tools necessary to create a highly customized payment applications. Developers can choose to use our pre-made “UIView” that contains all the necessary credit card payment fields, or creating their own credit card payment UIView.

The library supports iOS 7.0+.

How To Get Started

Download: usaepaylibrary_v1.4.zip. It contains two example projects and the Library itself.

Read theGetting start guide to learn how to add the library into your new/existing projects.

Once you added the library into the project. Use this code snippet to help you get started.

#import "iPhoneViewController.h"
#import "Constants.h"
 
@implementation iPhoneViewController
 
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}
 
- (void)viewDidLoad
{
    [super viewDidLoad];
 
    Constants *shareManager = [Constants sharedManager];
 
    /*
     * These are the required information, which need to initialize
     * Before doing any transactions
     */
    shareManager.isProduction = true;
    shareManager.sourceKey = @"253idtPXb6aXvaX3LdSM1SDLIn12ARCI";
    shareManager.pinNum = @"1234";
 
 
}

CreditCardPayment Methods

Method Description Link
verifyCreditCard Verify credit card number http://help.usaepay.com/developer/ios-verifycc
checkExpDate Verify credit card expiration date http://help.usaepay.com/developer/ios-checkexpdate
processCCPayment Process credit card payment http://help.usaepay.com/developer/ios-processccpayment
finishProcessingPayment Delegate method, when payment is finished processing http://help.usaepay.com/developer/ios-finishprocessccpayment

ueConnection Methods

Method Description Link
isConnected Checks for internet connection http://help.usaepay.com/developer/ios-checkconnection
developer/ios.txt · Last modified: 2017/10/02 13:51 by yura

Page Tools