Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## x.x.x - x-x-x

**Fixes**
- Fixes an issue with `FinancialConnectionsEvent` not being populated properly on Android

## 0.55.0 - 2025-10-20
* [Added] Added appearance.applyLiquidGlass. When set to `true`, changes the values of various properties on the Appearance object used by PaymentSheet, PaymentSheet.FlowController, EmbeddedPaymentElement, CustomerSheet, and AddressViewController to match Liquid Glass when building with Xcode 26 or later and running on iOS 26. This includes appearance.cornerRadius, appearance.borderWidth, appearance.navigationBarStyle, colors.background, navigationBarStyle, and others. This feature is in public preview while we gather feedback and is subject to change. Please use https://github.com/stripe/stripe-ios/issues to file feedback!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,16 @@ internal fun mapToPreferredNetworks(networksAsInts: ArrayList<Int>?): List<CardB
internal fun mapFromFinancialConnectionsEvent(event: FinancialConnectionsEvent): WritableMap =
Arguments.createMap().apply {
putString("name", event.name.value)
putMap("metadata", event.metadata.toMap().toReadableMap())

// We require keys to use pascal case, but the original map uses snake case.
val tweakedMap =
buildMap {
put("institutionName", event.metadata.institutionName)
put("manualEntry", event.metadata.manualEntry)
put("errorCode", event.metadata.errorCode)
}

putMap("metadata", tweakedMap.toReadableMap())
}

private fun List<Any?>.toWritableArray(): WritableArray {
Expand Down
1 change: 1 addition & 0 deletions example/src/screens/CollectBankAccountScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export default function CollectBankAccountScreen() {
{
onEvent: (event: FinancialConnectionsEvent) => {
console.log('Event received:', event);
console.log('Institution name:', event.metadata.institutionName);
},
}
);
Expand Down