JokulIosSdk

DOKU SDK


License
MIT
Install
pod try JokulIosSdk

Documentation

Jokul iOS SDK

Official iOS SDK for Jokul API. Visit https://jokul.doku.com for more information about the product and https://jokul.doku.com/docs for the technical documentation.

Table of Contents

Requirements

Installation

Add pod repository to project with terminal

$ pod init 

Add these to your Podfile:

target 'MyApp' do  
  pod 'JokulIosSdk', '~> 1.0.0'  
end

Run these to install:

$ pod install

Usage

Implement Package

Add SDK to your project:

  • Select target
  • Select tab general
  • Select dropdown Framework, Libraries, and Embedded Content
  • add libJokulIosSdk.a

Setup Configuration

Get your Client ID and Shared Key from Jokul Back Office.

Virtual Account

To accept Virtual Account simply import <JokulSdk.h>:

JokulSdk *jokulSdk = [JokulSdk sharedInstance];
  [jokulSdk connectVa: self
       paymentChannel: (int) self.channelCode
             clientId: getClientId
         merchantName: getMerchantName
        customerEmail: email
         customerName: name
           dataAmount: self.amount
          expiredTime: expiredTime
        invoiceNumber: self.invoiceNumber
         isProduction: getValueEnvironmentServer
       reusableStatus: reusableStatus
        usePageResult: getValueActivePageResult
            sharedKey: getSharedKey];

Mandiri VA

To use Mandiri VA, simply change the paymentChannel: (int) self.channelCodeDemo to:

paymentChannel: (int) self.mandiriVa

Mandiri Syariah VA

To use Mandiri VA, simply change the paymentChannel: (int) self.channelCodeDemo to:

paymentChannel: (int) self.mandiriSyariahVa

Example

Please refer to this repo for the example project: Jokul iOS Example.

Help and Support

Got any issues? Found a bug? Have a feature requests? You can open new issue.

For further information, you can contact us on care@doku.com.