Remove bank selection from iDEAL.

This commit is contained in:
Alex Hart
2025-05-14 16:15:30 -03:00
committed by Michelle Tang
parent c865ed0cdc
commit a050b37f3a
32 changed files with 47 additions and 757 deletions

View File

@@ -265,7 +265,6 @@ class StripeApi(
private fun createPaymentMethodForIDEAL(paymentSource: IDEALPaymentSource): Response {
val parameters = mutableMapOf(
"type" to "ideal",
"ideal[bank]" to paymentSource.idealData.bank,
"billing_details[email]" to paymentSource.idealData.email,
"billing_details[name]" to paymentSource.idealData.name
)
@@ -606,7 +605,6 @@ class StripeApi(
@Parcelize
data class IDEALData(
val bank: String,
val name: String,
val email: String
) : Parcelable

View File

@@ -26,6 +26,10 @@ enum class StripeIntentStatus(private val code: String) {
fun fromCode(code: String): StripeIntentStatus = entries.first { it.code == code }
}
fun canProceed(): Boolean {
return this == PROCESSING || this == SUCCEEDED
}
@JsonValue
fun toValue(): String {
return code