#mattwoberts

1 messages ยท Page 1 of 1 (latest)

brazen pewterBOT
cloud merlin
#

Hello, tarzan had to step away but I can help

#

What is your followup?

fickle drift
#

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:

#

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.

cloud merlin
#

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?

fickle drift
#

Ah hang on....

#

req_uWFMl5zAIr71eR

#

Weird 'cos I can set DDs up fine using a stripe checkout session when I'm testing it...

cloud merlin
#

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

fickle drift
#

Cheers. I'm trying to setup a DD so that I can run some code tests - here's what I'm doing:

cloud merlin
#

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

fickle drift
#

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

cloud merlin
#

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?

fickle drift
#

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)

cosmic spear
#

Hello ๐Ÿ‘‹
Stepping in as Pompey needs to step away
Give me a moment to catch up on the thread

fickle drift
#

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

cosmic spear
#

Right, still trying to understand what my colleague meant by creating a PM before

fickle drift
#

I think he meant to add one manually using stripe checkout, something like that, and then just referencing its ID

cosmic spear
#

ah okay gotcha.

#

Since you need a fresh customer each time

#

that may not work

fickle drift
#

Yeah, so I'm kinda stuck here - is there a flag you can set to allow me to be able to do this?

cosmic spear
#

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

https://support.stripe.com/?contact=true

fickle drift
#

Ok will do thanks

cosmic spear
#

NP! ๐Ÿ™‚ Good luck