iOS APP SDK / Usage

Scenario

Suitable for the front-end iOS App and provides the embedded checkout function. For sample code please refer to GitHub

Supports

  • XCode 15+
  • Swift 5.5+
  • iOS 13+
  • Cocoapods 1.12.1+

❗ Special note: XCode 15 is not supported after SDK 1.5.0

Installation

❗ Special note: This package is made with XCFramework and Cocoapods version must be 1.12.1 or higher. The SDK only supports XCode13 since version 1.1.0.

  • Podfile
				
					pod 'ECPayPaymentGatewayKit', '1.5.0'

				
			
  • Others plugin
				
					pod 'PromiseKit' , '6.8.5'
pod 'Alamofire', '5.2.2'
pod 'IQKeyboardManagerSwift'
pod 'KeychainSwift', '16.0.1'
pod 'SwiftyXMLParser', :git => 'https://github.com/yahoojapan/SwiftyXMLParser.git'
pod 'CryptoSwift', '1.4.1'
				
			
  • Because this package is a static framework, you must add this code to the bottom of the podfile before installation of cocoapods.
				
					static_frameworks = ['ECPayPaymentGatewayKit']
pre_install do |installer|
  installer.pod_targets.each do |pod|
    if static_frameworks.include?(pod.name)
      puts "#{pod.name} installed as static framework!"
      def pod.static_framework?;
        true
      end
    end
  end
end
				
			
  • This sample uses Swift. When installing Cocoapods, run the following command in the Podfile directory:
				
					pod install
				
			
  • We can use the following command to avoid caching
				
					pod deintegrate '.xcodeproj path may be required' 
pod cache clean ECPayPaymentGatewayKit
pod install --repo-update
				
			

Copyright © Green World FinTech Service Co., Ltd. All rights reserved.

Green World