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

前端 未结 12 1438
暗喜
暗喜 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 07:05

    You can try this. It worked for me. Below code will return empty list if not found data matching with email.

         $stripe = new \Stripe\StripeClient("YOUR_STRIPE_SECRET");
    
         $customers = $stripe->customers->all(['email'=>'jane.doe@example.com',
            'limit' => 15,
          ]);
    

提交回复
热议问题