Skip to content

To integrate your iOS application with ZainCash in order to start getting paid online, you first have to register a wallet

Notifications You must be signed in to change notification settings

ahmedraad/ZainCash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zain Cash iOS


Cocoapods Platform Language

enter image description here

Usage

To run the project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Xcode 8
  • Minimum deployment target is iOS 9.

Installation

pod 'ZainCash'

Code Implementation

import ZainCash
let payment = ZainCashPayment()

// Your Wallet secret key
payment.key = "secretsecretsecretsecretsecretsecretsecrets"

// Your merchant id
payment.merchant = "572487bca0a4d6f2688c1ee3"

// Product Ammout
payment.amount = 1000

// hours to expires | default is 4 hours
payment.expiresIn = 2

// Which type of Product
payment.serviceType = "AAA books website"

// Your phone number wallet
payment.msisdn = "9647911111111"

// User order id (optional)
payment.orderId = 1234

// Make transaction here
payment.makePayment { response, error in
// here JSON response of transaction (success or failure)
}

// transaction id, will get it after make payment
payment.transactionID = "42da42da42da42da42da42d"

// check transaction status here
payment.checkTransaction { response, error in
// here JSON response of transaction (success or failure)
}

Coming Soon !

  • Swift Server [ Vapor ]

About

To integrate your iOS application with ZainCash in order to start getting paid online, you first have to register a wallet

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published