#dizzydizz1101_api
1 messages · Page 1 of 1 (latest)
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.
- dizzydizz1101_webhooks, 3 days ago, 69 messages
- dizzydizz1101_webhooks, 4 days ago, 63 messages
- dizzydizz1101_webhooks, 6 days ago, 67 messages
👋 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.
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);
Hi there, the invoice wasn't paid automatically because its auto_advance is false.
reference: https://docs.stripe.com/invoicing/integration/automatic-advancement-collection#toggle-auto-advance
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?
No you didn't set auto_advance to true for this invoice.
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
payment will be attempted in 1 hour, if you want it to paid immeidately, call this API https://docs.stripe.com/api/invoices/pay
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thanks a lot for your help