#sr_api
1 messages · Page 1 of 1 (latest)
đź‘‹ Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đź”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1298644584514981961
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- sr_api, 22 hours ago, 36 messages
Sorry for the confusing question. Here is the question:
I get the error
Failed to create invoice for order zWf4HVXY49uFOPXbgaaN: Error: This PaymentIntent requires a mandate, but no existing mandate was found. Collect mandate acceptance from the customer and try again, providing acceptance data in the mandate_data parameter.
when the user makes an order with payment method "sepa_debit".
I'm creating the payment method with a setupIntent:
const setupIntent = await stripe.setupIntents.create({
customer: customer.id,
payment_method_types: ["card", "sepa_debit"],
});
and after that I already tried to confirm the setupIntent and add a sepa mandate, but it seems to not work.
Can you share the failed request ID? https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_2OGWBgpO6iknGi
thanks, looking
I also get the error "You cannot confirm this SetupIntent because it has already succeeded." so i guess the question is where I need to add the mandate.
What is not working:
- When I do
setupIntents.createI cannot add the mandate, because the payment method is missing there - After the SetupIntent creation with
setupIntents.confirm
So it looks like your invoice uses on_behalf_of but your initial setup intent did not specify on_behalf_of for that same account. I believe mandates are account specific so you will need a mandate for the connected account specifically
Luckily I think you can do this with an API call by confirming another setup intent that does specify the other account's ID and using the PM that you already have saved.
Thank you for your response! I’d like to clarify our setup to ensure we're on the same page:
In our setup, connected accounts (service providers) only receive payouts; they don’t do payments.
We use a SetupIntent to collect and confirm the customer’s payment method (e.g., SEPA Direct Debit). This payment method is then stored and later used to pay for invoices over time.
The connected account (service providers) only receives the payout after the invoice is paid, via the on_behalf_of and transfer_data parameters.
Our goal is to set up the customer’s payment method once (via the SetupIntent), and then use it to pay multiple invoices later. The payout goes to the connected account, but the charge is always made to the customer’s payment method.
Given this setup, can you confirm whether we need to create a separate SetupIntent for the connected account, or whether the existing mandate tied to the customer’s payment method is sufficient?
It also would be setupIntents.create and not setupIntents.update, right?