Skip to content

6.0.0-beta3

Compare
Choose a tag to compare
@github-actions github-actions released this 18 Apr 16:51
· 0 commits to d83a7a025a4c01199a86e5a54fb890859c149c64 since this release
  • Remove iosBaseSDK, iosDeploymentTarget, iosIdentifierForVendor, deviceAppGeneratedPersistentUuid, and deviceScreenOrientation from BTAnalyticsMetadata
  • Fixes error @objcMembers attribute used without importing module 'Foundation' in Xcode 14.3+
  • Add async/await support back to all public Swift methods
  • Convert BraintreeVenmo module to Swift
  • Convert BraintreeCard module to Swift
  • Convert BraintreeThreeDSecure module to Swift
  • Convert BraintreePaymentFlow module to Swift
  • Breaking Changes
    • BraintreePaymentFlow
      • Replaced SFSafariViewController with ASWebAuthenticationSession
      • Removed BTViewControllerPresentingDelegate protocol and correlating methods
      • Rename BTLocalPaymentRequest.shippingAddressRequired to isShippingAddressRequired
      • Remove BTPaymentFlowErrorDomain global constant & BTPaymentFlowErrorType
      • Add BTPaymentFlowError cases
        • .noAccountData = 4
        • .failedToCreateNonce = 6
        • .fetchConfigurationFailed = 7
        • .missingRedirectURL = 8
        • .missingReturnURL = 9
      • Update BTPaymentFlowError values
        • .integration = 3
    • BraintreeApplePay
      • Rename BTApplePayClient.tokenizeApplePay(_:completion:) to BTApplePayClient.tokenize(_:completion:)
      • Rename BTApplePayClient.paymentRequest() to BTApplePayClient.makePaymentRequest()
      • Remove BTApplePayErrorDomain global constant
      • Remove BTApplePayErrorType
      • Make BTApplePayCardNonce initializer internal
    • BraintreeDataCollector
      • Update PPRiskMagnes to static XCFramework
    • BraintreeVenmo
      • Rename BTVenmoAccountNonce.externalId to BTVenmoAccountNonce.externalID
      • Remove BTVenmoErrorDomain global constant
      • Renamed BTVenmoClient.tokenizeVenmoAccount(with:completion:) to BTVenmoClient.tokenize(_:completion:)
      • Renamed BTVenmoClient.isiOSAppAvailableForAppSwitch() to BTVenmoClient.isVenmoAppInstalled()
      • Add new BTVenmoError
        • .invalidBodyReturned
        • .invalidRedirectURL
        • .fetchConfigurationFailed
      • Removed BTVenmoError.integration and BTVenmoError.requestURL
    • BraintreeAmericanExpress
      • Rename BTAmericanExpressClient.getRewardsBalance(forNonce:currencyIsoCode:completion:) to BTAmericanExpressClient.getRewardsBalance(forNonce:currencyISOCode:completion:)
    • BraintreeSEPADirectDebit
      • Rename BTSEPADirectDebitClient.tokenize(request:completion:) to BTSEPADirectDebitClient.tokenize(_:completion:)
    • BraintreeCard
      • Make BTAuthenticationInsight initializer internal
      • Remove BTCardClientErrorDomain global constant
      • Rename BTCardClient.tokenizeCard(_:completion) to BTCardClient.tokenize(_:completion:)
      • Rename BTCardClientErrorType to BTCardError
        • Remove unused BTCardClientErrorType.paymentOptionNotEnabled
        • Update enum values:
          • .unknown = 0
          • .integration = 1
          • .customerInputInvalid = 2
          • .cardAlreadyExists = 3
    • BraintreeThreeDSecure
      • 3D Secure version 1 is no longer supported
        • Removed the following: BTThreeDSecureV1UICustomization class, BTThreeDSecureRequest.v1UICustomization property, and BTThreeDSecureVersion enum
          • All 3D Secure requests will use version 2
        • Rename BTThreeDSecureV2ButtonType enum cases to: .verify, .continue, .next, .cancel, and .resend
        • Remove BTThreeDSecureFlowErrorDomain global constant
        • Add new BTThreeDSecureError
          • Add error .noBodyReturned = 4
          • Add error .canceled = 5
          • Add error .invalidAPIClient = 6
          • Add error .cannotCastRequest= 7
          • Add error .jsonSerializationFailure = 8