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

Add customFields for 3DS verifyCard #1339

Merged
merged 4 commits into from
Jul 2, 2024
Merged

Conversation

warmkesselj
Copy link
Contributor

Summary of changes

Accept a raw JSON format for customFields in BTThreeDSecureRequest for VerifyCard.

Checklist

  • Added a changelog entry

Authors

@agedd
@jwarmkessel
@warmkesselj

@@ -11,6 +11,9 @@ import BraintreeCore

/// A nonce to be verified by ThreeDSecure
public var nonce: String?

/// Object where each key is the name of a custom field which has been configured in the Control Panel. In the Control Panel you can configure 3D Secure Rules which trigger on certain values.
public var customFields: [String: Any]? = [:]
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar comment to here, with making this a more standard type that merchants use to model JSON - Encodable. A dictionary will also work though.

Which do you think is better merchant dev-ex?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just got more information that we'll be supporting no nested JSON values and n number of custom values. I'm waiting on clarification to determine if we're expecting only String values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Confirmed we can enforce string key values. I think [String: String] is fine. The merchant will be setting these values in their control panel. Btw, the Cardinal team is taking anything but stringifying everything coming through the gateway.

@warmkesselj warmkesselj marked this pull request as ready for review July 1, 2024 10:13
@warmkesselj warmkesselj requested a review from a team as a code owner July 1, 2024 10:13
Copy link
Contributor

@KunJeongPark KunJeongPark left a comment

Choose a reason for hiding this comment

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

Great job Justin!

@KunJeongPark KunJeongPark merged commit 8bff398 into main Jul 2, 2024
6 of 7 checks passed
@KunJeongPark KunJeongPark deleted the 3DS-customFields-verifyCard branch July 2, 2024 14:25
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.

4 participants