diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..e43b0f98 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/Adyen3DS2.framework/Adyen3DS2 b/Adyen3DS2.framework/Adyen3DS2 index f2d1da28..92417401 100755 Binary files a/Adyen3DS2.framework/Adyen3DS2 and b/Adyen3DS2.framework/Adyen3DS2 differ diff --git a/Adyen3DS2.framework/Assets.car b/Adyen3DS2.framework/Assets.car index a7a22c80..404e4b86 100644 Binary files a/Adyen3DS2.framework/Assets.car and b/Adyen3DS2.framework/Assets.car differ diff --git a/Adyen3DS2.framework/Headers/ADYAppearance.h b/Adyen3DS2.framework/Headers/ADYAppearance.h index 0cf15b63..d6c617ac 100644 --- a/Adyen3DS2.framework/Headers/ADYAppearance.h +++ b/Adyen3DS2.framework/Headers/ADYAppearance.h @@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN @note This class corresponds to the `Customization` class in the specification. */ -@interface ADYAppearance : NSObject +@interface ADYAppearance : NSObject /** The font in which text is displayed. diff --git a/Adyen3DS2.framework/Headers/ADYAppearanceConfiguration.h b/Adyen3DS2.framework/Headers/ADYAppearanceConfiguration.h index ecd1d373..bbe646c1 100644 --- a/Adyen3DS2.framework/Headers/ADYAppearanceConfiguration.h +++ b/Adyen3DS2.framework/Headers/ADYAppearanceConfiguration.h @@ -9,16 +9,65 @@ #import #import #import +#import #import +#import NS_ASSUME_NONNULL_BEGIN +/** + An enum describing the different button types. + */ +typedef NS_ENUM(NSUInteger, ADYAppearanceButtonType) { + + /// Indicates the submit button. + ADYAppearanceButtonTypeSubmit, + + /// Indicates the continue button. + ADYAppearanceButtonTypeContinue, + + /// Indicates the next button. + ADYAppearanceButtonTypeNext, + + /// Indicates the cancel button. + ADYAppearanceButtonTypeCancel, + + /// Indicates the resend button. + ADYAppearanceButtonTypeResend + +}; + /** Provides appearance customization properties for interface elements used throughout the challenge flow. @note This class corresponds to the `UiCustomization` class in the specification. */ -@interface ADYAppearanceConfiguration : NSObject +@interface ADYAppearanceConfiguration : NSObject + +/** + The preferred status bar style for the challenge flow. + */ +@property (nonatomic, assign, readwrite) UIStatusBarStyle statusBarStyle; + +/** + The background color of the entire challenge flow. + */ +@property (nonatomic, strong, readwrite) UIColor *backgroundColor; + +/** + A convenience property that sets the text color on every appearance object. + */ +@property (nonatomic, strong, readwrite) UIColor *textColor; + +/** + A convenience property that sets the border color on every appearance object. + */ +@property (nonatomic, strong, readwrite) UIColor *borderColor; + +/** + A convenience property that sets the tint color on every appearance object. + */ +@property (nonatomic, strong, readwrite) UIColor *tintColor; /** The appearance of the navigation bar. @@ -36,29 +85,22 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, strong, readonly) ADYTextFieldAppearance *textFieldAppearance; /** - The appearance of the verify button. + The appearance of select controls. */ -@property (nonatomic, strong, readonly) ADYButtonAppearance *verifyButtonAppearance; +@property (nonatomic, strong, readonly) ADYSelectAppearance *selectAppearance; /** - The appearance of the continue button. + The appearance of info items. */ -@property (nonatomic, strong, readonly) ADYButtonAppearance *continueButtonAppearance; +@property (nonatomic, strong, readonly) ADYInfoAppearance *infoAppearance; /** - The appearance of the next button. - */ -@property (nonatomic, strong, readonly) ADYButtonAppearance *nextButtonAppearance; + Returns the appearance for the button of the given type. -/** - The appearance of the cancel button. - */ -@property (nonatomic, strong, readonly) ADYButtonAppearance *cancelButtonAppearance; - -/** - The appearance of the resend button. + @param buttonType The button type to return the appearance for. + @return The appearance for the button of the given type. */ -@property (nonatomic, strong, readonly) ADYButtonAppearance *resendButtonAppearance; +- (ADYButtonAppearance *)buttonAppearanceForButtonType:(ADYAppearanceButtonType)buttonType; @end diff --git a/Adyen3DS2.framework/Headers/ADYAuthenticationRequestParameters.h b/Adyen3DS2.framework/Headers/ADYAuthenticationRequestParameters.h index 4a7b05c3..a9df0272 100644 --- a/Adyen3DS2.framework/Headers/ADYAuthenticationRequestParameters.h +++ b/Adyen3DS2.framework/Headers/ADYAuthenticationRequestParameters.h @@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN /** A unique string identifying the application. */ -@property (nonatomic, copy, readonly) NSString *applicationIdentifier; +@property (nonatomic, copy, readonly) NSString *SDKApplicationIdentifier; /** A unique string identifying the transaction within the scope of the SDK. @@ -39,12 +39,12 @@ NS_ASSUME_NONNULL_BEGIN /** The public key component of the ephemeral keypair generated for the transaction, represented as a JWK. */ -@property (nonatomic, copy, readonly) NSString *ephemeralPublicKey; +@property (nonatomic, copy, readonly) NSString *SDKEphemeralPublicKey; /** - The version of the protocol to use during the transaction. + The protocol version to use during the transaction. */ -@property (nonatomic, copy, readonly) NSString *protocolVersion; +@property (nonatomic, copy, readonly) NSString *messageVersion; + (instancetype)new NS_UNAVAILABLE; - (instancetype)init NS_UNAVAILABLE; diff --git a/Adyen3DS2.framework/Headers/ADYButtonAppearance.h b/Adyen3DS2.framework/Headers/ADYButtonAppearance.h index 00ccdfc9..1e75e85c 100644 --- a/Adyen3DS2.framework/Headers/ADYButtonAppearance.h +++ b/Adyen3DS2.framework/Headers/ADYButtonAppearance.h @@ -9,6 +9,22 @@ NS_ASSUME_NONNULL_BEGIN +/** + The type of transform to apply to the button's text. + */ +typedef NS_ENUM(NSUInteger, ADYButtonAppearanceTextTransform) { + + /// Indicates the text should not be transformed. + ADYButtonAppearanceTextTransformNone, + + /// Indicates the text should be uppercased. + ADYButtonAppearanceTextTransformUppercase, + + /// Indicates the text should be lowercased. + ADYButtonAppearanceTextTransformLowercase + +}; + /** Contains properties to customize the appearance of a button. @@ -16,11 +32,31 @@ NS_ASSUME_NONNULL_BEGIN */ @interface ADYButtonAppearance : ADYAppearance +/** + The type of transform to apply to the button's text. + */ +@property (nonatomic, assign, readwrite) ADYButtonAppearanceTextTransform textTransform; + /** The background color of the button. */ @property (nonatomic, strong, readwrite) UIColor *backgroundColor; +/** + The color of the button's title in case it's disabled. + */ +@property (nonatomic, strong, readwrite) UIColor *disabledTextColor; + +/** + The background color of the button in case it's disabled. + */ +@property (nonatomic, strong, readwrite) UIColor *disabledBackgroundColor; + +/** + The background color of hte button in case it's highlighted, or nil when the default color should be darkened. + */ +@property (nonatomic, strong, readwrite, nullable) UIColor *highlightedBackgroundColor; + /** The radius of the button's corners. */ diff --git a/Adyen3DS2.framework/Headers/ADYChallengeStatusDelegate.h b/Adyen3DS2.framework/Headers/ADYChallengeDelegate.h similarity index 66% rename from Adyen3DS2.framework/Headers/ADYChallengeStatusDelegate.h rename to Adyen3DS2.framework/Headers/ADYChallengeDelegate.h index 0ab6aec6..96eafeaa 100644 --- a/Adyen3DS2.framework/Headers/ADYChallengeStatusDelegate.h +++ b/Adyen3DS2.framework/Headers/ADYChallengeDelegate.h @@ -1,11 +1,11 @@ // -// ADYChallengeStatusDelegate.h +// ADYChallengeDelegate.h // Adyen3DS2 // // Copyright © 2018 Adyen. All rights reserved. // -#import +#import NS_ASSUME_NONNULL_BEGIN @@ -14,14 +14,14 @@ NS_ASSUME_NONNULL_BEGIN @note This protocol corresponds to the `ChallengeStatusReceiver` interface in the specification. */ -@protocol ADYChallengeStatusDelegate +@protocol ADYChallengeDelegate /** Invoked when a challenge is completed successfully. - @param completion The completion event of the challenge. + @param result The result of the challenge. */ -- (void)challengeDidFinishWithCompletion:(ADYChallengeCompletion *)completion; +- (void)challengeDidFinishWithResult:(ADYChallengeResult *)result; /** Invokes when a challenge has failed. diff --git a/Adyen3DS2.framework/Headers/ADYChallengeCompletion.h b/Adyen3DS2.framework/Headers/ADYChallengeResult.h similarity index 89% rename from Adyen3DS2.framework/Headers/ADYChallengeCompletion.h rename to Adyen3DS2.framework/Headers/ADYChallengeResult.h index 323b923b..3ad7298a 100644 --- a/Adyen3DS2.framework/Headers/ADYChallengeCompletion.h +++ b/Adyen3DS2.framework/Headers/ADYChallengeResult.h @@ -1,5 +1,5 @@ // -// ADYChallengeCompletion.h +// ADYChallengeResult.h // Adyen3DS2 // // Copyright © 2018 Adyen. All rights reserved. @@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN @note This class corresponds to the `CompletionEvent` class in the specification. */ -@interface ADYChallengeCompletion : NSObject +@interface ADYChallengeResult : NSObject /** A unique string identifying the transaction within the scope of the SDK. diff --git a/Adyen3DS2.framework/Headers/ADYInfoAppearance.h b/Adyen3DS2.framework/Headers/ADYInfoAppearance.h new file mode 100644 index 00000000..d1a68dfd --- /dev/null +++ b/Adyen3DS2.framework/Headers/ADYInfoAppearance.h @@ -0,0 +1,39 @@ +// +// ADYInfoAppearance.h +// Adyen3DS2 +// +// Copyright © 2018 Adyen. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Contains properties to customize the appearance of info items. + */ +@interface ADYInfoAppearance : ADYAppearance + +/** + The font in which heading text is displayed. + */ +@property (nonatomic, strong, readwrite) UIFont *headingFont; + +/** + The color in which heading text is displayed. + */ +@property (nonatomic, strong, readwrite) UIColor *headingTextColor; + +/** + The tint color of the item's selection indicator (the chevron). + */ +@property (nonatomic, strong, readwrite) UIColor *selectionIndicatorTintColor; + +/** + The color of the info item's border. + */ +@property (nonatomic, strong, readwrite) UIColor *borderColor; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Adyen3DS2.framework/Headers/ADYLabelAppearance.h b/Adyen3DS2.framework/Headers/ADYLabelAppearance.h index e8f3f950..cda3d024 100644 --- a/Adyen3DS2.framework/Headers/ADYLabelAppearance.h +++ b/Adyen3DS2.framework/Headers/ADYLabelAppearance.h @@ -26,6 +26,21 @@ NS_ASSUME_NONNULL_BEGIN */ @property (nonatomic, strong, readwrite) UIColor *headingTextColor; +/** + The font in which subheading text is displayed. + */ +@property (nonatomic, strong, readwrite) UIFont *subheadingFont; + +/** + The color in which subheading text is displayed. + */ +@property (nonatomic, strong, readwrite) UIColor *subheadingTextColor; + +/** + The color in which error text is displayed. + */ +@property (nonatomic, strong, readwrite) UIColor *errorTextColor; + @end NS_ASSUME_NONNULL_END diff --git a/Adyen3DS2.framework/Headers/ADYNavigationBarAppearance.h b/Adyen3DS2.framework/Headers/ADYNavigationBarAppearance.h index 5a7386da..ad1a5efe 100644 --- a/Adyen3DS2.framework/Headers/ADYNavigationBarAppearance.h +++ b/Adyen3DS2.framework/Headers/ADYNavigationBarAppearance.h @@ -16,10 +16,20 @@ NS_ASSUME_NONNULL_BEGIN */ @interface ADYNavigationBarAppearance : ADYAppearance +/** + The title of the navigation bar. + */ +@property (nonatomic, copy, readwrite, nullable) NSString *title; + +/** + The title of the cancel button in the navigation bar, or `nil` to leave it at the default system localized cancel button title. + */ +@property (nonatomic, copy, readwrite, nullable) NSString *cancelButtonTitle; + /** The background color of the navigation bar. */ -@property (nonatomic, strong, readwrite) UIColor *backgroundColor; +@property (nonatomic, strong, readwrite, nullable) UIColor *backgroundColor; @end diff --git a/Adyen3DS2.framework/Headers/ADYSelectAppearance.h b/Adyen3DS2.framework/Headers/ADYSelectAppearance.h new file mode 100644 index 00000000..40e85b4a --- /dev/null +++ b/Adyen3DS2.framework/Headers/ADYSelectAppearance.h @@ -0,0 +1,34 @@ +// +// ADYSelectAppearance.h +// Adyen3DS2 +// +// Copyright © 2018 Adyen. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Contains properties to customize the appearance of select controls. + */ +@interface ADYSelectAppearance : ADYAppearance + +/** + The color of the select control's borders. + */ +@property (nonatomic, strong, readwrite) UIColor *borderColor; + +/** + The color of a select control item's background when it's highlighted. + */ +@property (nonatomic, strong, readwrite) UIColor *highlightedBackgroundColor; + +/** + The tint color of the select control item's selection indicator. + */ +@property (nonatomic, strong, readwrite) UIColor *selectionIndicatorTintColor; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Adyen3DS2.framework/Headers/ADYService.h b/Adyen3DS2.framework/Headers/ADYService.h index a92196b3..37ab46f7 100644 --- a/Adyen3DS2.framework/Headers/ADYService.h +++ b/Adyen3DS2.framework/Headers/ADYService.h @@ -23,7 +23,7 @@ NS_ASSUME_NONNULL_BEGIN /** The current version of the SDK. */ -@property (class, nonatomic, copy, readonly) NSString *sdkVersion; +@property (class, nonatomic, copy, readonly) NSString *version; /** Boolean value indicating whether the service is initialized. @@ -49,11 +49,11 @@ NS_ASSUME_NONNULL_BEGIN Creates a new transaction. @param directoryServerIdentifier The identifier of the directory server for which to create the transaction. When `nil`, the directory server information is assumed to have been passed in the parameters during initialization of the service. - @param protocolVersion The version of the protocol to be used during the transaction, or `nil` to use the latest supported version. + @param messageVersion The version of the protocol to be used during the transaction, or `nil` to use the latest supported version. @param error A pointer to an error object that is set to an @p NSError instance when an error occurs. @return An initialized transaction, or @p nil if a transaction could not be initialized. */ -- (nullable ADYTransaction *)createTransactionWithDirectoryServerIdentifier:(nullable NSString *)directoryServerIdentifier protocolVersion:(nullable NSString *)protocolVersion error:(NSError *__nullable *__nullable)error; +- (nullable ADYTransaction *)createTransactionWithDirectoryServerIdentifier:(nullable NSString *)directoryServerIdentifier messageVersion:(nullable NSString *)messageVersion error:(NSError *__nullable *__nullable)error; + (instancetype)new NS_UNAVAILABLE; - (instancetype)init NS_UNAVAILABLE; diff --git a/Adyen3DS2.framework/Headers/ADYServiceParameters.h b/Adyen3DS2.framework/Headers/ADYServiceParameters.h index 1dc962d6..682b714c 100644 --- a/Adyen3DS2.framework/Headers/ADYServiceParameters.h +++ b/Adyen3DS2.framework/Headers/ADYServiceParameters.h @@ -12,26 +12,25 @@ NS_ASSUME_NONNULL_BEGIN /** A collection of arbitrary parameters used during the initialization of the ADYService class. - @note The following parameters are required for the usage of the SDK: -
- - threeDS2DirectoryServerInformation (group):
-    - directoryServerId
-    - publicKey
- 
- @note This class corresponds to the `ConfigParameters` class in the specification. */ @interface ADYServiceParameters : NSObject /** - Initializes the service parameters with the additional data retrieved from the initial PaymentRequest to Adyen. - This is a convenience initializer used to fill the service parameters with the required parameters. It will iterate of the passed additional data and copy the contents of all the keys that start with `threeds2.`. - Usage of this initializer is optional. + The identifier of the directory server to use during the transaction creation phase. + + Usage of this property is optional. + */ +@property (nonatomic, copy, readwrite, nullable) NSString *directoryServerIdentifier; - @param additionalData The additional data retrieved from the initial PaymentRequest to Adyen. - @return Initialized service paramaters with the contents of the additional data. +/** + The public key of the directory server to use during the transaction creation phase. + + The value of this property should be a base64-encoded JSON Web Key. + + Usage of this property is optional. */ -- (instancetype)initWithAdditionalData:(NSDictionary *)additionalData; +@property (nonatomic, copy, readwrite, nullable) NSString *directoryServerPublicKey; /** Returns the value associated with a given key in the default group. diff --git a/Adyen3DS2.framework/Headers/ADYTextFieldAppearance.h b/Adyen3DS2.framework/Headers/ADYTextFieldAppearance.h index d9d21416..8232e95a 100644 --- a/Adyen3DS2.framework/Headers/ADYTextFieldAppearance.h +++ b/Adyen3DS2.framework/Headers/ADYTextFieldAppearance.h @@ -31,6 +31,11 @@ NS_ASSUME_NONNULL_BEGIN */ @property (nonatomic, assign, readwrite) CGFloat cornerRadius; +/** + The appearance of the keyboard when the text field is used. + */ +@property (nonatomic, assign, readwrite) UIKeyboardAppearance keyboardAppearance; + @end NS_ASSUME_NONNULL_END diff --git a/Adyen3DS2.framework/Headers/ADYTransaction.h b/Adyen3DS2.framework/Headers/ADYTransaction.h index 64f65b42..bb4ac0f4 100644 --- a/Adyen3DS2.framework/Headers/ADYTransaction.h +++ b/Adyen3DS2.framework/Headers/ADYTransaction.h @@ -8,13 +8,16 @@ #import #import #import -#import +#import #import /** - The default timeout value for the challenge process. + A block that is invoked when a challenge flow is completed. + + @param result The result of the challenge flow, in case it was completed successfully. + @param error The error that occurred, in case the challenge flow failed. */ -extern const NSTimeInterval ADYTransactionDefaultTimeout; +typedef void (^ADYChallengeCompletionHandler)(ADYChallengeResult * _Nullable result, NSError * _Nullable error); NS_ASSUME_NONNULL_BEGIN @@ -38,6 +41,14 @@ NS_ASSUME_NONNULL_BEGIN + (instancetype)new NS_UNAVAILABLE; - (instancetype)init NS_UNAVAILABLE; +/** + Starts the challenge flow for the transaction. + + @param challengeParameters The challenge parameters received from the 3DS Server. + @param delegate The delegate to inform of the result of the challenge. + */ +- (void)performChallengeWithParameters:(ADYChallengeParameters *)challengeParameters delegate:(id)delegate; + /** Starts the challenge flow for the transaction. @@ -45,7 +56,24 @@ NS_ASSUME_NONNULL_BEGIN @param delegate The delegate to inform of the result of the challenge. @param timeout The timeout interval in seconds in which the challenge process should be completed. Should be at least 300 seconds. */ -- (void)performChallengeWithParameters:(ADYChallengeParameters *)challengeParameters delegate:(id)delegate timeout:(NSTimeInterval)timeout; +- (void)performChallengeWithParameters:(ADYChallengeParameters *)challengeParameters delegate:(id)delegate timeout:(NSTimeInterval)timeout; + +/** + Starts the challenge flow for the transaction. + + @param challengeParameters The challenge parameters received from the 3DS server. + @param completionHandler The completion handler to invoke when the challenge flow is finished. + */ +- (void)performChallengeWithParameters:(ADYChallengeParameters *)challengeParameters completionHandler:(ADYChallengeCompletionHandler)completionHandler; + +/** + Starts the challenge flow for the transaction. + + @param challengeParameters The challenge parameters received from the 3DS server. + @param timeout The timeout interval in seconds in which the challenge process should be completed. Should be at least 300 seconds. + @param completionHandler The completion handler to invoke when the challenge flow is finished. + */ +- (void)performChallengeWithParameters:(ADYChallengeParameters *)challengeParameters timeout:(NSTimeInterval)timeout completionHandler:(ADYChallengeCompletionHandler)completionHandler; /** Cancels the current challenge flow. diff --git a/Adyen3DS2.framework/Info.plist b/Adyen3DS2.framework/Info.plist index 35558380..c650ab01 100644 Binary files a/Adyen3DS2.framework/Info.plist and b/Adyen3DS2.framework/Info.plist differ diff --git a/Adyen3DS2.podspec b/Adyen3DS2.podspec new file mode 100644 index 00000000..41a05d08 --- /dev/null +++ b/Adyen3DS2.podspec @@ -0,0 +1,13 @@ +version = '0.9.1' + +Pod::Spec.new do |spec| + spec.name = 'Adyen3DS2' + spec.version = version + spec.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE' } + spec.homepage = 'https://adyen.com' + spec.authors = { 'Adyen' => 'support@adyen.com' } + spec.summary = 'Accept 3D Secure 2.0 payments via Adyen.' + spec.source = { :git => 'https://github.com/adyen/adyen-3ds2-ios.git', :tag => version } + spec.vendored_frameworks = 'Adyen3DS2.framework' + spec.ios.deployment_target = '10.3' +end diff --git a/Docs/Blocks/ADYChallengeCompletionHandler.html b/Docs/Blocks/ADYChallengeCompletionHandler.html new file mode 100644 index 00000000..2a803961 --- /dev/null +++ b/Docs/Blocks/ADYChallengeCompletionHandler.html @@ -0,0 +1,133 @@ + + + + + + ADYChallengeCompletionHandler Block Reference + + + + + + +
+
+ +

+ Adyen3DS2 +

+ +

+ Adyen +

+ +
+
+ + + +
+
+
+
+

ADYChallengeCompletionHandler Block Reference

+ + +
+ + + + +
Declared inADYTransaction.h
+ + + + + + + + + + +

Block Definition

+

ADYChallengeCompletionHandler

+ + +
+

A block that is invoked when a challenge flow is completed.

+
+ + + +typedef void (^ADYChallengeCompletionHandler) (ADYChallengeResult *_Nullable, result , NSError *_Nullable, error ) + + + +
+

Discussion

+

A block that is invoked when a challenge flow is completed.

+
+ + + + + + + + + +
+

Declared In

+ ADYTransaction.h
+
+ + + +
+ + +
+
+
+ + + + \ No newline at end of file diff --git a/Docs/Classes/ADYAppearance.html b/Docs/Classes/ADYAppearance.html index 20fd2b23..0f2570cc 100644 --- a/Docs/Classes/ADYAppearance.html +++ b/Docs/Classes/ADYAppearance.html @@ -7,7 +7,7 @@ - +
@@ -86,6 +86,9 @@

ADYAppearance Class Reference

Inherits from NSObject + + Conforms to + NSCopying Declared in ADYAppearance.h @@ -213,15 +216,17 @@

Declared In

+ + diff --git a/Docs/Classes/ADYAppearanceConfiguration.html b/Docs/Classes/ADYAppearanceConfiguration.html index 5d33e81e..32185a02 100644 --- a/Docs/Classes/ADYAppearanceConfiguration.html +++ b/Docs/Classes/ADYAppearanceConfiguration.html @@ -7,7 +7,7 @@ - +
@@ -56,21 +56,25 @@

- + - + + + - + + + - + - + @@ -78,6 +82,12 @@

+ + + + + + @@ -98,6 +108,9 @@

ADYAppearanceConfiguration Class Reference

Inherits from NSObject + + Conforms to + NSCopying Declared in ADYAppearanceConfiguration.h @@ -126,8 +139,8 @@

Overview

+
+ +

  selectAppearance +

+ +
+
+ +
+ + +
+

The appearance of select controls.

+
+ + + +
@property (nonatomic, strong, readonly) ADYSelectAppearance *selectAppearance
+ + + + + + + + + +
+

Discussion

+

The appearance of select controls.

+
+ + + + + + + +
+

Declared In

+

ADYAppearanceConfiguration.h

+
+ + +
+
+
+ +

  infoAppearance +

+ +
+
+ +
+ + +
+

The appearance of info items.

+
+ + + +
@property (nonatomic, strong, readonly) ADYInfoAppearance *infoAppearance
+ + + + + + + + + +
+

Discussion

+

The appearance of info items.

+
+ + + + + + + +
+

Declared In

+

ADYAppearanceConfiguration.h

+
+ + +
+
+
+ +

– buttonAppearanceForButtonType: +

+ +
+
+ +
+ + +
+

Returns the appearance for the button of the given type.

+
+ + + +
- (ADYButtonAppearance *)buttonAppearanceForButtonType:(ADYAppearanceButtonType)buttonType
+ + + +
+

Parameters

+ + + + + + + +
buttonType

The button type to return the appearance for.

+
+ + + +
+

Return Value

+

The appearance for the button of the given type.

+
+ + + + + +
+

Discussion

+

Returns the appearance for the button of the given type.

@@ -501,15 +669,17 @@

Declared In

+ + diff --git a/Docs/Classes/ADYAuthenticationRequestParameters.html b/Docs/Classes/ADYAuthenticationRequestParameters.html index 0a460143..dded2b68 100644 --- a/Docs/Classes/ADYAuthenticationRequestParameters.html +++ b/Docs/Classes/ADYAuthenticationRequestParameters.html @@ -7,7 +7,7 @@ - +
@@ -56,17 +56,17 @@

+ + + + - - - - - + @@ -168,8 +168,8 @@

Declared In

- -

  protocolVersion + +

  messageVersion

@@ -363,12 +363,12 @@

  
-

The version of the protocol to use during the transaction.

+

The protocol version to use during the transaction.

-
@property (nonatomic, copy, readonly) NSString *protocolVersion
+
@property (nonatomic, copy, readonly) NSString *messageVersion
@@ -380,7 +380,7 @@

  

Discussion

-

The version of the protocol to use during the transaction.

+

The protocol version to use during the transaction.

@@ -405,15 +405,17 @@

Declared In

+ +
diff --git a/Docs/Classes/ADYButtonAppearance.html b/Docs/Classes/ADYButtonAppearance.html index 44598114..08bd68c2 100644 --- a/Docs/Classes/ADYButtonAppearance.html +++ b/Docs/Classes/ADYButtonAppearance.html @@ -7,7 +7,7 @@ - +
@@ -60,6 +60,14 @@

+ + + + + + + + @@ -114,6 +122,52 @@

Overview

+ +

  textTransform +

+ +
+
+ +
+ + +
+

The type of transform to apply to the button’s text.

+
+ + + +
@property (nonatomic, assign, readwrite) ADYButtonAppearanceTextTransform textTransform
+ + + + + + + + + +
+

Discussion

+

The type of transform to apply to the button’s text.

+
+ + + + + + + +
+

Declared In

+

ADYButtonAppearance.h

+
+ + +
+
+

  backgroundColor

@@ -151,6 +205,144 @@

Discussion

+
+

Declared In

+

ADYButtonAppearance.h

+
+ + +
+
+

+ +

  disabledTextColor +

+ +
+
+ +
+ + +
+

The color of the button’s title in case it’s disabled.

+
+ + + +
@property (nonatomic, strong, readwrite) UIColor *disabledTextColor
+ + + + + + + + + +
+

Discussion

+

The color of the button’s title in case it’s disabled.

+
+ + + + + + + +
+

Declared In

+

ADYButtonAppearance.h

+
+ + +
+
+
+ +

  disabledBackgroundColor +

+ +
+
+ +
+ + +
+

The background color of the button in case it’s disabled.

+
+ + + +
@property (nonatomic, strong, readwrite) UIColor *disabledBackgroundColor
+ + + + + + + + + +
+

Discussion

+

The background color of the button in case it’s disabled.

+
+ + + + + + + +
+

Declared In

+

ADYButtonAppearance.h

+
+ + +
+
+
+ +

  highlightedBackgroundColor +

+ +
+
+ +
+ + +
+

The background color of hte button in case it’s highlighted, or nil when the default color should be darkened.

+
+ + + +
@property (nonatomic, strong, readwrite, nullable) UIColor *highlightedBackgroundColor
+ + + + + + + + + +
+

Discussion

+

The background color of hte button in case it’s highlighted, or nil when the default color should be darkened.

+
+ + + + + + +

Declared In

ADYButtonAppearance.h

@@ -213,15 +405,17 @@

Declared In

+ + diff --git a/Docs/Classes/ADYChallengeParameters.html b/Docs/Classes/ADYChallengeParameters.html index bb37c9ef..42105a88 100644 --- a/Docs/Classes/ADYChallengeParameters.html +++ b/Docs/Classes/ADYChallengeParameters.html @@ -7,7 +7,7 @@ - +
@@ -393,15 +393,17 @@

Declared In

+ + diff --git a/Docs/Classes/ADYChallengeCompletion.html b/Docs/Classes/ADYChallengeResult.html similarity index 90% rename from Docs/Classes/ADYChallengeCompletion.html rename to Docs/Classes/ADYChallengeResult.html index 4d5f6bd6..cea30a80 100644 --- a/Docs/Classes/ADYChallengeCompletion.html +++ b/Docs/Classes/ADYChallengeResult.html @@ -3,11 +3,11 @@ - ADYChallengeCompletion Class Reference + ADYChallengeResult Class Reference - +
@@ -79,7 +79,7 @@

-

ADYChallengeCompletion Class Reference

+

ADYChallengeResult Class Reference

@@ -88,7 +88,7 @@

ADYChallengeCompletion Class Reference

- +
NSObject
Declared inADYChallengeCompletion.hADYChallengeResult.h
@@ -153,7 +153,7 @@

Discussion

Declared In

-

ADYChallengeCompletion.h

+

ADYChallengeResult.h

@@ -199,7 +199,7 @@

Discussion

Declared In

-

ADYChallengeCompletion.h

+

ADYChallengeResult.h

@@ -213,15 +213,17 @@

Declared In

+ +
diff --git a/Docs/Classes/ADYInfoAppearance.html b/Docs/Classes/ADYInfoAppearance.html new file mode 100644 index 00000000..52645afc --- /dev/null +++ b/Docs/Classes/ADYInfoAppearance.html @@ -0,0 +1,332 @@ + + + + + + ADYInfoAppearance Class Reference + + + + + + +
+
+ +

+ Adyen3DS2 +

+ +

+ Adyen +

+ +
+
+ + + +
+
+
+
+

ADYInfoAppearance Class Reference

+ + +
+ + + + + + + +
Inherits fromADYAppearance : NSObject
Declared inADYInfoAppearance.h
+ + + + +
+ +

Overview

+

Contains properties to customize the appearance of info items.

+
+ + + + + +
+ + + + + + +
+
+ +

  headingFont +

+ +
+
+ +
+ + +
+

The font in which heading text is displayed.

+
+ + + +
@property (nonatomic, strong, readwrite) UIFont *headingFont
+ + + + + + + + + +
+

Discussion

+

The font in which heading text is displayed.

+
+ + + + + + + +
+

Declared In

+

ADYInfoAppearance.h

+
+ + +
+
+
+ +

  headingTextColor +

+ +
+
+ +
+ + +
+

The color in which heading text is displayed.

+
+ + + +
@property (nonatomic, strong, readwrite) UIColor *headingTextColor
+ + + + + + + + + +
+

Discussion

+

The color in which heading text is displayed.

+
+ + + + + + + +
+

Declared In

+

ADYInfoAppearance.h

+
+ + +
+
+
+ +

  selectionIndicatorTintColor +

+ +
+
+ +
+ + +
+

The tint color of the item’s selection indicator (the chevron).

+
+ + + +
@property (nonatomic, strong, readwrite) UIColor *selectionIndicatorTintColor
+ + + + + + + + + +
+

Discussion

+

The tint color of the item’s selection indicator (the chevron).

+
+ + + + + + + +
+

Declared In

+

ADYInfoAppearance.h

+
+ + +
+
+
+ +

  borderColor +

+ +
+
+ +
+ + +
+

The color of the info item’s border.

+
+ + + +
@property (nonatomic, strong, readwrite) UIColor *borderColor
+ + + + + + + + + +
+

Discussion

+

The color of the info item’s border.

+
+ + + + + + + +
+

Declared In

+

ADYInfoAppearance.h

+
+ + +
+
+
+
+ +
+ + + + + + +
+ + +
+
+
+ + + + \ No newline at end of file diff --git a/Docs/Classes/ADYLabelAppearance.html b/Docs/Classes/ADYLabelAppearance.html index 058f2a3f..00563a7f 100644 --- a/Docs/Classes/ADYLabelAppearance.html +++ b/Docs/Classes/ADYLabelAppearance.html @@ -7,7 +7,7 @@ - +
@@ -56,10 +56,16 @@

+ + + + + + @@ -197,6 +203,144 @@

Discussion

+
+

Declared In

+

ADYLabelAppearance.h

+
+ + +
+
+

+ +

  subheadingFont +

+ +
+
+ +
+ + +
+

The font in which subheading text is displayed.

+
+ + + +
@property (nonatomic, strong, readwrite) UIFont *subheadingFont
+ + + + + + + + + +
+

Discussion

+

The font in which subheading text is displayed.

+
+ + + + + + + +
+

Declared In

+

ADYLabelAppearance.h

+
+ + +
+
+
+ +

  subheadingTextColor +

+ +
+
+ +
+ + +
+

The color in which subheading text is displayed.

+
+ + + +
@property (nonatomic, strong, readwrite) UIColor *subheadingTextColor
+ + + + + + + + + +
+

Discussion

+

The color in which subheading text is displayed.

+
+ + + + + + + +
+

Declared In

+

ADYLabelAppearance.h

+
+ + +
+
+
+ +

  errorTextColor +

+ +
+
+ +
+ + +
+

The color in which error text is displayed.

+
+ + + +
@property (nonatomic, strong, readwrite) UIColor *errorTextColor
+ + + + + + + + + +
+

Discussion

+

The color in which error text is displayed.

+
+ + + + + + +

Declared In

ADYLabelAppearance.h

@@ -213,15 +357,17 @@

Declared In

+ + diff --git a/Docs/Classes/ADYNavigationBarAppearance.html b/Docs/Classes/ADYNavigationBarAppearance.html index 36e7af52..27fcf663 100644 --- a/Docs/Classes/ADYNavigationBarAppearance.html +++ b/Docs/Classes/ADYNavigationBarAppearance.html @@ -7,7 +7,7 @@ - +
@@ -58,6 +58,10 @@

+ + + + @@ -112,6 +116,98 @@

Overview

+ +

  title +

+ +
+
+ +
+ + +
+

The title of the navigation bar.

+
+ + + +
@property (nonatomic, copy, readwrite, nullable) NSString *title
+ + + + + + + + + +
+

Discussion

+

The title of the navigation bar.

+
+ + + + + + + +
+

Declared In

+

ADYNavigationBarAppearance.h

+
+ + +
+
+
+ +

  cancelButtonTitle +

+ +
+
+ +
+ + +
+

The title of the cancel button in the navigation bar, or nil to leave it at the default system localized cancel button title.

+
+ + + +
@property (nonatomic, copy, readwrite, nullable) NSString *cancelButtonTitle
+ + + + + + + + + +
+

Discussion

+

The title of the cancel button in the navigation bar, or nil to leave it at the default system localized cancel button title.

+
+ + + + + + + +
+

Declared In

+

ADYNavigationBarAppearance.h

+
+ + +
+
+

  backgroundColor

@@ -128,7 +224,7 @@

   -
@property (nonatomic, strong, readwrite) UIColor *backgroundColor
+
@property (nonatomic, strong, readwrite, nullable) UIColor *backgroundColor
@@ -165,15 +261,17 @@

Declared In

+ +
diff --git a/Docs/Classes/ADYProgressView.html b/Docs/Classes/ADYProgressView.html index 437982a5..583f72d3 100644 --- a/Docs/Classes/ADYProgressView.html +++ b/Docs/Classes/ADYProgressView.html @@ -7,7 +7,7 @@ - +
@@ -265,15 +265,17 @@

Declared In

+ + diff --git a/Docs/Classes/ADYSelectAppearance.html b/Docs/Classes/ADYSelectAppearance.html new file mode 100644 index 00000000..71cbfd94 --- /dev/null +++ b/Docs/Classes/ADYSelectAppearance.html @@ -0,0 +1,284 @@ + + + + + + ADYSelectAppearance Class Reference + + + + + + +
+
+ +

+ Adyen3DS2 +

+ +

+ Adyen +

+ +
+
+ + + +
+
+
+
+

ADYSelectAppearance Class Reference

+ + +
+ + + + + + + +
Inherits fromADYAppearance : NSObject
Declared inADYSelectAppearance.h
+ + + + +
+ +

Overview

+

Contains properties to customize the appearance of select controls.

+
+ + + + + +
+ + + + + + +
+
+ +

  borderColor +

+ +
+
+ +
+ + +
+

The color of the select control’s borders.

+
+ + + +
@property (nonatomic, strong, readwrite) UIColor *borderColor
+ + + + + + + + + +
+

Discussion

+

The color of the select control’s borders.

+
+ + + + + + + +
+

Declared In

+

ADYSelectAppearance.h

+
+ + +
+
+
+ +

  highlightedBackgroundColor +

+ +
+
+ +
+ + +
+

The color of a select control item’s background when it’s highlighted.

+
+ + + +
@property (nonatomic, strong, readwrite) UIColor *highlightedBackgroundColor
+ + + + + + + + + +
+

Discussion

+

The color of a select control item’s background when it’s highlighted.

+
+ + + + + + + +
+

Declared In

+

ADYSelectAppearance.h

+
+ + +
+
+
+ +

  selectionIndicatorTintColor +

+ +
+
+ +
+ + +
+

The tint color of the select control item’s selection indicator.

+
+ + + +
@property (nonatomic, strong, readwrite) UIColor *selectionIndicatorTintColor
+ + + + + + + + + +
+

Discussion

+

The tint color of the select control item’s selection indicator.

+
+ + + + + + + +
+

Declared In

+

ADYSelectAppearance.h

+
+ + +
+
+
+
+ +
+ + + + + + +
+ + +
+
+
+ + + + \ No newline at end of file diff --git a/Docs/Classes/ADYService.html b/Docs/Classes/ADYService.html index 895f4267..ac23f212 100644 --- a/Docs/Classes/ADYService.html +++ b/Docs/Classes/ADYService.html @@ -7,7 +7,7 @@ - +
@@ -58,7 +58,7 @@

- + @@ -70,7 +70,7 @@

- + @@ -124,8 +124,8 @@

Overview

- -

– createTransactionWithDirectoryServerIdentifier:protocolVersion:error: + +

– createTransactionWithDirectoryServerIdentifier:messageVersion:error:

+
- (nullable ADYTransaction *)createTransactionWithDirectoryServerIdentifier:(nullable NSString *)directoryServerIdentifier messageVersion:(nullable NSString *)messageVersion error:(NSError *__nullable *__nullable)error
@@ -355,8 +355,8 @@

Parameters

- protocolVersion -

The version of the protocol to be used during the transaction, or nil to use the latest supported version.

+ messageVersion +

The version of the protocol to be used during the transaction, or nil to use the latest supported version.

@@ -405,15 +405,17 @@

Declared In

+ + diff --git a/Docs/Classes/ADYServiceParameters.html b/Docs/Classes/ADYServiceParameters.html index d6c2d6cf..e4bf89e2 100644 --- a/Docs/Classes/ADYServiceParameters.html +++ b/Docs/Classes/ADYServiceParameters.html @@ -7,7 +7,7 @@ - +
@@ -54,14 +54,20 @@

+ + + + + + + + - - @@ -108,12 +114,7 @@

ADYServiceParameters Class Reference

Overview

-

A collection of arbitrary parameters used during the initialization of the ADYService class.

Note: The following parameters are required for the usage of the SDK: -

-- threeDS2DirectoryServerInformation (group):
-    - directoryServerId
-    - publicKey
-

Note: This class corresponds to the ConfigParameters class in the specification.

+

A collection of arbitrary parameters used during the initialization of the ADYService class.

Note: This class corresponds to the ConfigParameters class in the specification.

@@ -129,8 +130,8 @@

Overview

- -

– initWithAdditionalData: + +

  directoryServerIdentifier

+ +

  directoryServerPublicKey +

+ +
+
+ +
+ + +
+

The public key of the directory server to use during the transaction creation phase.

+ + +
@property (nonatomic, copy, readwrite, nullable) NSString *directoryServerPublicKey
+ + + + +

Discussion

-

Initializes the service parameters with the additional data retrieved from the initial PaymentRequest to Adyen. -This is a convenience initializer used to fill the service parameters with the required parameters. It will iterate of the passed additional data and copy the contents of all the keys that start with threeds2.. -Usage of this initializer is optional.

+

The public key of the directory server to use during the transaction creation phase.

+ +

The value of this property should be a base64-encoded JSON Web Key.

+ +

Usage of this property is optional.

@@ -586,15 +618,17 @@

Declared In

+ + diff --git a/Docs/Classes/ADYTextFieldAppearance.html b/Docs/Classes/ADYTextFieldAppearance.html index c91eeef4..5d121649 100644 --- a/Docs/Classes/ADYTextFieldAppearance.html +++ b/Docs/Classes/ADYTextFieldAppearance.html @@ -7,7 +7,7 @@ - +
@@ -62,6 +62,8 @@

+ + @@ -245,6 +247,52 @@

Discussion

+
+

Declared In

+

ADYTextFieldAppearance.h

+
+ + +
+
+
+ +

  keyboardAppearance +

+ +
+
+ +
+ + +
+

The appearance of the keyboard when the text field is used.

+
+ + + +
@property (nonatomic, assign, readwrite) UIKeyboardAppearance keyboardAppearance
+ + + + + + + + + +
+

Discussion

+

The appearance of the keyboard when the text field is used.

+
+ + + + + + +

Declared In

ADYTextFieldAppearance.h

@@ -261,15 +309,17 @@

Declared In

+ + diff --git a/Docs/Classes/ADYTransaction.html b/Docs/Classes/ADYTransaction.html index 095d9d16..3d0acc26 100644 --- a/Docs/Classes/ADYTransaction.html +++ b/Docs/Classes/ADYTransaction.html @@ -7,7 +7,7 @@ - +
@@ -70,8 +70,14 @@

+ + + + + + @@ -205,6 +211,69 @@

Discussion

+
+

Declared In

+

ADYTransaction.h

+
+ + +
+
+
+ +

– performChallengeWithParameters:delegate: +

+ +
+
+ +
+ + +
+

Starts the challenge flow for the transaction.

+
+ + + +
- (void)performChallengeWithParameters:(ADYChallengeParameters *)challengeParameters delegate:(id<ADYChallengeDelegate>)delegate
+ + + +
+

Parameters

+ + + + + + + + + + + + +
challengeParameters

The challenge parameters received from the 3DS Server.

delegate

The delegate to inform of the result of the challenge.

+
+ + + + + + + +
+

Discussion

+

Starts the challenge flow for the transaction.

+
+ + + + + + + +
- (void)performChallengeWithParameters:(ADYChallengeParameters *)challengeParameters delegate:(id<ADYChallengeDelegate>)delegate timeout:(NSTimeInterval)timeout
@@ -273,6 +342,137 @@

Discussion

+
+

Declared In

+

ADYTransaction.h

+
+ + +
+
+
+ +

– performChallengeWithParameters:completionHandler: +

+ +
+
+ +
+ + +
+

Starts the challenge flow for the transaction.

+
+ + + +
- (void)performChallengeWithParameters:(ADYChallengeParameters *)challengeParameters completionHandler:(ADYChallengeCompletionHandler)completionHandler
+ + + +
+

Parameters

+ + + + + + + + + + + + +
challengeParameters

The challenge parameters received from the 3DS server.

completionHandler

The completion handler to invoke when the challenge flow is finished.

+
+ + + + + + + +
+

Discussion

+

Starts the challenge flow for the transaction.

+
+ + + + + + + +
+

Declared In

+

ADYTransaction.h

+
+ + +
+
+
+ +

– performChallengeWithParameters:timeout:completionHandler: +

+ +
+
+ +
+ + +
+

Starts the challenge flow for the transaction.

+
+ + + +
- (void)performChallengeWithParameters:(ADYChallengeParameters *)challengeParameters timeout:(NSTimeInterval)timeout completionHandler:(ADYChallengeCompletionHandler)completionHandler
+ + + +
+

Parameters

+ + + + + + + + + + + + + + + + + +
challengeParameters

The challenge parameters received from the 3DS server.

timeout

The timeout interval in seconds in which the challenge process should be completed. Should be at least 300 seconds.

completionHandler

The completion handler to invoke when the challenge flow is finished.

+
+ + + + + + + +
+

Discussion

+

Starts the challenge flow for the transaction.

+
+ + + + + + +

Declared In

ADYTransaction.h

@@ -335,15 +535,17 @@

Declared In

+ + diff --git a/Docs/Classes/ADYWarning.html b/Docs/Classes/ADYWarning.html index 37faf73e..25da31a6 100644 --- a/Docs/Classes/ADYWarning.html +++ b/Docs/Classes/ADYWarning.html @@ -7,7 +7,7 @@ - +
@@ -261,15 +261,17 @@

Declared In

+ + diff --git a/Docs/Constants/ADYAppearanceButtonType.html b/Docs/Constants/ADYAppearanceButtonType.html new file mode 100644 index 00000000..085e8a96 --- /dev/null +++ b/Docs/Constants/ADYAppearanceButtonType.html @@ -0,0 +1,232 @@ + + + + + + ADYAppearanceButtonType Constants Reference + + + + + + +
+
+ +

+ Adyen3DS2 +

+ +

+ Adyen +

+ +
+
+ + + +
+
+
+
+

ADYAppearanceButtonType Constants Reference

+ + +
+ + + + +
Declared inADYAppearanceConfiguration.h
+ + + + + + + +

ADYAppearanceButtonType

+ + +
+

An enum describing the different button types.

+
+ + +
+ + +

Definition

+ typedef NS_ENUM(NSUInteger, ADYAppearanceButtonType ) {
+ +    ADYAppearanceButtonTypeSubmit,
+ +    ADYAppearanceButtonTypeContinue,
+ +    ADYAppearanceButtonTypeNext,
+ +    ADYAppearanceButtonTypeCancel,
+ +    ADYAppearanceButtonTypeResend,
+ + };
+ +
+ +
+

Constants

+
+ +
ADYAppearanceButtonTypeSubmit
+
+ + +

Indicates the submit button.

+ + + + + + +

+ Declared In ADYAppearanceConfiguration.h. +

+ +
+ +
ADYAppearanceButtonTypeContinue
+
+ + +

Indicates the continue button.

+ + + + + + +

+ Declared In ADYAppearanceConfiguration.h. +

+ +
+ +
ADYAppearanceButtonTypeNext
+
+ + +

Indicates the next button.

+ + + + + + +

+ Declared In ADYAppearanceConfiguration.h. +

+ +
+ +
ADYAppearanceButtonTypeCancel
+
+ + +

Indicates the cancel button.

+ + + + + + +

+ Declared In ADYAppearanceConfiguration.h. +

+ +
+ +
ADYAppearanceButtonTypeResend
+
+ + +

Indicates the resend button.

+ + + + + + +

+ Declared In ADYAppearanceConfiguration.h. +

+ +
+ +
+
+ + + + + + + + +
+

Declared In

+

ADYAppearanceConfiguration.h

+
+ + + + + +
+ + +
+
+
+ + + + \ No newline at end of file diff --git a/Docs/Constants/ADYButtonAppearanceTextTransform.html b/Docs/Constants/ADYButtonAppearanceTextTransform.html new file mode 100644 index 00000000..407aa867 --- /dev/null +++ b/Docs/Constants/ADYButtonAppearanceTextTransform.html @@ -0,0 +1,194 @@ + + + + + + ADYButtonAppearanceTextTransform Constants Reference + + + + + + +
+
+ +

+ Adyen3DS2 +

+ +

+ Adyen +

+ +
+
+ + + +
+
+
+
+

ADYButtonAppearanceTextTransform Constants Reference

+ + +
+ + + + +
Declared inADYButtonAppearance.h
+ + + + + + + +

ADYButtonAppearanceTextTransform

+ + +
+

The type of transform to apply to the button’s text.

+
+ + +
+ + +

Definition

+ typedef NS_ENUM(NSUInteger, ADYButtonAppearanceTextTransform ) {
+ +    ADYButtonAppearanceTextTransformNone,
+ +    ADYButtonAppearanceTextTransformUppercase,
+ +    ADYButtonAppearanceTextTransformLowercase,
+ + };
+ +
+ +
+

Constants

+
+ +
ADYButtonAppearanceTextTransformNone
+
+ + +

Indicates the text should not be transformed.

+ + + + + + +

+ Declared In ADYButtonAppearance.h. +

+ +
+ +
ADYButtonAppearanceTextTransformUppercase
+
+ + +

Indicates the text should be uppercased.

+ + + + + + +

+ Declared In ADYButtonAppearance.h. +

+ +
+ +
ADYButtonAppearanceTextTransformLowercase
+
+ + +

Indicates the text should be lowercased.

+ + + + + + +

+ Declared In ADYButtonAppearance.h. +

+ +
+ +
+
+ + + + + + + + +
+

Declared In

+

ADYButtonAppearance.h

+
+ + + + + +
+ + +
+
+
+ + + + \ No newline at end of file diff --git a/Docs/Constants/ADYRuntimeErrorCode.html b/Docs/Constants/ADYRuntimeErrorCode.html index 358c8bba..4b487790 100644 --- a/Docs/Constants/ADYRuntimeErrorCode.html +++ b/Docs/Constants/ADYRuntimeErrorCode.html @@ -7,7 +7,7 @@ - +
@@ -228,15 +228,17 @@

Declared In

+ + diff --git a/Docs/Constants/ADYWarningSeverity.html b/Docs/Constants/ADYWarningSeverity.html index d7e90e2a..0835bcb5 100644 --- a/Docs/Constants/ADYWarningSeverity.html +++ b/Docs/Constants/ADYWarningSeverity.html @@ -7,7 +7,7 @@ - +
@@ -171,15 +171,17 @@

Declared In

+ + diff --git a/Docs/Protocols/ADYChallengeStatusDelegate.html b/Docs/Protocols/ADYChallengeDelegate.html similarity index 83% rename from Docs/Protocols/ADYChallengeStatusDelegate.html rename to Docs/Protocols/ADYChallengeDelegate.html index b6af7045..556b07e8 100644 --- a/Docs/Protocols/ADYChallengeStatusDelegate.html +++ b/Docs/Protocols/ADYChallengeDelegate.html @@ -3,11 +3,11 @@ - ADYChallengeStatusDelegate Protocol Reference + ADYChallengeDelegate Protocol Reference - +
@@ -62,7 +62,7 @@

- + @@ -79,7 +79,7 @@

-

ADYChallengeStatusDelegate Protocol Reference

+

ADYChallengeDelegate Protocol Reference

@@ -88,7 +88,7 @@

ADYChallengeStatusDelegate Protocol Reference

- +
NSObject
Declared inADYChallengeStatusDelegate.hADYChallengeDelegate.h
@@ -114,8 +114,8 @@

Overview

diff --git a/Docs/css/scss/_index.scss b/Docs/css/scss/_index.scss index 7e98029d..6a57ec5d 100644 --- a/Docs/css/scss/_index.scss +++ b/Docs/css/scss/_index.scss @@ -1,13 +1,17 @@ .index-container { - display: flex; - flex-direction: row; - flex-wrap: wrap; + -webkit-flex-direction: column; + flex-direction: column; - @media (max-width: $mobile-max-width) { - flex-direction: column; + @media (min-width: $desktop-min-width) { + display: flex; + -webkit-flex-direction: row; + flex-direction: row; + -webkit-flex-wrap: wrap; + flex-wrap: wrap; } .index-column { + -webkit-flex: 1 1 33%; flex: 1 1 33%; } } diff --git a/Docs/css/scss/_layout.scss b/Docs/css/scss/_layout.scss index 40bd6d4a..da46aef0 100644 --- a/Docs/css/scss/_layout.scss +++ b/Docs/css/scss/_layout.scss @@ -21,6 +21,10 @@ body { font: 62.5% $body-font; background: $body-background; + + @media (max-width: $mobile-max-width) { + background-color: $content-background; + } } h1, h2, h3 { @@ -139,8 +143,6 @@ header { } @media (max-width: $mobile-max-width) { - position: absolute; - .container { padding: 0 10px; } @@ -157,10 +159,6 @@ aside { font-size: 1.1em; - @media (max-width: $mobile-max-width) { - position: absolute; - } - #header-buttons { background: rgba(255, 255, 255, .8); margin: 0 1px; @@ -237,6 +235,7 @@ article { @media (max-width: $mobile-max-width) { padding: 15px 10px 20px 10px; + border: none; } .navigation-top { diff --git a/Docs/css/scss/_variables.scss b/Docs/css/scss/_variables.scss index cbaff3cf..38e072d3 100644 --- a/Docs/css/scss/_variables.scss +++ b/Docs/css/scss/_variables.scss @@ -9,3 +9,4 @@ $object-background: #f9f9f9; $object-border: #e9e9e9; $mobile-max-width: 650px; +$desktop-min-width: 768px; \ No newline at end of file diff --git a/Docs/css/style.css b/Docs/css/style.css index 2e0648e3..d9d59dd0 100644 --- a/Docs/css/style.css +++ b/Docs/css/style.css @@ -1,2 +1,2 @@ -html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{box-sizing:border-box}.clear{clear:both}.clearfix:before,.container:before,article #content:before,article #content footer:before,.clearfix:after,.container:after,article #content:after,article #content footer:after{clear:both;display:table;content:""}.xcode .hide-in-xcode{display:none}body{font:62.5% -apple-system-font,"Helvetica Neue",Helvetica,sans-serif;background:#f2f2f2}h1,h2,h3{font-weight:300;color:gray}h1{font-size:2em;color:#000}h4{font-size:13px;line-height:1.5;margin:21px 0 0}a{color:#08c;text-decoration:none}pre,code{font-family:Source Code Pro,Monaco,Menlo,Consolas,monospace;word-wrap:break-word}pre>code,.method-declaration code{display:inline-block;font-size:.85em;padding:4px 0 4px 10px;border-left:5px solid rgba(0,155,51,.2)}pre>code:before,.method-declaration code:before{content:"Objective-C";display:block;font:9px/1 -apple-system-font,"Helvetica Neue",Helvetica,sans-serif;color:#009b33;text-transform:uppercase;letter-spacing:2px;padding-bottom:6px}pre>code{font-size:inherit}table,th,td{border:1px solid #e9e9e9}table{width:100%}th,td{padding:7px}th>:first-child,td>:first-child{margin-top:0}th>:last-child,td>:last-child{margin-bottom:0}.container{max-width:980px;padding:0 10px;margin:0 auto}@media(max-width:650px){.container{padding:0}}header{position:fixed;top:0;left:0;width:100%;z-index:2;background:#414141;color:#fff;font-size:1.1em;line-height:25px;letter-spacing:.05em}header #library-title{float:left}header #developer-home{float:right}header h1{font-size:inherit;font-weight:inherit;margin:0}header p{margin:0}header h1,header a{color:inherit}@media(max-width:650px){header{position:absolute}header .container{padding:0 10px}}aside{position:fixed;top:25px;left:0;width:100%;height:25px;z-index:2;font-size:1.1em}aside #header-buttons{background:rgba(255,255,255,.8);margin:0 1px;padding:0;list-style:none;text-align:right;line-height:32px}aside #header-buttons li{display:inline-block;cursor:pointer;padding:0 10px}aside #header-buttons label,aside #header-buttons select{cursor:inherit}aside #header-buttons #on-this-page{position:relative}aside #header-buttons #on-this-page .chevron{display:inline-block;width:14px;height:4px;position:relative}aside #header-buttons #on-this-page .chevron .chevy{background:#878787;height:2px;position:absolute;width:10px}aside #header-buttons #on-this-page .chevron .chevy.chevron-left{left:0;-webkit-transform:rotateZ(45deg) scale(.6);transform:rotateZ(45deg) scale(.6)}aside #header-buttons #on-this-page .chevron .chevy.chevron-right{right:0;-webkit-transform:rotateZ(-45deg) scale(.6);transform:rotateZ(-45deg) scale(.6)}aside #header-buttons #on-this-page #jump-to{opacity:0;filter:alpha(opacity=0);font-size:16px;position:absolute;top:5px;left:0;width:100%;height:100%}article{margin-top:25px}article #content{background:#fff;border:1px solid #e9e9e9;padding:15px 25px 30px;font-size:1.4em;line-height:1.45;position:relative}@media(max-width:650px){article #content{padding:15px 10px 20px}}article #content .navigation-top{position:absolute;top:15px;right:25px}article #content .title{margin:21px 0 0;padding:15px 0}article #content p{color:#414141;margin:0 0 15px}article #content th p:last-child,article #content td p:last-child{margin-bottom:0}article #content main ul{list-style:none;margin-left:24px;margin-bottom:12px;padding:0}article #content main ul li{position:relative;padding-left:1.3em}article #content main ul li:before{content:"\02022";color:#414141;font-size:1.08em;line-height:1;position:absolute;left:0;padding-top:2px}article #content footer .footer-copyright{margin:70px 25px 10px 0}article #content footer p{font-size:.71em;color:#a0a0a0}.index-container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}@media(max-width:650px){.index-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}}.index-container .index-column{-webkit-box-flex:1;-webkit-flex:1 1 33%;-ms-flex:1 1 33%;flex:1 1 33%}.section-specification table{width:auto}.section-specification table th{text-align:left}.method-title{margin-left:-15px;margin-bottom:8px;-webkit-transition:margin-left .3s ease-out;transition:margin-left .3s ease-out}.section-method.hide .method-title{margin-left:0}.method-title code{font-weight:400;font-size:.85em}.method-info{background:#f9f9f9;border-bottom:1px solid #e9e9e9;margin:0 -25px;padding:20px 25px 0;-webkit-transition:height .3s ease-out;transition:height .3s ease-out;position:relative}.method-info .pointy-thing{background:#fff;height:10px;border-bottom:1px solid #e9e9e9;margin:-20px -25px 16px}.method-info .pointy-thing:before{display:inline-block;content:"";background:#f9f9f9;border:1px solid #e9e9e9;border-bottom:0;border-right:0;position:absolute;left:21px;top:3px;width:12px;height:12px;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.method-info .method-subsection{margin-bottom:15px}.method-info .method-subsection .argument-name{width:1px;text-align:right}.method-info .method-subsection .argument-name code{color:gray;font-style:italic;font-weight:400}.section-method.hide .method-info{height:0!important;overflow:hidden;display:none}.section-method.hide.animating .method-info{display:block}.section-method.animating .method-info{overflow:hidden}@media print{body{background:#fff;padding:8px}header{position:static;background:#fff;color:#000}aside{display:none}.container{max-width:none;padding:0}article{margin-top:0}article #content{border:0;background:#fff;padding:15px 0 0}article #content .title{margin-top:0;padding-top:0}.method-info,.method-info .pointy-thing{background:#fff}}.xcode header,.xcode aside{display:none}.xcode .container{padding:0}.xcode article{margin-top:0}.xcode article #content{border:0;margin:0}.xcode .section-method.hide .method-info,.xcode .section-method.hide.animating .method-info,.xcode .section-method.animating .method-info{height:auto!important;overflow:visible;display:block}.xcode .section-method.hide .method-title{margin-left:-15px} -/*# sourceMappingURL=to.css.map */ \ No newline at end of file +html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{box-sizing:border-box}.clear{clear:both}.clearfix:before,.container:before,article #content:before,article #content footer:before,.clearfix:after,.container:after,article #content:after,article #content footer:after{clear:both;display:table;content:""}.xcode .hide-in-xcode{display:none}body{font:62.5% -apple-system-font,"Helvetica Neue",Helvetica,sans-serif;background:#f2f2f2}@media (max-width: 650px){body{background-color:#fff}}h1,h2,h3{font-weight:300;color:#808080}h1{font-size:2em;color:#000}h4{font-size:13px;line-height:1.5;margin:21px 0 0 0}a{color:#08c;text-decoration:none}pre,code{font-family:"Source Code Pro",Monaco,Menlo,Consolas,monospace;word-wrap:break-word}pre>code,.method-declaration code{display:inline-block;font-size:.85em;padding:4px 0 4px 10px;border-left:5px solid rgba(0,155,51,0.2)}pre>code:before,.method-declaration code:before{content:"Objective-C";display:block;font:9px/1 -apple-system-font,"Helvetica Neue",Helvetica,sans-serif;color:#009b33;text-transform:uppercase;letter-spacing:2px;padding-bottom:6px}pre>code{font-size:inherit}table,th,td{border:1px solid #e9e9e9}table{width:100%}th,td{padding:7px}th>:first-child,td>:first-child{margin-top:0}th>:last-child,td>:last-child{margin-bottom:0}.container{max-width:980px;padding:0 10px;margin:0 auto}@media (max-width: 650px){.container{padding:0}}header{position:fixed;top:0;left:0;width:100%;z-index:2;background:#414141;color:#fff;font-size:1.1em;line-height:25px;letter-spacing:.05em}header #library-title{float:left}header #developer-home{float:right}header h1{font-size:inherit;font-weight:inherit;margin:0}header p{margin:0}header h1,header a{color:inherit}@media (max-width: 650px){header .container{padding:0 10px}}aside{position:fixed;top:25px;left:0;width:100%;height:25px;z-index:2;font-size:1.1em}aside #header-buttons{background:rgba(255,255,255,0.8);margin:0 1px;padding:0;list-style:none;text-align:right;line-height:32px}aside #header-buttons li{display:inline-block;cursor:pointer;padding:0 10px}aside #header-buttons label,aside #header-buttons select{cursor:inherit}aside #header-buttons #on-this-page{position:relative}aside #header-buttons #on-this-page .chevron{display:inline-block;width:14px;height:4px;position:relative}aside #header-buttons #on-this-page .chevron .chevy{background:#878787;height:2px;position:absolute;width:10px}aside #header-buttons #on-this-page .chevron .chevy.chevron-left{left:0;transform:rotateZ(45deg) scale(0.6)}aside #header-buttons #on-this-page .chevron .chevy.chevron-right{right:0;transform:rotateZ(-45deg) scale(0.6)}aside #header-buttons #on-this-page #jump-to{opacity:0;font-size:16px;position:absolute;top:5px;left:0;width:100%;height:100%}article{margin-top:25px}article #content{background:#fff;border:1px solid #e9e9e9;padding:15px 25px 30px 25px;font-size:1.4em;line-height:1.45;position:relative}@media (max-width: 650px){article #content{padding:15px 10px 20px 10px;border:none}}article #content .navigation-top{position:absolute;top:15px;right:25px}article #content .title{margin:21px 0 0 0;padding:15px 0}article #content p{color:#414141;margin:0 0 15px 0}article #content th p:last-child,article #content td p:last-child{margin-bottom:0}article #content main ul{list-style:none;margin-left:24px;margin-bottom:12px;padding:0}article #content main ul li{position:relative;padding-left:1.3em}article #content main ul li:before{content:"\02022";color:#414141;font-size:1.08em;line-height:1;position:absolute;left:0;padding-top:2px}article #content footer .footer-copyright{margin:70px 25px 10px 0}article #content footer p{font-size:.71em;color:#a0a0a0}.index-container{-webkit-flex-direction:column;flex-direction:column}@media (min-width: 768px){.index-container{display:flex;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap}}.index-container .index-column{-webkit-flex:1 1 33%;flex:1 1 33%}.section-specification table{width:auto}.section-specification table th{text-align:left}.method-title{margin-left:-15px;margin-bottom:8px;transition:margin-left .3s ease-out}.section-method.hide .method-title{margin-left:0}.method-title code{font-weight:400;font-size:.85em}.method-info{background:#f9f9f9;border-bottom:1px solid #e9e9e9;margin:0 -25px;padding:20px 25px 0 25px;transition:height .3s ease-out;position:relative}.method-info .pointy-thing{background:#fff;height:10px;border-bottom:1px solid #e9e9e9;margin:-20px -25px 16px -25px}.method-info .pointy-thing:before{display:inline-block;content:"";background:#f9f9f9;border:1px solid #e9e9e9;border-bottom:0;border-right:0;position:absolute;left:21px;top:3px;width:12px;height:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg) }.method-info .method-subsection{margin-bottom:15px}.method-info .method-subsection .argument-name{width:1px;text-align:right}.method-info .method-subsection .argument-name code{color:#808080;font-style:italic;font-weight:400}.section-method.hide .method-info{height:0 !important;overflow:hidden;display:none}.section-method.hide.animating .method-info{display:block}.section-method.animating .method-info{overflow:hidden}@media print{body{background:#fff;padding:8px}header{position:static;background:#fff;color:#000}aside{display:none}.container{max-width:none;padding:0}article{margin-top:0}article #content{border:0;background:#fff;padding:15px 0 0 0}article #content .title{margin-top:0;padding-top:0}.method-info,.method-info .pointy-thing{background:#fff}}.xcode header,.xcode aside{display:none}.xcode .container{padding:0}.xcode article{margin-top:0}.xcode article #content{border:0;margin:0}.xcode .method-info,.section-method.hide .xcode .method-info{max-height:auto;overflow:visible}.xcode .method-info.hiding,.section-method.hide .xcode .method-info.hiding{display:block} + diff --git a/Docs/hierarchy.html b/Docs/hierarchy.html index 6892e5d5..86cfb8d8 100644 --- a/Docs/hierarchy.html +++ b/Docs/hierarchy.html @@ -7,7 +7,7 @@ - +
@@ -54,10 +54,14 @@

Class Hierarchy

  • ADYButtonAppearance
  • +
  • ADYInfoAppearance
  • +
  • ADYLabelAppearance
  • ADYNavigationBarAppearance
  • +
  • ADYSelectAppearance
  • +
  • ADYTextFieldAppearance
  • @@ -67,10 +71,10 @@

    Class Hierarchy

  • ADYAuthenticationRequestParameters
  • -
  • ADYChallengeCompletion
  • -
  • ADYChallengeParameters
  • +
  • ADYChallengeResult
  • +
  • ADYService
  • ADYServiceParameters
  • @@ -101,7 +105,7 @@

    Class Hierarchy

    Protocol References

    @@ -109,6 +113,10 @@

    Protocol References

    Constant References

      +
    • ADYAppearanceButtonType
    • + +
    • ADYButtonAppearanceTextTransform
    • +
    • ADYRuntimeErrorCode
    • ADYWarningSeverity
    • @@ -122,10 +130,10 @@

      Constant References

      diff --git a/Docs/index.html b/Docs/index.html index 0c49c038..308b2415 100644 --- a/Docs/index.html +++ b/Docs/index.html @@ -7,7 +7,7 @@ - +
      @@ -58,16 +58,20 @@

      Class References

    • ADYButtonAppearance
    • -
    • ADYChallengeCompletion
    • -
    • ADYChallengeParameters
    • +
    • ADYChallengeResult
    • + +
    • ADYInfoAppearance
    • +
    • ADYLabelAppearance
    • ADYNavigationBarAppearance
    • ADYProgressView
    • +
    • ADYSelectAppearance
    • +
    • ADYService
    • ADYServiceParameters
    • @@ -88,7 +92,7 @@

      Class References

      Protocol References

      @@ -97,6 +101,10 @@

      Protocol References

      Constant References

        +
      • ADYAppearanceButtonType
      • + +
      • ADYButtonAppearanceTextTransform
      • +
      • ADYRuntimeErrorCode
      • ADYWarningSeverity
      • @@ -112,10 +120,10 @@

        Constant References

        diff --git a/Docs/js/script.js b/Docs/js/script.js index ca915ee4..4074361c 100644 --- a/Docs/js/script.js +++ b/Docs/js/script.js @@ -46,10 +46,11 @@ function fixScrollPosition(element) { info.style.height = (infoContainer.clientHeight + 40) + "px"; fixScrollPosition(element); element.classList.toggle("hide"); - + if (element.classList.contains("hide")) { + e.preventDefault(); + } setTimeout(function() { element.classList.remove("animating"); - info.style.height = "auto"; }, 300); }); }); diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..33eb9871 --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright 2018 Adyen + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/README.md b/README.md index 535b2994..591c0793 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,15 @@ _This SDK is currently intended for testing purposes only._ ## Installation +The SDK is available either through [CocoaPods](http://cocoapods.org) or via manual installation. + +### CocoaPods + +1. Add `pod 'Adyen3DS2'` to your `Podfile`. +2. Run `pod install`. + +### Manual + Drag `Adyen3DS2.framework` to the `Embedded Binaries` section in your general target settings. ## Usage @@ -16,8 +25,9 @@ First, create an instance of `ADYServiceParameters` with the additional data ret Then, instantiate an `ADYService` with these parameters. ```objc -NSDictionary *additionalData = ...; // Retrieved from Adyen. -ADYServiceParameters *serviceParameters = [[ADYServiceParameters alloc] initWithAdditionalData:additionalData]; +ADYServiceParameters *serviceParameters = [[ADYServiceParameters alloc] init]; +[serviceParameters setDirectoryServerIdentifier:...]; // Retrieved from the additionalData. +[serviceParameters setDirectoryServerPublicKey:...]; // Retrieved from the additionalData. ADYService *service = [[ADYService alloc] initWithParameters:serviceParameters appearanceConfiguration:nil]; ``` @@ -50,13 +60,13 @@ Use these challenge parameters to perform the challenge with the `transaction` y [transaction performChallengeWithParameters:challengeParameters delegate:self]; ``` -For the `delegate` parameter, pass in an instance that conforms to the `ADYChallengeStatusDelegate` protocol. For this protocol, implement the following methods: +For the `delegate` parameter, pass in an instance that conforms to the `ADYChallengeDelegate` protocol. For this protocol, implement the following methods: ```objc -- (void)challengeDidFinishWithCompletion:(ADYChallengeCompletion *)completion; +- (void)challengeDidFinishWithResult:(ADYChallengeResult *)completion; ``` -This method will be invoked when the challenge is completed successfully. The transaction status can be found in the `completion` object. You'll include this value in your second request to `/authorise3ds2`. +This method will be invoked when the challenge is completed successfully. The transaction status can be found in the `result` object. You'll include this value in your second request to `/authorise3ds2`. ```objc - (void)challengeDidFailWithError:(NSError *)error; @@ -75,9 +85,9 @@ For example, to make the navigation bar and Continue button red: ADYAppearanceConfiguration *appearanceConfiguration = [ADYAppearanceConfiguration new]; [[appearanceConfiguration navigationBarAppearance] setBackgroundColor:[UIColor redColor]]; [[appearanceConfiguration navigationBarAppearance] setTextColor:[UIColor whiteColor]]; -[[appearanceConfiguration continueButtonAppearance] setBackgroundColor:[UIColor redColor]]; -[[appearanceConfiguration continueButtonAppearance] setTextColor:[UIColor whiteColor]]; -[[appearanceConfiguration continueButtonAppearance] setCornerRadius:3.0f]; +[[appearanceConfiguration buttonAppearanceForType:ADYAppearanceButtonTypeContinue] setBackgroundColor:[UIColor redColor]]; +[[appearanceConfiguration buttonAppearanceForType:ADYAppearanceButtonTypeContinue] setTextColor:[UIColor whiteColor]]; +[[appearanceConfiguration buttonAppearanceForType:ADYAppearanceButtonTypeContinue] setCornerRadius:3.0f]; ADYService *service = [[ADYService alloc] initWithParameters:nil appearanceConfiguration:appearanceConfiguration]; ```