Classes

The following classes are available globally.

  • A view controller that collects a name and an address, with full localization and autocomplete.

    Note

    It uses navigationItem and can push a view controller, so it must be shown inside a UINavigationController.
    See more

    Declaration

    Swift

    @objc(STPAddressViewController)
    public class AddressViewController : UIViewController
    extension AddressViewController: UIGestureRecognizerDelegate
  • A drop-in class that presents a sheet for a customer to complete their payment

    See more

    Declaration

    Swift

    public class PaymentSheet
  • A client for making connections to the Stripe API.

    See more

    Declaration

    Swift

    @objc
    public class STPAPIClient : NSObject
  • Libraries wrapping the Stripe SDK should use this object to provide information about the library, and set it in on STPAPIClient.

    This information is passed to Stripe so that we can contact you about future issues or critical updates.

    See more

    Declaration

    Swift

    @objc
    public class STPAppInfo : NSObject
  • A top-level class that imports the rest of the Stripe SDK.

    See more

    Declaration

    Swift

    @objc
    public class StripeAPI : NSObject

STPError