Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v7] Remove cardAddChallenge #1487

Merged
merged 7 commits into from
Dec 20, 2024
Merged

[v7] Remove cardAddChallenge #1487

merged 7 commits into from
Dec 20, 2024

Conversation

jaxdesmarais
Copy link
Contributor

Summary of changes

  • Remove cardAddChallenge and BTThreeDSecureCardAddChallenge
  • Update properties to be constants
  • Update unit tests

Checklist

  • Added a changelog entry
  • Tested and confirmed payment flows affected by this change are functioning as expected

Authors

@jaxdesmarais jaxdesmarais requested a review from a team as a code owner December 16, 2024 17:32
let uiType: BTThreeDSecureUIType
let v2UICustomization: BTThreeDSecureV2UICustomization?

var dfReferenceID: String?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only property that should need to be a var according to our logic. Updated these and the unit tests with this change. Also confirmed in the demo app things are still appearing as expected.

@@ -108,26 +106,6 @@ class BTThreeDSecureClient_Tests: XCTestCase {
waitForExpectations(timeout: 1)
}

func testPerformThreeDSecureLookup_whenCardAddChallengeNotRequested_sendsCardAddFalse() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test was specific to this removed logic in the client:

} else if request._cardAddChallenge == .notRequested {
            requestParameters["cardAdd"] = false
}

jaxdesmarais and others added 2 commits December 17, 2024 10:14
Co-authored-by: Rich Herrera <ricardherrera@paypal.com>
# Conflicts:
#	Sources/BraintreeThreeDSecure/BTThreeDSecureRequest.swift
@jaxdesmarais jaxdesmarais merged commit 12318d6 into v7 Dec 20, 2024
8 checks passed
@jaxdesmarais jaxdesmarais deleted the remove-card-add-challenge branch December 20, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants