-
Notifications
You must be signed in to change notification settings - Fork 295
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
Conversation
@@ -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]? = [:] |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job Justin!
Summary of changes
Accept a raw JSON format for customFields in BTThreeDSecureRequest for VerifyCard.
Checklist
Authors
@agedd
@jwarmkessel
@warmkesselj