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​
- In Xcode, go to File → Add Packages…
- Enter the repository URL:
https://github.com/wepay-sa/checkout.ios.sdk - Select Up to Next Major Version starting from
1.0.0 - 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​
- Clone the repository:
git clone https://github.com/wepay-sa/checkout.ios.sdk.git
- Drag the
WePaySDKfolder into your Xcode project. - In your target's General settings, under Frameworks, Libraries, and Embedded Content, make sure
WePaySDKis listed and set to Embed & Sign.
Next Step​
Proceed to Step 1 — Backend Setup to generate the checkout URL from your server.