Skip to content

Commit

Permalink
Addressed PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stechiu committed Feb 7, 2025
1 parent f84bd17 commit f6dc736
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## unreleased
* BraintreeApplePay
* Add BTApplePayCardNonce.isDeviceToken for MPAN identification
* Add `BTApplePayCardNonce.isDeviceToken` for MPAN identification

## 6.28.0 (2025-02-05)
* BraintreeVenmo
Expand Down
3 changes: 1 addition & 2 deletions Sources/BraintreeApplePay/BTApplePayCardNonce.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ import BraintreeCore

let cardType = json["details"]["cardType"].asString() ?? "ApplePayCard"
let isDefault = json["default"].isTrue
let isDeviceToken = json["details"]["isDeviceToken"].asBool() ?? true

self.isDeviceToken = isDeviceToken
self.isDeviceToken = json["details"]["isDeviceToken"].asBool() ?? true

binData = BTBinData(json: json["binData"])
super.init(nonce: nonce, type: cardType, isDefault: isDefault)
Expand Down

0 comments on commit f6dc736

Please sign in to comment.