NUMO BUTTON IOS SDK
The purpose of this SDK to help programmers to use Numo payment SDK for iOS.
To use this SDK, you need a Merchant id ,Terminal id and Secure key.
GETTING STARTED
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
**You can use test data for testing
PREREQUISITES
What things you need to install the software and how to install them
- COCOPODS installed on your machine.
- Xcode.
- Create new IOS project in xcode to use SDK or if you have created a project before with swift.
INSTALLING
A step by step that tell you how to get our SDK in your project.
- Open your xcode project.
- In your project in Podfile in project level add :-
pod 'PayButtonNumo'
- Open your terminal in project path and write this command:-
//(for first try)
$ pod deintegrate
$ pod update
//(for second try)
$ pod install
USING SDK
in order to use our SDK you should get merchant id and Terminal id from Moamalat company.
First:
import PayButtonNumo
Second create a new instance from PayButtonNumo:
let paymentViewController = PaymentViewController ()
you need to just pass some parameters to PayButton class instance:
- Merchat id.
- Terminal id.
- Payment amount.
- Currency code [Optional].
- Merchant secure hash.
- Transaction Reference Number.
Note that: you should keep your secure hash and merchant id and terminal id with encryption before saving them in storage if you want.
Example:-
paymentViewController.amount = "amount" // Formatted amount as
smallest amount of currency ex: 1 LYD = “1.000”
paymentViewController.delegate = self // PaymentDelegate
paymentViewController.mId = "XXXXX" // your merchant id
paymentViewController.tId = "XXXXXX” // your terminal id
paymentViewController.Currency = "***" // use 434 for the Libyan
currency
paymentViewController.refnumber = "reference number"" // unique
transaction reference number.
paymentViewController.Key = "********” // Merchant secure hash
paymentViewController.AppStatus = NumoUrlTypes.Numo_Testing
paymentViewController.pushViewController()
SAMPLE PROJECT
To get a sample project CLICK HERE