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(initWithAuthorization:) public init(authorization: String)Parameters
authorizationA valid client token or tokenization key used to authorize API calls
-
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
AnErrordescribing the failureDeclaration
Swift
public func getRewardsBalance(forNonce nonce: String, currencyISOCode: String) async throws -> BTAmericanExpressRewardsBalanceReturn Value
A
BTAmericanExpressRewardsBalanceobject with information about the rewards balance
View on GitHub