Update SEPA mandate acceptance parameters.

This commit is contained in:
Alex Hart 2023-10-10 16:25:12 -03:00 committed by Cody Henthorne
parent 5f7099184d
commit 1601fa5608

View file

@ -122,8 +122,7 @@ class StripeApi(
if (paymentSource.type == PaymentSourceType.Stripe.SEPADebit) { if (paymentSource.type == PaymentSourceType.Stripe.SEPADebit) {
parameters["mandate_data[customer_acceptance][type]"] = "online" parameters["mandate_data[customer_acceptance][type]"] = "online"
parameters["mandate_data[customer_acceptance][online][ip_address]"] = "0.0.0.0" parameters["mandate_data[customer_acceptance][online][infer_from_client]"] = "true"
parameters["mandate_data[customer_acceptance][online][user_agent]"] = userAgent
} }
val (nextActionUri, returnUri) = postForm("payment_intents/${paymentIntent.intentId}/confirm", parameters).use { response -> val (nextActionUri, returnUri) = postForm("payment_intents/${paymentIntent.intentId}/confirm", parameters).use { response ->