草庐IT

custom_branch

全部标签

关于 ruby?? on rails:Retrieve Customer\\’s default and active card from Stripe

RetrieveCustomer'sdefaultandactivecardfromStripe我正在尝试检索客户的默认和活动卡。(另外请记住,使用我拥有的编码,客户总是可以拥有一张卡,这意味着如果有办法解决它可以提供帮助)。几个月前,我使用了这个运行良好的代码段。Stripe似乎做了一些更新,但我现在无法让它工作。1current_user.stripe_card_id=customer.active_card.id我得到的错误是undefinedmethod`active_card'for#Stripe::Customer如果您需要更多信息,请告诉我。edit:customer.defau