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 moreDeclaration
Objective-C
@interface VisaCheckoutPlugin : NSObject <WKScriptMessageHandler>
Swift
class VisaCheckoutPlugin : NSObject, WKScriptMessageHandler
-
The
See moreVisaCheckoutSDK
class is primarily used for configuring a manual checkout session for invoking the Visa Checkout SDK directly.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
See moreVisaProfile
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.Declaration
Objective-C
@interface VisaProfile : VInitInfo
Swift
class Profile : VInitInfo
-
A brand of credit card associated with a payment
See moreDeclaration
Objective-C
enum VisaCardBrand {}
Swift
enum CardBrand : Int
-
This type represents a country that Visa Checkout supports.
See moreDeclaration
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
See moreapiKey
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.Declaration
Objective-C
enum VisaEnvironment {}
Swift
enum Environment : Int
-
The level of detail Visa Checkout sends back in the
See moreVisaCheckoutResult
object once the transaction completes.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 moreDeclaration
Objective-C
enum VisaReviewAction {}
Swift
enum ReviewAction : Int
-
The
See moreVisaPurchaseInfo
class is used for you to send the Visa Checkout SDK the detailed information regarding your customers’ purchase.Declaration
Objective-C
@interface VisaPurchaseInfo : VInitInfo
Swift
class PurchaseInfo : VInitInfo
-
This type represents a currency that Visa Checkout supports.
See moreDeclaration
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
See moreonCheckout(profile:purchaseInfo:presenting:completion:)
method to provide information that is used when the button is tapped by the user.Declaration
Objective-C
@interface VisaCheckoutButton : UIView
Swift
class VisaCheckoutButton : UIView
-
The style to be used for rendering a
See moreVisaCheckoutButton
instance.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 instatusCode
.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
See moredescription
property can be used.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
See morestatusCode
of theVisaCheckoutResult
class.Declaration
Objective-C
enum VisaCheckoutResultStatus {}
Swift
enum CheckoutResultStatus : Int
-
A
See moreVisaCurrencyAmount
encapsulates money values. It can be initialized with String, NSDecimalNumber, double, and int types.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