#OptimalSurprise - invoice

1 messages · Page 1 of 1 (latest)

gilded knot
#

Hi there!

gentle geyser
#

Yes, I've looked into it

#

but it's not clear how you can send invoices with credit card payment / automatic payments

gilded knot
#

Can you clarify what you mean by that? You want to send an invoice to customer so they can pay by card, or you want customers to pay on your website by card and then you send them an invoice?

gentle geyser
#

The latter, so I'd like to send them an invoice even if they have paid

#

Just for their records

gilded knot
#

And how are you making payments with Stripe currently? Checkout Session, Payment Element, something else?

gentle geyser
#

Checkout session

#

We're using stripe connect if that makes a difference

#

are you still here?

gilded knot
#

Thanks for the info! Unfortunately it's currently not possible to have Checkout Sessions create invoices. However:

gentle geyser
#

That's strange. I can see an invoice.created event when a subsciprion is paid for using a credit card via checkout session

gilded knot
#

Oh, I assumed you were doing one-off payments. Sorry!

#

If you do create subscriptions, then yes invoices are created.

gentle geyser
#

Ah ok, so what would the approach be here?

gilded knot
#

So you want to send the paid invoices to the customer by email, at the end of every billing period?

gentle geyser
#

Yes but not our customer but their end user

#

we're using stripe_account to allow for invoices to be sent

#

any thoughts?

crystal bough
#

sorry, catching up

#

I'm not sure what the issue is exactly? if you're using subscriptions and invoices, we email a receipt to the email address associated with the Customer the subscription is for. The receipt contains a link to the invoice(https://stripe.com/docs/receipts#receipts-with-billing). What part is missing or you'd like to have instead/in addition?

gentle geyser
#

How do we send receipts using stripe connect on behalf of our customer to our customers' customers?

crystal bough
#

it just works.
Like you have a connected account acct_xxx . If you create a Customer cus_xxx and Subscription sub_xxx on that account (via https://stripe.com/docs/connect/authentication) then it just works, we use the email settings of that Stripe account that owns the Subscription object and send the email to the customer, same as how a subscription on your own Stripe account would work

gentle geyser
#

How do we adjust the stripe email settings of our customer through the api?

crystal bough
#

you don't , since they control that themselves as a Standard account, through their dashboard

#

the product isn't completely perfect here and it's completely valid to want to have a way for the platform to directly control the email and other Billing settings for the connected account, and I think it's something we want to build(as extensions to the increased control we lauched last year for platforms in https://stripe.com/docs/connect/platform-controls-for-standard-accounts) , but it doesn't exist today so it's mostly up to the connected account to control it or for you to tell them what to change

gentle geyser
#

Ah interesting. This makes sense

#

Do you know what the default email settings are for any connect account?

crystal bough
#

pretty sure the default is to send emails

gentle geyser
#

ah ok

#

I'll assume that its hopefully to send emails

#

is there any way to check this?

#

example via Account.retrieve?

crystal bough
#

there's not, there's no API access(read or write) to the Billing settings today

#

it's all dashboard-only

gentle geyser
#

ah ok

#

i just checked, i believe the default is for this to be off

#

both email customers about are off for successful payments and refunds

quaint cape
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!