#meisei81-invoice

1 messages · Page 1 of 1 (latest)

lusty dove
#

hello, are you saying that you've received invoice.paid before invoice.created and you're asking if this is expected behaviour?

novel bronze
#

yes

lusty dove
novel bronze
#

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

lusty dove
novel bronze
#

I mean receipt, not invoice. And it can be visited by a url link.

lusty dove
#

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

novel bronze
#

I found the receipt url from a charge.succeeded event

lusty dove
#

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

novel bronze
#

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€

lusty dove
novel bronze
#

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?

summer gorge
#

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?

novel bronze
#

invoice id: in_1KsNAWCsiaKaCQKSon9wt9eD

summer gorge
#

Thanks, the customer information is empty and that's why it's not shown in the downloaded receipt.

novel bronze
#

So, If I add the address or name when creating the customer, this information would be shown in the receipt, right?

summer gorge
#

Yes

novel bronze
#

ok.thanks a lot

novel bronze
#

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?

summer gorge
#

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.