koudoku icon indicating copy to clipboard operation
koudoku copied to clipboard

Koudoku does not work with API version newer than 2015-02-16 -- undefined method `cards' for Stripe::Customer

Open spacewaffle opened this issue 9 years ago • 12 comments

Getting this issue when trying to subscribe a user to a plan. This was using the latest version of the Stripe api. Rolling back to an older api version in the Stripe dashboard seems to have fixed things for me. Any idea what's causing this? Maybe a breaking change in the stripe api?

spacewaffle avatar Feb 27 '15 05:02 spacewaffle

yes. There's a breaking change (https://stripe.com/docs/upgrades) where that attribute is no longer called cards but sources instead

yas4891 avatar Feb 27 '15 05:02 yas4891

Koudoku does not work with API versions newer than 2015-02-16

yas4891 avatar Feb 27 '15 15:02 yas4891

@spacewaffle How do you roll back to an older api version? Is that possible?

razvanh avatar Mar 30 '15 13:03 razvanh

@razvanh I don't think it is possible to downgrade the API version. I wrote Stripe support just for extra clarity.

yas4891 avatar Mar 30 '15 14:03 yas4891

@yas4891 I don't think it's possible either. Only way would be if you had an older account that you can use.

Is there any plan to update koudoku to work with the current api version?

razvanh avatar Mar 30 '15 14:03 razvanh

@razvanh Feel free to submit a PR!

yas4891 avatar Mar 30 '15 14:03 yas4891

@razvanh login to stripe, head to account settings, api keys, and I get an option to change my api version at the top above where my keys are listed. My stripe account is a bit older though, and judging from what people have said, you may not see it if your account is newer.

spacewaffle avatar Mar 30 '15 16:03 spacewaffle

@spacewaffle you can only UPGRADE there, no downgrades.

@razvanh just heard back from Stripe support: You need to email them and they can downgrade you manually

yas4891 avatar Mar 30 '15 16:03 yas4891

@yas4891 thank you.

razvanh avatar Mar 30 '15 16:03 razvanh

I made a PR for adding support for this API Version, look it up #116

confact avatar May 07 '15 07:05 confact

I have had my api version downgraded to 2015-02-16 and am still getting the encoding error.. is there a way to solve this?

hannatime avatar Feb 10 '16 09:02 hannatime

@hannatime I just signed up for a brand new stripe account and it works fine with Koudoku set to the default Stripe.api_version of 2015-01-11. The Stripe API allow the client to request a specific API version. You don't need your account downgraded. See my comment in #134 for an explanation of why you're getting the encoding error and how to resolve it.

Hope this helps,

Brandon

bval avatar Mar 01 '16 23:03 bval