如何在角度 9 中实现条纹

时间:2021-03-15 11:52:34

标签: html stripe-payments angular9

createToken(): void {
const name = this.stripeTest.get('name').value;
this.stripeService
  .createToken(this.card.element, { name })
  .subscribe((result) => {
    if (result.token) {
      // Use the token
      console.log(result.token.id);
    } else if (result.error) {
      // Error creating the token
      console.log(result.error.message);
    }
  });
  }

如何在条带集成中获取客户端机密。我需要一步一步的实施。如果有人知道 帮我。谢谢
我尝试了 ngx-stripe 和 stripe angular。创建令牌后要做什么

0 个答案:

没有答案
相关问题