Skip to content

GeideaSolutions/iOS-SDK

Repository files navigation

Geidea Payment Framework for iOS

Change Log

  • Separated framework to independent project.

Introduction

The purpose of the iOS Software Development Kit (iOS SDK) Integration guide is to serve as a technical documentation for merchants that want to integrate with Geidea and want to use the Payment Gateway services with their systems. When merchants integrate with the iOS SDK they will be able to send parameters from their iOS App when a client is triggering a payment and visualize Geidea Payment SDK for their clients to use to process an online payment.

Getting Started

Requirements

  • Minimum iOS version: 11.0
  • Swift 4.0, 4.2, 5.X

Integration

  • Drag GeideaPaymentSDK.XCFramework to your Frameworks folder in your app.
  • Add it your target: General -> Frameworks, Libraries and and Embedded Content.
  • Choose “Embed & Sign” option on Embed tab
  • If your application is Objective C app perform an additional step: Build settings -> Build Options -> Always Embed Swift Standard Libraries set YES

Usage

  1. import the SDK
import GeideaPaymentSDK
  1. Add your merchant credentials (Merchant Public Key and API password) with
GeideaPaymentAPI.setCredentials(withMerchantKey: <YOUR_MERCHANT_KEY>, andPassword: <YOUR_PASSWORD>)
  1. You can check if there credentials already stored with the GeideaPaymentAPI.isCredentialsAvailable(). It is only important to be stored prior to using the SDK.
  2. To verify your merchant key and config
 GeideaPaymentAPI.getMerchantConfig(completion:{ response, error in
    //verify the response
 })
  1. For making payments use pay method on the SDK
GeideaPaymentAPI.pay(theAmount amount: GeideaPaymentSDK.GDAmount, 
                    withCardDetails cardDetails: GeideaPaymentSDK.GDCardDetails, 
                    initializeResponse: GeideaPaymentSDK.GDInitiateAuthenticateResponse? = nil, 
                    config: GeideaPaymentSDK.GDConfigResponse?, 
                    isHPP: Bool = false, 
                    showReceipt: Bool, 
                    andTokenizationDetails tokenizationDetails: GeideaPaymentSDK.GDTokenizationDetails?,
                    andPaymentIntentId paymentIntentId: String? = nil, 
                    andCustomerDetails customerDetails: GeideaPaymentSDK.GDCustomerDetails?, 
                    orderId: String? = nil, 
                    paymentMethods: [String]? = nil, 
                    dismissAction: ((GeideaPaymentSDK.GDCancelResponse?, GeideaPaymentSDK.GDErrorResponse?) -> Void)? = nil, 
                    navController: UIViewController, 
                    completion:{ response, error in

                        // handle response for payment success

                    })

About

Geidea online gateway iOS mobile SDK solution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •