#LuisEgusquiza
1 messages ยท Page 1 of 1 (latest)
@neon ice huge apologies that I missed your message. Looking now
Can you send me the ID of that payment intent? (pi_123)
I can look further in to it from there
pi_3MFVcjJfOL9bpqQg03RqrnHv
So it looks like you are getting various errors related to your payment intent needing data to be passed in to its payment_method setup_future_usage, and mandate_data properties.
I see that you are passing in the payment method when creating the payment intent.
Looking in to how to properly pass that other data in
So i see in one of your confirm calls that you pass mandate_data: "true", but the structure for mandate_data would actually look something like this:
customer_acceptance: {
type: 'offline',
accepted_at: 1671463784,
}
}```
https://stripe.com/docs/api/payment_intents/confirm?lang=python#confirm_payment_intent-mandate_data-customer_acceptance-type
And then you also need to pass setup_future_usage, so something like
{
mandate_data: {
customer_acceptance: {
type: 'offline',
accepted_at: 1671463784,
}
},
setup_future_usage: 'off_session'
}```
Thanks I'll do the tests
Hello ๐
The error is quite literally pointing out what's wrong here ๐
You'd want to pass x-www-form-urlencoded data instead of form-data from Postman
Thanks I'll do the tests