Skip to main content

Installation

Choose your preferred package manager to add the WePay iOS SDK to your project.


CocoaPods​

Add the following to your Podfile:

pod 'WePaySDK', '~> 1.0.0'

Then install:

pod install

Open the generated .xcworkspace file (not .xcodeproj) after installation.


Swift Package Manager​

Via Xcode​

  1. In Xcode, go to File → Add Packages…
  2. Enter the repository URL: https://github.com/wepay-sa/checkout.ios.sdk
  3. Select Up to Next Major Version starting from 1.0.0
  4. Click Add Package

Via Package.swift​

Add the dependency to your Package.swift:

dependencies: [
.package(url: "https://github.com/wepay-sa/checkout.ios.sdk.git", from: "1.0.0")
]

And add WePaySDK to your target:

targets: [
.target(
name: "YourApp",
dependencies: ["WePaySDK"]
)
]

Manual Installation​

  1. Clone the repository:
    git clone https://github.com/wepay-sa/checkout.ios.sdk.git
  2. Drag the WePaySDK folder into your Xcode project.
  3. In your target's General settings, under Frameworks, Libraries, and Embedded Content, make sure WePaySDK is listed and set to Embed & Sign.

Next Step​

Proceed to Step 1 — Backend Setup to generate the checkout URL from your server.