BTAmericanExpressClient
@objc
public class BTAmericanExpressClient : NSObject
BTAmericanExpressClient
enables you to look up the rewards balance of American Express cards.
-
Creates an American Express client.
Declaration
Swift
@objc(initWithAPIClient:) public init(apiClient: BTAPIClient)
Parameters
apiClient
An instance of
BTAPIClient
-
Gets the rewards balance associated with a Braintree nonce. Only for American Express cards.
Declaration
Swift
@objc(getRewardsBalanceForNonce:currencyIsoCode:completion:) public func getRewardsBalance( forNonce nonce: String, currencyISOCode: String, completion: @escaping (BTAmericanExpressRewardsBalance?, Error?) -> Void )
-
getRewardsBalance(forNonce:
AsynchronouscurrencyISOCode: ) Gets the rewards balance associated with a Braintree nonce. Only for American Express cards.
Throws
AnError
describing the failureDeclaration
Swift
public func getRewardsBalance(forNonce nonce: String, currencyISOCode: String) async throws -> BTAmericanExpressRewardsBalance
Return Value
A
BTAmericanExpressRewardsBalance
object with information about the rewards balance