Fix false-positive CVC errors in credit card donation flow.
This commit is contained in:
parent
2d835581a5
commit
fed9c64113
2 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ data class CreditCardFormState(
|
||||||
number,
|
number,
|
||||||
expiration.month.toInt(),
|
expiration.month.toInt(),
|
||||||
expiration.year.toInt(),
|
expiration.year.toInt(),
|
||||||
code.toInt()
|
code
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -224,7 +224,7 @@ class StripeApi(
|
||||||
CARD_NUMBER_KEY to cardData.number,
|
CARD_NUMBER_KEY to cardData.number,
|
||||||
CARD_MONTH_KEY to cardData.month.toString(),
|
CARD_MONTH_KEY to cardData.month.toString(),
|
||||||
CARD_YEAR_KEY to cardData.year.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 ->
|
postForm("tokens", parameters).use { response ->
|
||||||
|
@ -595,7 +595,7 @@ class StripeApi(
|
||||||
val number: String,
|
val number: String,
|
||||||
val month: Int,
|
val month: Int,
|
||||||
val year: Int,
|
val year: Int,
|
||||||
val cvc: Int
|
val cvc: String
|
||||||
) : Parcelable
|
) : Parcelable
|
||||||
|
|
||||||
@Parcelize
|
@Parcelize
|
||||||
|
|
Loading…
Add table
Reference in a new issue