WePay iOS SDK
Native iOS SDK for opening an existing WePay checkout URL in an in-app WebView.
- Your backend is responsible for creating the contract and generating the checkout URL.
- This SDK is responsible only for opening that URL in a WebView and detecting success/failure.
Features​
- WebView-based checkout screen
- Loads your existing checkout URL
- Detects success (
/success) and error (/error) redirects - Shows success/error alerts and auto-closes
- Optional KYC UI components (if you want to build your own flow)
Requirements​
| Requirement | Minimum Version |
|---|---|
| iOS | 13.0+ |
| Swift | 5.0+ |
| Xcode | 12.0+ |
Integration Steps​
| Step | Description |
|---|---|
| 1 | Installation — Add the SDK via CocoaPods, SPM, or manually |
| 2 | Backend Setup — Generate the checkout URL from your server |
| 3 | Open Checkout — Launch the WebView checkout in your app |
| 4 | Advanced Usage — Use WebViewPaymentViewController directly |
| 5 | Configuration — Info.plist settings and API reference |
Support​
For issues and feature requests, please use the GitHub Issues page.