使用 Angular 6 和 NodeJs 的自定义 Stripe Checkout 表单

Custom Stripe Checkout form with Angular 6 and NodeJs

有什么方法可以创建您自己的表单来处理 Stripe 付款。 (不使用默认的 Stripe 弹出窗口?)

除了 popup(checkout),Stripe 还提供了 stripe 元素,这些元素提供自定义 UI.

https://stripe.github.io/elements-examples/

要在 Angular 中实现只需添加 js

https://js.stripe.com/v3/

并通过将其声明为 any 来使用 stripe 变量。

例子

   let element =  (window as any).stripe.elements(); 

有关如何将条纹元素与 angular 结合使用的更多信息。请参考 https://alligator.io/angular/stripe-elements/