Giter VIP home page Giter VIP logo

open-ios's Introduction

#open-iOS V 3.1.2

####Migration from 3.0.x to 3.1.x

============ ###SDK Installation Prerequisites

  • Xcode 6 or higher.

###Citrus PG Prerequisites

  • You need to enroll with Citrus as a merchant.
  • You need to host Bill generator on your server
  • You need to host Return Url Page on your server. (After the transaction is complete, Citrus posts a response to this URL.)
  • Make sure that you have obtained following parameters from your Citrus admin panel
    • Merchant Secret Key
    • Merchant Access Key
    • SignIn Key
    • SignIn Secret
    • SignUp Key
    • SignUp Secret

Note: Please DO NOT PROCEED if the above mentioned requirements have not been met.

###Features Citrus iOS SDK broadly offers following features.

  • Prepaid Payments.
  • Direct credit/debit card (CC, DC) or netbanking payments (NB) .
  • Saving Credit/Debit cards into user's account for easier future payments by abiding The Payment Card Industry Data Security Standard (PCI DSS).
  • Loading Money into users Citrus prepaid account for Prepaid facility .
  • Withdraw the money back into User's bank account from the Prepaid account .
  • Creating Citrus account for the user .

Installation From source code

Get the latest source code from github.com:

$ git clone https://github.com/citruspay/open-ios.git

Xcode integration

To integrate the SDK you just have to drag drop folder CitrusDevKit/ into your project as groups, import CitrusSdk.h and populate the macros in MerchantConstants.h with the parameters you obatained from your Citrus admin panel

Drag Drop

import "CitrusSdk.h"

import

Let's Start Programming now

SDK operates in two different modes Sandbox and Production mode. for both the enviroments Citrus PG Prerequisites key sets are different. keys from one enviroment won't work on other. so please make sure you are using correct set of keys. During the developement you would always want to use the Sandbox mode. once you are done with your App development you can switch to production mode .

you need to use [CitrusPaymentSDK initializeWithKeyStore: environment:] to initialize the SDK

Sandbox:

	    [CitrusPaymentSDK initializeWithKeyStore:keyStore environment:CTSEnvSandbox];

Production:

	    [CitrusPaymentSDK initializeWithKeyStore:keyStore environment:CTSEnvProduction];

####How to configure KeyStore Object As you must have noticed the SDK initialization requires you to pass the Keystore object please see below how to configure it.

	    CTSKeyStore *keyStore = [[CTSKeyStore alloc] init];
	    keyStore.signinId = @"test-signin";
	    keyStore.signinSecret = @"52f7e15efd4208cf5345dd554443fd99";
	    keyStore.signUpId = @"test-signup";
	    keyStore.signUpSecret = @"c78ec84e389814a05d3ae46546d16d2e";
	    keyStore.vanity = @"testing";

Only after you are done with initialization you can proceed with following guide

The SDK is logically divided into 3 modules/layers or interfacing classes

  • CTSAuthLayer - handles all of the user creation related tasks .
  • CTSProfileLayer - handles all of the user profile related tasks .
  • CTSPaymentLayer - handles all of the payment related tasks .

To use any of the above layers your need to fetch their singlton instance from CitrusPaymentSDK's class methods,

	// initialization in your .m file
	CTSPaymentLayer *paymentLayer = [CitrusPaymentSDK fetchSharedPaymentLayer];

Following are the specific tasks related to each of the layer

#Important Update for iOS 9 #Please See it here

#####User Management

#####Card Management

#####Wallet Management & Payment

#####Doing direct payments

#####Dynamic Pricing Offer Coupons and Surcharge

#####Others

===== ####Common Integration Issues

open-ios's People

Contributors

yadneshcitrus avatar mukesh122 avatar

Watchers

Abhishek Sheth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.