I’m trying to display all the Stripe SKUs for a product in a dropdown. Stripe returns a dictionary, which is mapped as follows:
You’ll notice there are 3 attribute fields, with each key as the title. The problem is that the number of attributes for a SKU can differ, so each shouldn’t be a text field. Is there any way to get a hash to display as a list?
@emmanuel, when I initialize this API call, the attributes are pulled in fine for the product the call is made on.
However, if I create a second product with different attributes, those fields aren’t recognized in subsequent calls.
I just wanted to double check that there is no way to properly pull in these attributes before I switch to hosting products on my Bubble DB instead of Stripe Relay.
Sorry, i’m not sure I understand the question.
Disregard this. I was hoping to simply display the attributes in a dropdown. However, Stripe doesn’t return a list, so it wouldn’t make sense to arbitrarily display those fields as such. I found another solution. Thanks for the reply.
Hi, I’m having the same problem as you showed here. Did you ever find a solution to this? Thanks.