Swiftpack.co - datatrans/ios-sdk as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by datatrans.
datatrans/ios-sdk 3.0.0
Accept payments on your iOS apps: Our mobile SDKs support your entire payment and registration process and simplify the integration of any payment method in your mobile apps.
⭐️ 7
🕓 4 weeks ago
.package(url: "https://github.com/datatrans/ios-sdk.git", from: "3.0.0")

Datatrans iOS SDK

Version License Platform

Accept payments on your iOS apps: Our mobile SDKs support your entire payment and registration process and simplify the integration of any payment method in your mobile apps. Completely outsource your payment processes to us from inside your native apps. We also take care of redirecting your users to 3D Secure processes and enable smooth app-switches to other payment applications including Twint and PostFinance.


Easy Integration: Integrate many of our payment methods easily to your iOS projects. Smart, modern and secure UI components to master online payments in your apps.

Card Scanner: Let your customers scan their card information easily with our prebuilt card scanner. No time wasted with entering card information.

3DS 2.0 / SCA Ready: The iOS SDK takes over the complexity of the 3DS process. We remain in charge of redirecting users whenever a 3D authorization is required to the 3DS process of their bank and back to the SDK.

Smooth App-Switch: Do you offer payment methods like Twint or PayPal that require the user to confirm the payment in a separate mobile app? The library switches smoothly to external apps and back to the SDK.

Saved Payment Methods and Fast Checkouts: Save your customers' payment information for later use and offer fast checkouts in your app. Delegate the saved payment method selection to the library.

Theme Support: Style various items according to your corporate identity if needed. We also support the iOS dark theme.


Get started with our integration guide and the API reference.


The Datatrans iOS SDK requires Xcode 12 or later and is compatible with apps targeting iOS 11 or above.


Stars: 7
Last commit: 4 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

4 weeks ago

👀 🙉 Lots of cool improvements and a new card scanner!

3.0 is out! A brand new scanner is included starting 3.0. We will now offer our own scanner to facilitate your consumers’ card scans. This release also contains a card check feature and many small fixes reported in the past.

⚠️ Important Change Starting 3.0.0

There is a breaking change if you offer Apple Pay in your apps. DTApplePayDelegate has been updated to reflect the current methods from PKPaymentAuthorizationControllerDelegate. Deprecated methods have been removed.

New Features

A beautiful card scanner (from us ❤️) is now used for our card scans. This newly introduced scanner is as close to iOS as it will get.

We also introduced the card check flow, which authorizes a card with no amount. This flow can be triggered by specifying a card alias, amount:0 and createAlias:false in your init request.


  • Added our own card scanner, card.io's scanner was replaced
  • Added our card check flow (card: {alias:yourAlias, ...}, amount:0, createAlias:false)
  • Added support for Dankort
  • Added Dutch as a language 🇳🇱


  • Improved our error handling - we now include more information when the mobileToken is wrong or invalid, when your callback scheme is invalid, the Klarna config is wrong, and also more information related to server responses


  • Minor bugs

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics