It's posting to stripe! Not to your own application.
Did you read the documentation?
Documentation: https://stripe.com/docs/stripe-js
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a form using stripe. When the pay button is clicked instead of a modal appears in the same page the user is redirected to another page "https://checkout.stripe.com/v3/....html?distinct_id=..." and the modal appears in that page. Do you know why?
The "dd($request->al());" in the RegistrationController@charge is not showing nothing. In the network tab appears:
Request URL: https://q.stripe.com/?event=checkout.config.summary&rf=....? and also appears status code 200.
But the "dd($request->al());" dont appears. Do you know why?
<form action="{{ route('registration.charge') }}" method="post">
{{csrf_field()}}
<script
src="https://checkout.stripe.com/checkout.js"
class="stripe-button"
data-key="pk_test.."
data-image="/square-image.png"
data-name="Demo Site"
data-description="2 widgets (.00)"
data-amount="2000"
data-image="">
</script>
<button type="button" href="#step3" data-toggle="tab" role="tab"
class="btn btn-outline-primary prev-step mr-2">
Go back to step 2
</button>
</form>
I have the route:
Route::post('/charge', [
'uses' => 'RegistrationController@charge',
'as' => 'registration.charge'
]);
In the RegistrationController there is:
public function charge(Request $request){
dd($request->all());
}
It's posting to stripe! Not to your own application.
Did you read the documentation?
Documentation: https://stripe.com/docs/stripe-js
Please or to participate in this conversation.