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。创建令牌后要做什么