mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-25 11:20:47 +01:00
Remove bank selection from iDEAL.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user