Stripe Token成功创建后提交表单

时间:2016-03-04 22:36:38

标签: php jquery forms stripe-payments

我正在使用Stripe Checkout,并希望在Stripe创建令牌后提交包含最终用户详细信息的表单。

我遇到的问题只是来自条纹的细节正在提交,我对jQuery不是太先进所以这很难 - 我会帮助一些帮助!

以下是表单的HTML:

条纹:

<form action="charge.php" method="post">
                            <script src="https://checkout.stripe.com/checkout.js" 
                            class="stripe-button"
                            data-key="'.$stripe['publishable_key'].'"
                            data-amount="300"
                            data-name=""
                            data-description="Plan 2 (£3 per month)"
                            data-panel-label="Subscribe"
                            data-label="Subscribe"
                            data-locale="auto">
                            data-allow-remember-me="false">
                            data-currency="gbp"
                            </script>
                            </form>

我的表格:

<form enctype="multipart/form-data" action="includes/add-function.php" method="POST" >


                            <div class="contact-form">              

                            <input type="text" name="business-name" id="title" placeholder="Business Name" />
                            <input type="text" name="business-desc" id="description" placeholder="Business Description" />      
                            <input type="text" name="website" id="url" placeholder="Website" />
                            <input type="text" name="contact-email" id="logpassword" placeholder="Contact Email" />
                            <input type="text" name="contact-phone" id="category" placeholder="Category" />
                            <input type="hidden" name="MAX_FILE_SIZE" value="2048000" />
                            <input type="file" id="fileUpload" name="image">

                            </div>


                            <div class="comment-form">

                            <input id="line1" name="line1" type="text" placeholder="Address Line 1" /> 
                            <input id="line2" name="line2" type="text" placeholder="Address Line 2" />
                            <input id="town" name="city" type="text" placeholder="Town" />                      
                            <input id="postcode" name="postcode" type="text" placeholder="Postcode" />      
                            </form> 

谢谢你的时间!

0 个答案:

没有答案