#mattwoberts
1 messages ยท Page 1 of 1 (latest)
Ah OK - so I've got some code that creates a setup intent and a DD mandate so that I can run some tests, but it doesn't allow me to do this:
ERR An unhandled exception has occurred while executing the request.
Stripe.StripeException: Your account is not configured to directly use SetupIntents to create Mandates for Bacs Direct Debits. See https://stripe.com/docs/payments/payment-methods/bacs-debit to learn more, or contact bacs-debits@stripe.com.
For clarity: I'm in test mode. The app lets' me do direct debits through stripe checkout etc, just not programatically.
The account I am using is just a test account, I can't setup bank details etc... I'd have thought this would all be fine in test mode.
Gotcha thanks for the info. I am looking in to what restriction you are running in to here and if there is an easier way for you to create these in test mode. Do you have the request ID (req_123) from a time that you got this error?
Ah hang on....
req_uWFMl5zAIr71eR
Weird 'cos I can set DDs up fine using a stripe checkout session when I'm testing it...
Interesting. I do see in our docs that we only show setting BACs up through Checkout, not Elements. I am checking to see what restrictions you might be running in to here
Cheers. I'm trying to setup a DD so that I can run some code tests - here's what I'm doing:
Gotcha, do you need this entirely for your testing or are you also looking to collect BACs data on your own custom page?
It looks like creating BACs Payment Methods via SetupIntents is something that needs to be specifically enabled per account. Looking in to if there are requirements on that or if you just need to contact support
No this is just a test method to set a customer up - in real life customers will be doing this from stripe checkout
I just need to get to a state of "here is a customer with a DD mandate" so I can poke more tests at it
Ah thank you for clarifying. Would it be feasible to just create a PM before and keep reusing it? Or do you need a fresh payment method/customer each time?
How do you mean create a PM before?
I do need a fresh customer each time I'm afraid, so I'm not sure I could do that...
(It's some integration tests I'm building with cypress)
Hello ๐
Stepping in as Pompey needs to step away
Give me a moment to catch up on the thread
OK no worries, thanks
I just want to be able to add a DD to a setup intent so I can test various scenarios, but it's not allowing me
Right, still trying to understand what my colleague meant by creating a PM before
I think he meant to add one manually using stripe checkout, something like that, and then just referencing its ID
Yeah, so I'm kinda stuck here - is there a flag you can set to allow me to be able to do this?
As Pompey mentioned, it is possible. And it needs to be enabled per account but as far as I know there are some restrictions around it.
You may want to write into our support so that they can put you in touch with the right team.
They might be able to provide more context around this and potentially some alternatives
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Ok will do thanks
NP! ๐ Good luck