VisaCheckoutResult


@interface VisaCheckoutResult : NSObject

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.

  • An internal identifier provided by the Visa Checkout SDK. Use this value as the value for the PurchaseInfo.referenceCallId property if you need to make modifications to a successful checkout transaction.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nullable callId;

    Swift

    var callId: String? { get }
  • The brand of the credit card the user has chosen to use for this purchase.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) VisaCardBrand cardBrand;

    Swift

    var cardBrand: CardBrand { get set }
  • The country associated with this user.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) VisaCountry country;

    Swift

    var country: Country { get set }
  • The country associated with this user. This is only populated if statusCode is of type VisaCheckoutResultStatusSuccess.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSString *_Nonnull countryCode;

    Swift

    var countryCode: String { get set }
  • The encrypted key that is used to decrypt the encryptedPaymentData. This is only populated if statusCode is of type VisaCheckoutResultStatusSuccess.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nullable encryptedKey;

    Swift

    var encryptedKey: String? { get }
  • The encrypted payment data containing the card information. This data needs to be decrypted using the encryptedKey. This is only populated if statusCode is of type VisaCheckoutResultStatusSuccess.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nullable encryptedPaymentData;

    Swift

    var encryptedPaymentData: String? { get }
  • The last four digits of the credit card the user has chosen to use for this purchase.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nullable lastFourDigits;

    Swift

    var lastFourDigits: String? { get }
  • The payment method type, set to either TOKEN or PAN.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nullable paymentMethodType;

    Swift

    var paymentMethodType: String? { get }
  • The postal code associated with this user. This is only populated if statusCode is of type VisaCheckoutResultStatusSuccess.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nullable postalCode;

    Swift

    var postalCode: String? { get }
  • The status of this checkout attempt.

    Declaration

    Objective-C

    @property (readonly, nonatomic) VisaCheckoutResultStatus statusCode;

    Swift

    var statusCode: CheckoutResultStatus { get }
  • A value representing the status of this checkout attempt (e.g. kVisaCheckoutResultPaymentSuccess)

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull statusName;

    Swift

    var statusName: String { get }