#rbaumier_docs
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/1220303108236906496
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi!
I've tried to create a payment intent with a payment_method of "bank_transfer", expecting the response to give me a bank account that I could send to the customer, and receive a webhook event when the payment is mad
sure, that sounds right enough!
but I get an "payment_intent_invalid_parameter" error.
what's the exact error and request IDreq_xxxof the API request you made?
req_jxN3WFOFWIdiLI
code: 'payment_intent_invalid_parameter',
doc_url: 'https://stripe.com/docs/error-codes/payment-intent-invalid-parameter',
message: 'The payment method type "bank_transfer" is invalid. Please ensure the provided type is activated in your dashboard (https://dashboard.stripe.com/account/payments/settings) and your account is enabled for any preview features that you are trying to use.',
param: 'payment_method_types',
well it's not called bank_transfer, you need to follow the docs (https://docs.stripe.com/payments/bank-transfers/accept-a-payment)
The specific payment_method_type is actually customer_balance
oh thanks, I now get an error "'You must provide a customer when creating or updating a PaymentIntent with a customer_balance PaymentMethod.',"
that means I must create a customer account (which is really me), and then make the separate transfers from this account?
no
you need to take a step back and understand the model/read the docs.
there's three entities here
a Customer cus_xxx which is the person paying you
an Account acct_xxx that's the connected account you might eventually transfer some funds to
your own main platofrm account
that Customer might be 'associated' with some other connected account acct_xxx in your own database but that's entirely on your side and your mappings. In Stripe they're separate objects entirely and you onboard/create those objects separately
Ok I get it now, it works with
payment_method_types: ["customer_balance"],
payment_method_options: {
customer_balance: {
funding_type: "bank_transfer",
bank_transfer: {
type: "eu_bank_transfer",
requested_address_types: ["iban"],
eu_bank_transfer: {
country: "FR",
},
},
},
},
thank you! ๐