Processing payment with stripe using php

yes they are together in the same root.

Here are my errors and problems.

  1. if i copy the entire code from the stripe demo of custom flow the stripe card form won’t load into the #form_elements div

  2. now if the form submits and calls the create.php the json output error is thrown, i have tried to get the json decoded in php array so i can work with it.

but then i think am missing two important aspects of the function and thats the createtoken and confirm token