DirectPay sample project for ios integration. This sdk helps you to add new payment cards through your mobile application. To make payments and other card management, please use the APIs. (Read more)
Click to Download SDK
DirectPay Mobile SDK (iOS): 1.0
Deployment Target: 11
Language: Swift 4.2
Right click on the project and choose "Add Files to 'project name' ". Browser and select DPSDK.framework and click "Add".
let directpay: DPSDK = DPSDK(apiKey: "API_KEY",
dpMerchantId: "YOUR_MERCHANT_KEY",
uniqueUserId: "USER_ID",
userName: "USER_NAME",
mobile: "+94731234567",
email: "[email protected]")
self.directpay.addCard(self, success: { (card) in
print("[NEW CARD ADDED] SUCCESS - CARD_DETAILS: ", card)
// your code here
}, error: {(code:String, message:String) in
print("[NEW CARD ADDING FAILED] ERROR: CODE - ",code, "MESSAGE - ", message)
})