Stripe, is it possible to search a customer by their email?

前端 未结 12 1450
暗喜
暗喜 2020-12-08 06:32

Update: Since around January 2018, it is now possible to search using the email parameter on Stripe. See the accepted answer.


I

12条回答
  •  孤街浪徒
    2020-12-08 06:51

    Here is The Async- Await Way This Method can Be Used For All Third Party Hits with Nodejs Particularly

        const configuration = {
                headers: {
                    "authorization": `Bearer ${Your stripe test key}`,
                    "content-type": "application/x-www-form-urlencoded",
                }
              };
              const requestUrl = `https://api.stripe.com/v1/search?
        query=${'email you are to use'} &prefix=false`
            const emailPayment = await axios.get(requestUrl, 
        configuration)
    

    Axiom is Npm for creating http requests... very cool and dead simple

提交回复
热议问题