Basispay IOS SDK Version 2

Overview

BasisPay-IOS-KIT

BasisPay IOS Payment Gateway kit for developers

INTRODUCTION

This document describes the steps for integrating Basispay online payment gateway iOS kit.This payment gateway performs the online payment transactions with less user effort. It receives the payment details as input and handles the payment flow. Finally returns the payment response to the user. User has to import the framework manually into their project for using it

Example

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

Requirements

o iOS 13.0+ o Xcode 12.0+ o Swift 5.0+

Installation

BasisPay is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'BasisPay' , '~> 1.0.0'

Step 1

Initialize your PaymentGateway controller by importing Basispay in your project

import BasisPay

class PaymentProcessViewController: UIViewController {
    
    var basispayViewController: BasispayViewController!
    var amount:String?
    var titleValue:String?
    var descriptionValue:String?
    @IBOutlet weak var viewContainer: UIView!
    override func viewDidLoad() {
        super.viewDidLoad()
        setDefaults()
    }

Step 2

Assign the Payment defaults in your class which you have already recieved from the Basispay organization.

private func setDefaults() {
              let paymentRequestDictionary = [
             "orderReference" : "ORDER-REFERENCE-FROM-BACKEND",
             "customerName" : titleValue ?? "",
             "customerEmail" : "[email protected]",
             "customerMobile" : "824835038412",
             "address" : "ZZZZZZXXXXXXX",
             "postalCode" : "ZZZXXX",
             "city" : "XXXXXX",
             "region" : "YYYYYY",
             "country" : "ZZZ",
             //// optional parameters
             "delivery[address]":"ZZZZZZXXXXXXX",
             "delivery[customerName]":"XXXXX",
             "delivery[customerMobile]":"824835038412",
             "delivery[postalCode]":"ZZZXXX",
             "delivery[city]":"XXXXXX",
             "delivery[region]":"YYYYYY",
             "delivery[country]":"ZZZ"
         ]
}    

Step 3

Pass the User Interface Connection details regarding the product which you are going to use the payment gateway in your app.

        basispayViewController = BasispayViewController()
        basispayViewController.delegate = self
        basispayViewController.paymentRequestDictionary = paymentRequestDictionary
        viewContainer.addSubview(basispayViewController.view)

Step 4

Delegate methods for the onCloseClicked and OnPaymentConnectError can be handled through this protocol.



extension PaymentProcessViewController:BasispayDelegate {
    func onPaymentConnectError(errormessage: String) {
        print(errormessage)
    }
    
    func onCloseClicked() {
        self.navigationController?.popViewController(animated: true)
    }
}


Author

BasisPay, [email protected]

License

BasisPay is available under the MIT license. See the LICENSE file for more info.

You might also like...
Headless iOS/Mac SDK for saving stuff to Pocket.
Headless iOS/Mac SDK for saving stuff to Pocket.

This SDK is deprecated Howdy all! 👋 Thanks for checking out this repo. Your 👀 mean a lot to us. 💗 Unfortunately, this project is deprecated, and th

Evernote Cloud SDK for iOS
Evernote Cloud SDK for iOS

Evernote Cloud SDK 3.0 for iOS This is the official Evernote SDK for iOS. To get started, follow the instructions bellow. Additional information can b

iOS SDK for the Box Content API
iOS SDK for the Box Content API

Box iOS SDK Getting Started Docs: https://developer.box.com/guides/mobile/ios/quick-start/ NOTE: The Box iOS SDK in Objective-C (prior to v3.0.0) has

OneDrive SDK for iOS

Get started with the OneDrive SDK for iOS Integrate the OneDrive API into your iOS app! 1. Installation Install via Cocoapods Install Cocoapods - Foll

Stripe iOS SDK

Stripe iOS SDK The Stripe iOS SDK makes it quick and easy to build an excellent payment experience in your iOS app. We provide powerful and customizab

AWS SDK for iOS. For more information, see our web site:
AWS SDK for iOS. For more information, see our web site:

AWS SDK for iOS The AWS SDK for iOS provides a library and documentation for developers to build connected mobile applications using AWS. Features / A

Zendesk Mobile SDK for iOS

⚠️ This Repository has been deprecated, please go to here for the Zendesk Support SDK ⚠️ Zendesk Mobile SDK for iOS Zendesk SDK for mobile is a quick,

PlayKit: Kaltura Player SDK for iOS

Kaltura Player SDK Demo: Demo repo. If you are a Kaltura customer, please contact your Kaltura Customer Success Manager to help facilitate use of this

Uber Rides iOS SDK (beta)
Uber Rides iOS SDK (beta)

Uber Rides iOS SDK This Swift library allows you to integrate the Uber Rides API into your iOS app. Requirements iOS 8.0+ Xcode 10.0+ Swift 4.2+ Insta

Releases(1.0.0)
Owner
null
Alter SDK is a cross-platform SDK consisting of a real-time 3D avatar system, facial motion capture, and an Avatar Designer component built from scratch for web3 interoperability and the open metaverse.

Alter SDK is a cross-platform SDK consisting of a real-time 3D avatar system, facial motion capture, and an Avatar Designer component built from scratch for web3 interoperability and the open metaverse.

Alter 45 Nov 29, 2022
Native iOS implementation of RadarCOVID tracing client using DP3T iOS SDK

RadarCOVID iOS App Introduction Native iOS implementation of RadarCOVID tracing client using DP3T iOS SDK Prerequisites These are the tools used to bu

Radar COVID 146 Nov 24, 2022
TelegramStickersImport — Telegram stickers importing SDK for iOS

TelegramStickersImport — Telegram stickers importing SDK for iOS TelegramStickersImport helps your users import third-party programaticaly created sti

null 35 Oct 26, 2022
Muxer used on top of Feed iOS SDK for airplay

FeedAirplayMuxer Muxer used on top of Feed iOS SDK for airplay purposes. Demo Project --> https://github.com/feedfm/AirplayDemo Feed Airplay Muxer is

Feed Media 0 May 6, 2022
Release repo for Gini Bank SDK for iOS

Gini Bank SDK for iOS The Gini Bank SDK provides components for capturing, reviewing and analyzing photos of invoices and remittance slips. By integra

Gini GmbH 1 Dec 6, 2022
Da Xue Zhang Platform Lvb iOS SDK

Cloud_Lvb_SDK iOS API Reference Dxz Meeting iOS SDK是为 iOS 平台用户音视频服务的开源 SDK。通过大学长开放平台自研RTC,RTM系统,为客户提供质量可靠的音视频服务。 类 类名 描述 CLS_PlatformManager SDK的音视频主要

null 8 Jan 10, 2022
PayPal iOS SDK

PayPal iOS SDK Welcome to PayPal's iOS SDK. This library will help you accept card, PayPal, Venmo, and alternative payment methods in your iOS app. Su

PayPal 25 Dec 14, 2022
Unofficial Notion API SDK for iOS & macOS

NotionSwift Unofficial Notion SDK for iOS & macOS. This is still work in progress version, the module interface might change. API Documentation This l

Wojciech Chojnacki 59 Jan 8, 2023
150,000+ stickers API & SDK for iOS Apps.

English | 한국어 Stipop UI SDK for iOS Stipop SDK provides over 150,000 .png and .gif stickers that can be easily integrated into mobile app chats, comme

Stipop, Inc. 19 Dec 20, 2022
Spotify SDK for iOS

Spotify iOS SDK Overview The Spotify iOS framework allows your application to interact with the Spotify app running in the background on a user's devi

Spotify 522 Jan 6, 2023