Stripe - 使用表单中的电子邮件检索客户 ID

问题描述:

有什么方法可以从他们通过 API 在付款表单中输入的电子邮件中检索客户 ID?

Is there any way to retrieve a Customer ID from the e-mail they enter in the payment form via the API?

对于我的应用程序,客户将持续多次付款,但为简单起见,没有登录,他们只需输入他们的付款信息和发票编号.作为最佳实践,出于显而易见的原因,我希望将他们的所有费用放在 Stripe 中,但这似乎不可能?

For my application customers will pay multiple times on an ongoing basis but for simplicity's sake there are no logins, they just enter their payment info and invoice number. As a best practice I'd like to keep all of their charges together in Stripe for obvious reasons but it doesn't seem this is possible?

我做了这个 API 请求.此 API 请求在条带文档中不可用.我根据我的要求在仪表板自定义中收到了他们的搜索请求.

I did this API request. This API request is not available in stripe docs.I got their search request at dashboard customize according to my requirements.

url :https://api.stripe.com/v1/search?query="+email+"&prefix=false",
method: GET
headers: {
  "authorization": "Bearer Your_seceret Key",
  "content-type": "application/x-www-form-urlencoded",
}