Skip to content

Commit

Permalink
Take IBP incentive eligibility from return URL (#9935)
Browse files Browse the repository at this point in the history
  • Loading branch information
tillh-stripe authored Jan 23, 2025
1 parent d8072a3 commit f237b9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,7 @@ internal class FinancialConnectionsSheetViewModel @Inject constructor(
encodedPaymentMethod = paymentMethod,
last4 = url.getQueryParameter(QUERY_PARAM_LAST4),
bankName = url.getQueryParameter(QUERY_BANK_NAME),
// TODO(tillh-stripe): Pull this from the URL
eligibleForIncentive = false,
eligibleForIncentive = url.getQueryParameter(QUERY_INCENTIVE_ELIGIBLE).toBoolean(),
),
financialConnectionsSession = null,
token = null
Expand Down Expand Up @@ -619,6 +618,7 @@ internal class FinancialConnectionsSheetViewModel @Inject constructor(
internal const val QUERY_PARAM_PAYMENT_METHOD = "payment_method"
internal const val QUERY_PARAM_LAST4 = "last4"
internal const val QUERY_BANK_NAME = "bank_name"
internal const val QUERY_INCENTIVE_ELIGIBLE = "incentive_eligible"
}

override fun updateTopAppBar(state: FinancialConnectionsSheetState): TopAppBarStateUpdate? {
Expand Down

0 comments on commit f237b9d

Please sign in to comment.