#DuckHunter-invoice

1 messages · Page 1 of 1 (latest)

clear phoenix
wispy patrol
#

So not in test mode should send an email from this code?

$invoice = $stripe->invoices->create([
    'customer' => $customer->id,
    'collection_method' => 'send_invoice',
    'days_until_due' => 30, // UPDATE DUE DATE
]);

$stripe->invoices->sendInvoice($invoice->id);
#

Also do I need to trigger $stripe->invoices->finalizeInvoice($invoice->id); as well as sendInvoice?

clear phoenix
wispy patrol
#

Oh that makes sense. I'll try that out!

clear phoenix
#

I need to step away so I’m going to archive this thread. If you need help with anything else please feel free to ask again in #dev-help or contact Stripe Support: https://support.stripe.com/contact 😄