This repository contains sample application for Swift and Objective C to demonstrates how to integrate AuroPay payments SDK in your application.
- You should be onboarded on AuroPay merchant portal.
- You can get your sub domain id, accessKey, secretKey from AuroPay merchant portal.
-
Clone the repository through Xcode or Git Bash as per your use case.
-
Add
pod 'auropay-payments'
in pod file and runpod install
from Auropay Swift DemoApp or Auropay ObjC Demo directory. -
Open the sample project's xcworkspace of your prefered language Swift/Objective C in Xcode.
-
If you find any errors clean and build project again.
-
Replace the placeholder values of subdomain id, accessKey and secretKey with your detail in AuroPayBuilder initializer.
AuroPayBuilder()
.subDomainId("Your Subdomain ID")
.accessKey("Your Access Key")
.secretKey("Your Secret Key")
.customerProfile(self.getCustomerProfile())
.addEventListener({(eventID, eventDesc) in
debugPrint("EventID: \(eventID), EventDescription: \(eventDesc)")
})
.theme(theme)
.showReceipt(true)
.allowCardScan(true)
.build()
[[[[[[[[[[AuroPayBuilder alloc]
subDomainId:@"Your Subdomain ID"]
accessKey:@"Your Access Key"]
secretKey:@"Your Secret Key"]
customerProfile:[self getCustomerProfile]]
addEventListener:^(NSString* eventID, NSString* eventDesc) {
NSLog(@"%@", [NSString stringWithFormat:@"eventID: %@, eventDesc: %@", eventID, eventDesc]);
}]
theme:theme]
showReceipt:YES]
allowCardScan:YES]
build];
- Run the demo application.
AuroPay Payments iOS SDK allows you to accept in-app payments by providing you with the building blocks you need to create a checkout experience.