#dizzydizz1101_api

1 messages · Page 1 of 1 (latest)

raven jungleBOT
hexed nacelleBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

raven jungleBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1267381191112392716

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

digital copper
#

const newInvoice = await stripe.invoices.create({
customer: stripeCustomerId,
collection_method: 'charge_automatically',
description: Vielen Dank für die Bestellung!,
metadata: {
"source": “productOrder”,
},
});

  //----------------------------------------------------------------------
  // [ADD Products AMOUNT AND SHIPPING COST TO INVOICE]
  //----------------------------------------------------------------------
  /// Producte 1 TAG AMOUNT
  await stripe.invoiceItems.create({
    invoice: newInvoice.id,
    customer: stripeCustomerId,
    price: "price_id1”,
    quantity: amountOfNFCTags,
  });

  /// SHIPPING COST
  await stripe.invoiceItems.create({
    invoice: newInvoice.id,
    customer: stripeCustomerId,
    price: "price_id2”,
    quantity: 1,
  });



  //----------------------------------------------------------------------
  // [SEND INVOICE]
  //----------------------------------------------------------------------
  await stripe.invoices.finalizeInvoice(newInvoice.id);
wraith mason
#

Hi there, the invoice wasn't paid automatically because its auto_advance is false.

digital copper
#

hi jack thanks for the reply

#

so we did set this auto_advance to true and we quess the are now just marked as open cause we need to wait some time util the payment is simulated right?

wraith mason
#

No you didn't set auto_advance to true for this invoice.

digital copper
#

yes, but in the background we did and did create some new invoices

#

req_FOwBPtZEe11hCz

#

and did set autoadvance to true and now cause they still marked as open/incomplete we think its cause we need to wait some time, or should id be then paid instantly

wraith mason
digital copper
#

thanks a lot for your help