iOS SDK
Integrate Embloy’s prebuilt payment UI into the application process of your iOS app with the ApplicationSheet
class. See our sample integration on GitHub.
The Embloy iOS SDK are currently under development and not released yet. However, the documentation is already set up, so that you can get a glimpse of what's coming.
Set up Embloy
First, you need an Embloy account. Register now.
Server-side
This integration requires endpoints on your server that talk to the Embloy API. Use our official libraries for access to the Embloy API from your server. See also the Server-side SDKs.
Client-side
The Embloy iOS SDK is open source, fully documented, and compatible with apps supporting iOS 13 or above.
- Swift Package Manager
- CocoaPods
- Carthage
- Manual Framework
To install the SDK, follow these steps:
-
In Xcode, select File > Add Packages… and enter https://github.com/embloy/embloy-ios-spm as the repository URL.
-
Select the latest version number from our releases page.
-
Add the EmbloyApplicationSheet product to the target of your app.
-
If you haven’t already, install the latest version of CocoaPods.
-
If you don’t have an existing Podfile, run the following command to create one:
Command Linepod init
-
Add this line to your Podfile:
Podfilepod 'EmbloyApplicationSheet'
-
Run the following command:
Command Linepod install
-
Don’t forget to use the
.xcworkspace
file to open your project in Xcode, instead of the.xcodeproj
file, from here on out. -
In the future, to update to the latest version of the SDK, run:
Command Linepod update EmbloyApplicationSheet
-
If you haven’t already, install the latest version of Carthage.
-
Add this line to your Cartfile:
Cartfilegithub "embloy/embloy-ios"
-
Follow the Carthage installation instructions. Make sure to embed all of the required frameworks listed here.
-
In the future, to update to the latest version of the SDK, run the following command:
Command Linecarthage update embloy-ios --platform ios
-
Head to our GitHub releases page and download and unzip Embloy.xcframework.zip.
-
Drag EmbloyApplicationSheet.xcframework to the Embedded Binaries section of the General settings in your Xcode project. Make sure to select Copy items if needed.
-
Repeat step 2 for all required frameworks listed here.
-
In the future, to update to the latest version of our SDK, repeat steps 1–3.
For details on the latest SDK release and past versions, see the Releases page on GitHub. To receive notifications when a new release is published, watch releases for the repository.