POD Integration
  • If cocoa-pods is not installed, head here for cocoa-pods installation instruction
  • Go inside your project directory from the terminal
    1
    cd path/to/your/project
    Copied!
  • Now we are going to make an actual pod file, type in terminal:
    1
    nano Podfile
    Copied!
  • It will open an Editor, in Editor type, add following line:
    1
    target 'YourProjectName' do
    2
    pod 'PayUIndia-PG-SDK'
    3
    end
    Copied!
  • Now, press ctrl-x to leave the editor.
  • Last thing we have to do is to type in terminal
    1
    pod install
    Copied!
  • Now, go to your project folder and open YourProjectName.xcworkspace.
  • Inside, Pods directory, you’ll find PayUIndia-PG-SDK

Swift Package Manager Integration

You can integrate PayUIndia-PG-SDK with your app or SDK in two ways:
  1. 1.
    Via Xcode - Go to File-> Add Package-> https://github.com/payu-intrepos/iOS-SDK
  2. 2.
    Via Package.Swift - Add below line in Package.swift dependencies
.package(name: "PayUIndia-PG-SDK", url: "https://github.com/payu-intrepos/iOS-SDK", from: "7.1.0")
Last modified 3mo ago