We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a78462 commit 11e134bCopy full SHA for 11e134b
stripe_python/util.py
@@ -18,7 +18,14 @@ def get_products( stripeApiKEY, outputFile='products.json'):
18
dict['Name' ] = product['name']
19
dict['Description' ] = product['description']
20
dict['Images' ] = product['images']
21
- dict['Price' ] = product["default_price"]["unit_amount"]/100
+ dict['Default Price' ] = product["default_price"]["unit_amount"]/100
22
+ all_prices = stripe.Price.list(product=product["id"]).data
23
+ pricedict = {}
24
+
25
+ for price in all_prices:
26
+ pricedict[price["id"]] = price["unit_amount"] / 100
27
28
+ dict['Prices'] = pricedict
29
productdict.append(dict)
30
31
with open(outputFile, "w") as outfile:
0 commit comments