Skip to content

network-international/payment-sdk-ios

Repository files navigation

Network International iOS SDK

Carthage compatible

Banner

The NI-payment-sdk-ios allows you to quickly integrate a payment checkout experience in your iOS app.

Requirements

The Network International iOS payment SDK requires Xcode 13.0 and later and works with iOS versions 13 and above

Getting Started

Integration

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.

Examples

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.

Saved Card Payment

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.

SDK Configuration

Customizing Colors in Payment SDK

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

Customize pay button

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

Optional Alert dialog

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

Customize language

Set the language for the SDK using the setSDKLanguage method. Currently, the SDK supports English and Arabic.

NISdk.sharedInstance.setSDKLanguage(language: "ar")

About

Payment SDK for iOS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 9

Languages