Class Documentation

  • VisaCheckoutPlugin is used to configure Visa Checkout for hybrid environments. VisaCheckoutPlugin conforms to the WKScriptMessageHandler protocol and will act as a message handler for your instance of WKWebView.

    See more

    Declaration

    Objective-C

    @interface VisaCheckoutPlugin : NSObject <WKScriptMessageHandler>

    Swift

    class VisaCheckoutPlugin : NSObject, WKScriptMessageHandler
  • The VisaCheckoutSDK class is primarily used for configuring a manual checkout session for invoking the Visa Checkout SDK directly.

    See more

    Declaration

    Objective-C

    @interface VisaCheckoutSDK : NSObject

    Swift

    class VisaCheckoutSDK : NSObject
  • Closure/block used to manually invoke Visa Checkout. This will be returned when calling configureManualCheckoutSession(profile:purchaseInfo:presenting:onReady:result:).

    Declaration

    Objective-C

    typedef void (^LaunchHandle)(void)

    Swift

    typealias LaunchHandle = () -> Void
  • The closure to execute when Visa Checkout is finished configuring and is ready to launch (for manual configuration/launch).

    Declaration

    Objective-C

    typedef void (^ManualCheckoutReadyHandler)(LaunchHandle _Nonnull)

    Swift

    typealias ManualCheckoutReadyHandler = (LaunchHandle) -> Void
  • The VisaProfile class is the mechanism to customize the Visa Checkout SDK’s configuration. These settings allow various modifications to the way the SDK behaves and also the way it appears to your users.

    See more

    Declaration

    Objective-C

    
    @interface VisaProfile : VInitInfo

    Swift

    class Profile : VInitInfo
  • A brand of credit card associated with a payment

    See more

    Declaration

    Objective-C

    enum VisaCardBrand {}

    Swift

    enum CardBrand : Int
  • This type represents a country that Visa Checkout supports.

    See more

    Declaration

    Objective-C

    enum VisaCountry {}

    Swift

    enum Country : Int
  • Environment is the context in which Visa Checkout SDK will connect. For testing and debugging purposes, VisaEnvironmentSandbox should be used. When deploying to the general public, VisaEnvironmentProduction must be used.

    Each environment will have a different apiKey associated with it. It is important to remember to change the API Key to the production API Key value before submitting apps to the App Store.

    See more

    Declaration

    Objective-C

    enum VisaEnvironment {}

    Swift

    enum Environment : Int
  • The level of detail Visa Checkout sends back in the VisaCheckoutResult object once the transaction completes.

    See more

    Declaration

    Objective-C

    enum VisaDataLevel {}

    Swift

    enum DataLevel : Int
  • Indicates to the user if there will be another ‘finalize purchase’ screen once returning to the parent application.

    See more

    Declaration

    Objective-C

    enum VisaReviewAction {}

    Swift

    enum ReviewAction : Int
  • The VisaPurchaseInfo class is used for you to send the Visa Checkout SDK the detailed information regarding your customers’ purchase.

    See more

    Declaration

    Objective-C

    
    @interface VisaPurchaseInfo : VInitInfo

    Swift

    class PurchaseInfo : VInitInfo
  • This type represents a currency that Visa Checkout supports.

    See more

    Declaration

    Objective-C

    enum VisaCurrency {}

    Swift

    enum Currency : Int
  • This is the main point of interaction for your customers. The user will tap this button in order to initiate the Visa Checkout SDK’s user interface. A VisaCheckoutButton can have a VisaCheckoutButtonStyle for different visual rendering options.

    You can use the onCheckout(profile:purchaseInfo:presenting:completion:) method to provide information that is used when the button is tapped by the user.

    See more

    Declaration

    Objective-C

    @interface VisaCheckoutButton : UIView

    Swift

    class VisaCheckoutButton : UIView
  • The style to be used for rendering a VisaCheckoutButton instance.

    See more

    Declaration

    Objective-C

    enum VisaCheckoutButtonStyle {}

    Swift

    enum CheckoutButtonStyle : Int
  • The CheckoutResult class is the object that is returned when a Visa Checkout launch has occurred and finished. This class will contain information related to the user’s payment if successful. If the checkout attempt was unsuccessful, it will contain an error code in statusCode.

    For future use, if any more values are added to VisaCheckoutResult, they can be accessed using subscripting. e.g. if a key called info is added to the result, its value can be accessed as result[@info], where result is an instance of VisaCheckoutResult.

    To view the textual representation of VisaCheckoutResult, the description property can be used.

    See more

    Declaration

    Objective-C

    
    @interface VisaCheckoutResult : NSObject

    Swift

    class CheckoutResult : NSObject
  • The result code indicating the status of a completed Visa Checkout transaction. This is the code found in the statusCode of the VisaCheckoutResult class.

    See more

    Declaration

    Objective-C

    enum VisaCheckoutResultStatus {}

    Swift

    enum CheckoutResultStatus : Int
  • A VisaCurrencyAmount encapsulates money values. It can be initialized with String, NSDecimalNumber, double, and int types.

    See more

    Declaration

    Objective-C

    
    @interface VisaCurrencyAmount : NSObject

    Swift

    class CurrencyAmount : NSObject
  • Closure/block used to respond to a Visa Checkout request for data.

    Declaration

    Objective-C

    typedef void (^VisaConfigResponse)(id _Nonnull)

    Swift

    typealias VisaConfigResponse = (Any) -> Void