CashfreePG

2.2.5

Cashfree iOS SDK
cashfree/core-ios-sdk

What's New

Swift Package Manager support

2025-07-08T13:14:10Z

Swift Package Manager support

Cashfree iOS SDK Sample

GitHub Discord GitHub last commit (branch) GitHub release (with filter) GitHub forks GitHub Repo stars

Sample Banner Image

Description

Sample integration project for Cashfree Payment Gateway's iOS SDK, facilitating seamless and secure payment processing within your iOS application.

📦 Installation

Swift Package Manager (Recommended)

The easiest way to integrate Cashfree iOS SDK is through Swift Package Manager

Xcode GUI

  1. Open your project in Xcode
  2. Go to File > Add Package Dependencies
  3. Enter the repository URL: https://github.com/cashfree/core-ios-sdk.git
  4. Select the version rule (recommend "Up to Next Major Version")
  5. Choose the products you need:
    • CashfreePG - Complete Payment Gateway SDK (recommended)
    • CashfreePGCoreSDK - Core payment processing
    • CashfreePGUISDK - UI components
    • CashfreeAnalyticsSDK - Analytics and tracking
    • CFNetworkSDK - Networking layer

⚠️ WebKit Integration Note

If you encounter "WebKit framework not found" errors with SPM, manually add WebKit framework:

  1. Select your project → Target → Build Phases
  2. Link Binary With Libraries → Add WebKit.framework
  3. Or add to your Package.swift:

CocoaPods

Add the following to your Podfile:

pod 'CashfreePG', '~> 2.2.4'

Then run:

pod install

Documentation

The Cashfree iOS SDK allows you to integrate Cashfree Payment Gateway into your application and start collecting payments from your customers. It has been designed to minimise the complexity of handling and integrating payments in your iOS project

Getting Started

Please replace the values for orderId, token (Payment Session ID) and environment in the example iOS project inside the repo and run the application.

    static var environment: CFENVIRONMENT = .SANDBOX
    static let payment_session_id = "payment_session_id"
    static let order_id = "order_id"

| Please refer our official iOS documentation here.

Getting help

If you have questions, concerns, bug reports, etc, you can reach out to us using one of the following

  1. File an issue in this repository's Issue Tracker.
  2. Send a message in our discord channel. Join our discord server to get connected instantly.
  3. Send an email to care@cashfree.com

Getting involved

For general instructions on how to contribute please refer to CONTRIBUTING.


Open source licensing and other misc info

  1. LICENSE
  2. CODE OF CONDUCT

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

  • None
Last updated: Tue Jul 08 2025 22:49:43 GMT-0900 (Hawaii-Aleutian Daylight Time)