File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
UnitTests/BraintreeCardTests Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,11 @@ struct CreditCardPOSTBody: Encodable {
21
21
sessionId: String
22
22
) {
23
23
self . creditCard = CreditCard ( card: card)
24
- self . authenticationInsight = card. authenticationInsightRequested
25
- self . merchantAccountId = card. merchantAccountID
24
+
25
+ if card. authenticationInsightRequested {
26
+ self . authenticationInsight = card. authenticationInsightRequested
27
+ self . merchantAccountId = card. merchantAccountID
28
+ }
26
29
27
30
self . meta = Meta (
28
31
integration: integration,
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ class BTCardClient_Tests: XCTestCase {
79
79
80
80
guard let parameters = params as? CreditCardPOSTBody else { return }
81
81
82
+ // Nil is correct
82
83
XCTAssertNil ( parameters. authenticationInsight)
83
84
XCTAssertNil ( parameters. merchantAccountId)
84
85
You can’t perform that action at this time.
0 commit comments