Stripe payment intent search api throwing error

173 views Asked by At

I am getting an error:call to undefined method stripe\paymentintent::search()

The code reference url is on search stripe payment intents using php library.

$stripe = new \Stripe\StripeClient('sk_test_51KgTvKAFnFm5ESP8EPiYuUOkkuXT2SXWKa6kRcmLRIn14Q2QllFSibG6VLyejUNnigCagqttfLfrjvcFZTmZtuY000kcoaH4tS');
$stripe->paymentIntents->search(['query' => 'status:\'succeeded\' AND metadata[\'order_id\']:\'6735\'',]);
0

There are 0 answers