Skip to content

Commit

Permalink
set options to Parsed form
Browse files Browse the repository at this point in the history
  • Loading branch information
fionnbarrett-stripe committed Jul 24, 2023
1 parent 4077b6b commit 1f6a11e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ internal fun FormFieldValues.transformToPaymentSelection(

return if (paymentMethod.code == PaymentMethod.Type.Card.code) {
val params = transformToPaymentMethodCreateParams(paymentMethod)
val options = transformToPaymentMethodOptionsParams(paymentMethod)
PaymentSelection.New.Card(
paymentMethodOptionsParams = options,
paymentMethodCreateParams = params,
Expand All @@ -196,6 +197,7 @@ internal fun FormFieldValues.transformToPaymentSelection(
)
} else {
val params = transformToPaymentMethodCreateParams(paymentMethod)
val options = transformToPaymentMethodOptionsParams(paymentMethod)
PaymentSelection.New.GenericPaymentMethod(
labelResource = resources.getString(paymentMethod.displayNameResource),
iconResource = paymentMethod.iconResource,
Expand Down

0 comments on commit 1f6a11e

Please sign in to comment.