1

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\'',]); 
1
  • From the error stripe\paymentintent::search(), it appears that there might be a typo. Can you confirm that the request is $stripe->paymentIntents->search instead of $stripe->paymentIntent->search Commented Dec 20, 2022 at 20:20

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.