#Shra_1

1 messages · Page 1 of 1 (latest)

mellow quartzBOT
astral jetty
#

hello! yes, all API requests expect amounts to be provided in a currency’s smallest unit. For example, to charge 10 USD, provide an amount value of 1000 (that is, 1000 cents).

manic apex
#

okay thank you.
How to generate Invoice for a particular period of time through api. I have priceId and quantity?

astral jetty
manic apex
#

yeah subscription,
I just want to create invoice through create invoice api with the priceId and quantity I have, but how do I do it ?

astral jetty
#

To clarify, this a recurring payment e.g. $50/month?

manic apex
#

yeah, lets assume its a montly subscription.
but when customer wants to update(add) the quantity, i'll not enable prorate, i'll just collect the amount for complete month through generating invoice and then update the subscription on payment

astral jetty
manic apex
astral jetty
manic apex
#

thank you so much, i'll follow this guide and if I stuck anywhere i'll get back

#

I don't know why this api is giving empty response
const cards = await stripe.customers.listSources(
'cus_MOm2GvE2fOcsFX',
{object: 'card', limit: 3}
);
that customer has test card details in his payment method

astral jetty