mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 02:08:40 +00:00
Allow deeplinks back into Signal from iDEAL banking apps.
This commit is contained in:
@@ -44,6 +44,8 @@ class StripeApi(
|
||||
|
||||
const val RETURN_URL_SCHEME = "sgnlpay"
|
||||
private const val RETURN_URL_3DS = "$RETURN_URL_SCHEME://3DS"
|
||||
|
||||
const val RETURN_URL_IDEAL = "https://signaldonations.org/stripe/return/ideal"
|
||||
}
|
||||
|
||||
sealed class CreatePaymentIntentResult {
|
||||
@@ -74,7 +76,7 @@ class StripeApi(
|
||||
val parameters = mutableMapOf(
|
||||
"client_secret" to setupIntent.intentClientSecret,
|
||||
"payment_method" to paymentMethodId,
|
||||
"return_url" to RETURN_URL_3DS
|
||||
"return_url" to if (paymentSource is IDEALPaymentSource) RETURN_URL_IDEAL else RETURN_URL_3DS
|
||||
)
|
||||
|
||||
if (paymentSource.type.isBankTransfer) {
|
||||
@@ -122,7 +124,7 @@ class StripeApi(
|
||||
val parameters = mutableMapOf(
|
||||
"client_secret" to paymentIntent.intentClientSecret,
|
||||
"payment_method" to paymentMethodId,
|
||||
"return_url" to RETURN_URL_3DS
|
||||
"return_url" to if (paymentSource is IDEALPaymentSource) RETURN_URL_IDEAL else RETURN_URL_3DS
|
||||
)
|
||||
|
||||
if (paymentSource.type.isBankTransfer) {
|
||||
|
||||
Reference in New Issue
Block a user