The NI-payment-sdk-ios allows you to quickly integrate a payment checkout experience in your iOS app.
The Network International iOS payment SDK requires Xcode 13.0 and later and works with iOS versions 13 and above
We support all the popular iOS dependency management tools. The SDK can be added via CocoaPods or Carthage.
Head over to our iOS Integration Docs, which explain in detail the payment-sdk integration flow.
There are 2 example apps, one written in swift and the other in Objective-C included in this repository, which can be used as a reference for integrating the sdk into your app.
- Simple Integration - Examples/Simple Integration
- Simple Integration Obj-C - Examples/Simple Integration Obj-C
The saved card token serves as a secure means to facilitate payments through the SDK. For comprehensive instructions and illustrative code samples, please refer to the detailed guide available here.
The Payment SDK provides a convenient way for developers to customize the color scheme of the payment page to match their application's design. refer to the detailed guide available here
You can utilize the shouldShowOrderAmount
property to control the visibility of the amount on the pay button. The default value is set to true.
NISdk.sharedInstance.shouldShowOrderAmount = false
To enhance user experience, you can prompt an alert dialog when users attempt to close the payment page. This feature can be enabled or disabled using the shouldShowCancelAlert
configuration property.
NISdk.sharedInstance.shouldShowCancelAlert = false
Set the language for the SDK using the setSDKLanguage method. Currently, the SDK supports English and Arabic.
NISdk.sharedInstance.setSDKLanguage(language: "ar")