#Josh_FloralFrog

1 messages · Page 1 of 1 (latest)

serene joltBOT
delicate coral
#

Hi
Can you give more details please ?

heady cypress
#

in this section of the documentation, is this code meant to be embedded into the integration or should this be seperate code for testing? is there also a way to disable this?

delicate coral
#

This is for testing

#

You can use it while testing not in your live integration.

heady cypress
#

when making live payment request, this code is being called and creating an error. so should this be removed from live integration?

delicate coral
#

Yes

heady cypress
#

I see, so as long as this code is within the integration, it will sent a simulated request side-by-side with the live payment intents?

delicate coral
#

yes, this is a testHelpers for your integration. You can use them in test mode but not in live mode

heady cypress
#

Okay, so is the best cause of action to physically delete this from our code?

delicate coral
#

You should be integrating this in your integration tests and not in your live code in production.

heady cypress
#

Okay thank you

#

so is it just this section we need to remove from our live code?

delicate coral
#

yes remove the testHelpers and move it to your integration tests section.

heady cypress
#

and that's all the lines shown in the extract? just to double check

delicate coral
#

Just delete all testHelpers lines in your (live) code

heady cypress
#

so just this section?

delicate coral
#

That section yes, for sure. But we don't have all your code to tell you what other section you should delete.

#

Don't hesitate to come back if you have any follow up Question.

heady cypress
#

Okay thank you

ruby wigeon
#

Please, let me know if you have any other questions.