How can I integrate stripe with flutter frontend and php backend?

I want to use my own payment form to process payments using flutter frontend and php backend. The form will be created with the following fields: amount, card holder name, card number, expiry date, cvv and a submit button in flutter. I dont want to use stripe’s payment form.

I have created an account with stripe and have the publishable and secret keys. ( test account)

Now when I click the submit button after the form has been filled up I want to create a stripe token (which uses the publishable key) and send the token details to my php backend, which will then process the payment and return / success /error codes. The php backend will use the secret key provided by stripe.

Is it possible to do this. I am do so using javascript and php library from stripe in our web application.

If you could guide me as to how to do this it will be of great help. Is this the right way to use your own payment form for flutter / php