#meisei81-invoice
1 messages · Page 1 of 1 (latest)
hello, are you saying that you've received invoice.paid before invoice.created and you're asking if this is expected behaviour?
yes
we don't guarantee delivery of events in the order they're generated : https://stripe.com/docs/webhooks/best-practices#event-ordering
Hi, How could I get the receipt url from an invoiced which is charge automatically? I've checked the invoice detail, but can't find the charge id from it. invoice id: in_1KsNAWCsiaKaCQKSon9wt9eD
To clarify, are you talking about this payment receipt? https://stripe.com/docs/receipts
or are you referring to https://stripe.com/docs/api/invoices/object#invoice_object-hosted_invoice_url
I mean receipt, not invoice. And it can be visited by a url link.
there's no receipt url. That hosted invoice url shows the same details as would be in a receipt
you can access one of your own invoices and take a look. You can also download the receipt via that hosted invoice url
I found the receipt url from a charge.succeeded event
sorry about the confusion, in_1KsNAWCsiaKaCQKSon9wt9eD is a $0 invoice. There won't be any underlying charge since there was no payment made in the first place
also, receipts are not automatically generated in test mode. If you want to test this out, you're going to need to find a non-$0 invoice access the underlying PaymentIntent or Charge object, then manually send the receipt from the Dashboard. After which, when you retrieve the PaymentIntent / Charge object, you will be able to see the receipt url
Why this invoice is $0? I think it's a subscription invoice and it refers to the price id price_1KqxVvCsiaKaCQKSQDRLJoGi and the amount is 0.1599€
the amount is too small, so 0.16€ is applied to the customer balance instead. It will be applied to the next invoice.You can see this customer's credit balance here : https://dashboard.stripe.com/test/customers/cus_LZW3e0eTvVwQTM
ok.
I downloaded a receipt from the invoice page and found that the receiver information is empty. How do I add the customer information as the receiver information?
Hi @novel bronze I'll take over this thread, give me a sec to catch up.
Hi @novel bronze can you send the invoice ID?
invoice id: in_1KsNAWCsiaKaCQKSon9wt9eD
Thanks, the customer information is empty and that's why it's not shown in the downloaded receipt.
You can update the customer info in Dashboard, or via API https://stripe.com/docs/api/customers/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So, If I add the address or name when creating the customer, this information would be shown in the receipt, right?
Yes
ok.thanks a lot
If I don't specify the default_payment_method when creating a subscription, while I have already attach a payment method to a customer, will it renew the subscription automatically?
You need to attach the payment method to customer and also set it as the invoice_setting.default_payment_method on the customer. So the Stripe will use this payment method and attempt to pay automatically.