Open msencenb opened 1 year ago
Thanks for letting us know @msencenb , good point. We're going to have to think about it bit here.
@pete2786 Yep, no problem. I'd absolutely put this one very low priority - figured I would note it while I ran into it for your future planning.
When you retrieve a payment method:
the data itself comes back as an OpenStruct, but the data nested inside of it is a hash.
In other words, you can't write:
pm.data.card.brand
You have to access it like this:
pm.data.card[:brand]
This one is definitely a nitpick as it's easily programmed around. Long term, it feels like there should be consistency in how the data is being returned to make accessing it easier. E.g. I don't really care if it's all a Hash or an OpenStruct, but it probably shouldn't be both.