Home > Blockchain >  Searching for resources with the Stripe GEM
Searching for resources with the Stripe GEM

Time:07-20

Does anyone know the syntax for searching for resources with the Stripe GEM? Looking at the code here, it looks like this should work:

Stripe::Charge.search(...)

But I'm getting the exception:

undefined method `search' for Stripe::Charge:Class (NoMethodError)

CodePudding user response:

That appears to be the right syntax for that function.

Search functionality was added to the gem earlier this year in version 5.47.0. Make sure that you've upgraded to a new enough version to give you access to that functionality.

  • Related