#CameronBryce

1 messages ยท Page 1 of 1 (latest)

open cliffBOT
hybrid crow
sonic turtle
#

Perfect, let me do this. Thank you ๐Ÿ™‚

hybrid crow
#

No problem! Happy to help ๐Ÿ˜„

sonic turtle
#
// Set your secret key. Remember to switch to your live secret key in production.
// See your keys here: https://dashboard.stripe.com/apikeys
const stripe = require('stripe')('sk_test_51LU0xrA2CaLsHzBan4SLF8Iju0dUdcw1xTEO29yGKFNyfUDzlDe8WYZXHpUQrCObtpBILigJgKRqxPqkT2IzygIo00PO7AK8ID');

const product = await stripe.products.create({
  name: 'Basic Dashboard',
  default_price_data: {
    unit_amount: 1000,
    currency: 'usd',
    recurring: {interval: 'month'},
  },
  expand: ['default_price'],
});
#

So, would it be possible to do all of this inside the products.create() by chance? Was curious if the custom_unit_amount.enabled would work with it

hybrid crow
#

default_price_data hash doesn't support custom_unit_amount.enabled, so you'd need to create custom_unit_amount.enabled on the Prices Creation API instead