Other Classes

The following classes are available globally.

  • This class includes the Datatrans error name

    See more

    Declaration

    Swift

    public class BackendError: NSError
  • Use this class if your app crashes when switching to/from external payment apps, such as TWINT, Swish, Vipps, and MobilePay. Our automatic app callback logic may interfere with other logic in your app and needs to be disabled.

    Globally set AppCallbackHandler.shared.automaticCallbacks to false. Then implement the application(_:open:options:) method in your AppDelegate and call AppCallbackHandler.shared.handleURL(url) with the URL received.

    See more

    Declaration

    Swift

    public final class AppCallbackHandler: NSObject