有没有办法创建自己的表单来处理 Stripe 付款。 (不使用默认的 Stripe 弹出窗口?)
最佳答案
除了弹出窗口(结帐)之外,Stripe 还提供提供自定义 UI 的 stripe 元素。
https://stripe.github.io/elements-examples/
要在 Angular 中实现,只需添加 js
并通过将其声明为any来使用stripe变量。
示例
let element = (window as any).stripe.elements();
有关如何使用带角度的 Stripe 元素的更多信息。请引用 https://alligator.io/angular/stripe-elements/
关于forms - 使用 Angular 6 和 NodeJs 自定义 Stripe 结账表单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51267209/