#aqdasmalik

1 messages ยท Page 1 of 1 (latest)

true copperBOT
hazy matrix
tacit dove
#

I tried this already didn't worked.

#

Got this error ** undefined methodlist_payment_methods' for Stripe::Customer:Class (NoMethodError) **

hazy matrix
#

What version of the stripe ruby are you using

#

Might be an older version

tacit dove
#

Using the new one setupIntent with version 2022-11-15

hazy matrix
#

No I mean the version of the ruby library

#

Not the api version

tacit dove
#

Ruby version 3.0.5

hazy matrix
#

No not ruby

#

The Stripe Ruby Library

#

I suppose they're called gems in Ruby

#

What version of the Stripe gem?

tacit dove
#

oh yeah give me one sec.

#

Its 5.32.1.

hazy matrix
#

Oh yeah that's a 2.5 year old version. I think some of the syntax has changed since then

#

Our api docs always match the latest version

#

If you try with v8.6.0 it should work

tacit dove
#

That will require alot of changes maybe.
But for right now is there a way I can do that ?

hazy matrix
#

Try this syntax:

  customer: 'cus_123',
  type: 'card',
})```
tacit dove
#

That worked thank you ๐Ÿ˜‰

hazy matrix
#

Cool!

tacit dove
#

Justed wanted to confirm one more thing

#

How much sooner should i switch to v8.6.0 or is it fine using v5.32.1 ?

hazy matrix
#

There's no time limit

#

Up to you

#

But keeping your versions up to date somewhat regularly prevents you having to do a larger migration down the line if you get way behind on versions

#

But if all the functionality you need is in 5.32.1, then you're fine