#LuisEgusquiza

1 messages ยท Page 1 of 1 (latest)

minor ospreyBOT
echo topaz
#

@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

neon ice
#

pi_3MFVcjJfOL9bpqQg03RqrnHv

echo topaz
#

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'
}```
neon ice
#

Thanks I'll do the tests

neon ice
#

hi

#

I got that error ๐Ÿ˜ฆ

topaz trellis
#

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

neon ice
#

Thanks I'll do the tests