Fix false-positive CVC errors in credit card donation flow.

This commit is contained in:
Cody Henthorne 2023-11-17 12:29:26 -05:00 committed by Greyson Parrelli
parent 2d835581a5
commit fed9c64113
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ data class CreditCardFormState(
number,
expiration.month.toInt(),
expiration.year.toInt(),
code.toInt()
code
)
}
}

View file

@ -224,7 +224,7 @@ class StripeApi(
CARD_NUMBER_KEY to cardData.number,
CARD_MONTH_KEY to cardData.month.toString(),
CARD_YEAR_KEY to cardData.year.toString(),
CARD_CVC_KEY to cardData.cvc.toString()
CARD_CVC_KEY to cardData.cvc
)
postForm("tokens", parameters).use { response ->
@ -595,7 +595,7 @@ class StripeApi(
val number: String,
val month: Int,
val year: Int,
val cvc: Int
val cvc: String
) : Parcelable
@Parcelize