Skip to main content

Installation

Swift Package Manager

  1. Open your Xcode project settings
  2. Go to project level (i.e. not target level)
  3. Open tab Package Dependencies
  4. Press +
  5. Paste https://github.com/corrily/ios-sdk.git (or respective SSH URL) in the top right search field
  6. Select desired Dependency Rule, the project you’d like to add the SDK to and press Add Package
  7. Select CorrilySDK, the target you’d like to add the SDK to and press Add Package

Cocoapods

Example:

Usage

Import the SDK module: import CorrilySDK All public methods are documented, please see details in their apidoc.

SDK start

Call SDK’s start() method at app launch time, for example:

Request products

Send charge request

This should be done in the updatedTransactions method of SKPaymentTransactionObserver. Call the method regardless of the transaction state, example: