Skip to content

Commit

Permalink
Makes the scanned name and expiry date of a card publicly visible (#3539
Browse files Browse the repository at this point in the history
)

## Summary
Remove `@_spi` for `ScannedCard` properties.
Fixes #2484 and #2875

## Motivation
In order to autofill our card entry form we need the scanned details,
but for some reason they're blocked from being publicly visible.

## Testing
N/A

## Changelog
[Changed] `ScannedCard` to allow access for `expiryMonth`, `expiryYear`
and `name`.
  • Loading branch information
sgrant-stripe authored Apr 26, 2024
1 parent efcdbe4 commit b0b8966
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## x.x.x x-x-x
### CardScan
* [Changed] ScannedCard to allow access for expiryMonth, expiryYear and name.

### PaymentSheet
* [Added] Support for Multibanco with PaymentIntents.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import Foundation
/// the card image verification flow
public struct ScannedCard: Equatable {
public let pan: String
@_spi(STP) public let expiryMonth: String?
@_spi(STP) public let expiryYear: String?
@_spi(STP) public let name: String?
public let expiryMonth: String?
public let expiryYear: String?
public let name: String?

init(
pan: String,
Expand Down

0 comments on commit b0b8966

Please sign in to comment.