Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jcergolj's avatar

Application Testing, submit stripe form

Hey guys, is there a way to submit a Stripe form in Application Testing? The problem I can't solve it how to submit a form without button.

Thanks

0 likes
3 replies
MikeHopley's avatar

I'm not sure I understand your question. You should provide more context.

However, I'm guessing that you are trying to test your Stripe integration, but you don't have any test tools that can submit a form.

I would suggest using an acceptance test. I run these using Codeception with the Webdriver module.

jcergolj's avatar

Hey, atm I do not want to test Stripe integration. I just want to submit a Stripe form, skip testing if Stripe works and countinue from where form redirects. something like this: $this->press('stripe form button') //stripe form has no button ->seePageIs('x') ->see('Finish') ->click('Finish');

MikeHopley's avatar

Can you explain why "the Stripe form has no button"? If your form doesn't have a submit button, how is it meant to be used?

You're not giving enough information here.

Is the problem that Stripe relies on javascript to intercept the default form submission? That's why you need a testing tool that can handle javascript. Which I have already suggested...

Please or to participate in this conversation.