Inherits from NSObject
Conforms to REValidable
Declared in REConfiguration.h

Overview

Encapsulates all the configuration settings of the SDK, including the required public key

Tasks

Properties

apiEndpoint

@property (atomic, strong) NSString *apiEndpoint
Discussion

It sets the base HTTP endpoint for connecting to the recurly’s backend.

Do not change this value unless you know what you are doing.

Declared In

REConfiguration.h

currency

@property (atomic, strong) NSString *currency
Discussion

Currency standarized code ISO 4217, by default it is “USD”

Declared In

REConfiguration.h

publicKey

@property (atomic, strong) NSString *publicKey
Discussion

Public key provided by the Recurly dashboard, there is not a default value for this property it must be specified in order to integrate this SDK properly.

Declared In

REConfiguration.h

timeout

@property (atomic, assign) NSUInteger timeout
Discussion

Maximun timeout in seconds when performing requests to the Recurly backend

Declared In

REConfiguration.h

Instance Methods

initWithPublicKey:

- (instancetype)initWithPublicKey:(NSString *)aPublicKey
Discussion

Initializes REConfiguration with the specified public key and the default settings. You can use [Recurly configure:] directly.

Parameters

aPublicKey

Recurly’s public key

Declared In

REConfiguration.h

initWithPublicKey:currency:apiEndpoint:timeout:

- (instancetype)initWithPublicKey:(NSString *)aPublicKey currency:(NSString *)aCurrency apiEndpoint:(NSString *)apiEndpoint timeout:(NSUInteger)timeout
Discussion

Initialized a REConfiguration with the public key and custom settings

Parameters

aPublicKey

Public key

aCurrency

Currency code

apiEndpoint

API endpoint

timeout

Timeout until a

Declared In

REConfiguration.h