CashfreePG

2.3.1

shimiljascf/core-ios-sdk

What's New

CashfreePG iOS SDK 2.3.1

2025-06-29T14:28:14Z

CashfreePG iOS SDK 2.3.1

📦 Installation via Swift Package Manager

Add this to your Package.swift:

dependencies: [
    .package(url: "https://github.com/shimiljascf/core-ios-sdk.git", from: "2.3.1")
]

Or add via Xcode:

  1. File → Add Package Dependencies
  2. Enter: https://github.com/shimiljascf/core-ios-sdk.git
  3. Select version: 2.3.1

🔧 WebKit Integration

If you encounter WebKit linking issues with SPM, see our SPM Integration Guide.

📚 Documentation

🆕 What's Changed

  • Improved SPM integration
  • WebKit linking fixes
  • Updated documentation

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:

Method 1: 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

Method 2: Package.swift

Add the following to your Package.swift file:

dependencies: [
    .package(url: "https://github.com/cashfree/core-ios-sdk.git", from: "2.2.4")
]

Then add to your target dependencies:

.target(
    name: "YourApp",
    dependencies: [
        .product(name: "CashfreePG", package: "core-ios-sdk")
    ]
)

CocoaPods

Add the following to your Podfile:

pod 'CashfreePG', '~> 2.2.4'

Then run:

pod install

🏗️ Framework Architecture

The Cashfree iOS SDK is built with a modular architecture:

CashfreePG (Main SDK)
    ├── CashfreePGUISDK (UI Components)
    │   └── CashfreePGCoreSDK (Core Payment Logic)
    │       └── CashfreeAnalyticsSDK (Analytics & Tracking)
    │           └── CFNetworkSDK (Networking Layer)

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: Sun Jun 29 2025 07:33:41 GMT-0900 (Hawaii-Aleutian Daylight Time)