#aqdasmalik
1 messages ยท Page 1 of 1 (latest)
You can use this endpoint: https://stripe.com/docs/api/payment_methods/customer_list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I tried this already didn't worked.
Got this error ** undefined methodlist_payment_methods' for Stripe::Customer:Class (NoMethodError) **
Using the new one setupIntent with version 2022-11-15
Ruby version 3.0.5
No not ruby
The Stripe Ruby Library
I suppose they're called gems in Ruby
What version of the Stripe gem?
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
That will require alot of changes maybe.
But for right now is there a way I can do that ?
Try this syntax:
customer: 'cus_123',
type: 'card',
})```
That worked thank you ๐
Cool!