简体   繁体   English

如何使用 Stripe 创建自定义表单

[英]How do I create custom form using Stripe

I'm trying to integrate stripe in my website but i'm having issues and don't know where to start.我正在尝试将 Stripe 集成到我的网站中,但我遇到了问题并且不知道从哪里开始。 I have installed the library with composer but now I just do not know what to do as I want to create a payment form which will have two fields one for the customers name and the other for their email address as well as the other fields for credit card number etc.我已经安装了 Composer 库,但现在我不知道该怎么做,因为我想创建一个付款表格,其中有两个字段,一个用于客户姓名,另一个用于他们的电子邮件地址以及其他字段用于信用卡号等

Anyone help me?有人帮我吗? Thank you.谢谢你。

yes you can do this using stripe js是的,您可以使用 stripe js 执行此操作

https://stripe.com/docs/stripe-js/reference#including-stripejs https://stripe.com/docs/stripe-js/reference#include-stripejs

you just have to do is pass the proper Id to the input fields so stripe js will get all those details on form submit您只需要将正确的 Id 传递给输入字段,以便 Stripe js 将在表单提交时获取所有这些详细信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM