CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

NPayFrameworkMC 3.1.2

NPayFrameworkMC 3.1.2

Maintained by vupt, Ha Duy Phuong, Mobile Ninepay.



 
Depends on:
CryptoSwift~> 1.6.0
lottie-ios< 4.0
HyperKYC~> 0.38.0
KeychainAccess>= 0
 

  • By
  • phuonghd

NPayFrameworkMC

A framework from 9Pay JSC. Payment solutions, digital service,... are providing by 9Pay's Digital-Wallet.

Installing

with CocoaPods

use_frameworks!
pod 'NPayFrameworkMC', '~> 1.1.4'

Usage

At first, import NPayFrameworkMC:

import NPayFramework

The easiest way to start:

let nLib = NPayManager(vController: self, sdkCfgs: SDKConfigs(merchantCode: "NGuTdi", uid: "uid", brandColor: "-15356318", env: .sandbox))

Initial SDKConfigs with merchantCode, uid, brandColor and env(environment)

⚠️ Dont forget conform to protocol 'LibListener'

class ViewController: UIViewController, LibListener {
    func onLoginSuccessful() {
        //
    }

    func onPaySuccessful() {
        //
    }
    
    func onLogoutSuccessful() {
        //
    }
    
    func onClose() {
        //
    }
    
    func getInfoSuccess(phone: String, balance: String, ekycStatus: String) {
        //
    }
    
    func getMerchantActionSuccess(actions: [String]) {
        //
    }
    
    func onError(errorCode: Int, message: String) {
        
    }
}

Config

9Pay SDK needs to use camera for ekyc feature. Input purpose string into Info.plist of your project

    <key>NSCameraUsageDescription</key>
    <string>SDK need open camera</string>