Skip to content

Commit

Permalink
If we have an empty list with restrictedInstrument send null instead
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasvettefors committed Nov 14, 2024
1 parent 3705be0 commit 9376b7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ internal object RequestUtil {
return when {
restrictToPaymentMethods != null -> CustomizePayment(
paymentMethod = null,
restrictToPaymentMethods = restrictToPaymentMethods
restrictToPaymentMethods = restrictToPaymentMethods.ifEmpty { null }
).toJsonString()

paymentAttemptInstrument is PaymentAttemptInstrument.NewCreditCard -> CreditCardCustomizePayment(
Expand Down

0 comments on commit 9376b7b

Please sign in to comment.