#dandingman

1 messages · Page 1 of 1 (latest)

gaunt trailBOT
spiral fractal
#

Hi there 👋 can you elaborate on what you're hoping to accomplish on the Invoice level? The hosted_invoice_url field is a field on the Invoice object, is your goal to avoid surfacing that to your customers?

elder frost
#

I should add - It's fine if it has to be a workaround with webhooks and later updating the invoice after it's finalized. I couldn't see how to edit this option in the send email call, the finalize invoice call, create invoice call, or the update invoice call.

I'd like the default option in my settings (And settings for connected accounts) to stay as "including" the link in the email. But I have a use case where I want to ovrerride the default by excluding the link in the invoice email template. And just can't seem to find how but feel like there's gotta be a way... there's always a way with this awesome API

#

The goal is the following... I have Stripe connect users who serve their end customers "in person" and probably have about a 20-30% use case of accepting checks/ cash for payments. But they use our system because they have complicated billing structures with their customers and need to track everything in detail.

#

They also pass on processing fees to their customers about 50% of the time. We calculate the application fees per invoice and decide whether it's an additional line item to pass to the end customer or whether our connected account eats the cost

#

Because of this, we want want to expose a UI to them ahead of time at the invoice level that lets our connected accounts choose the payment method that this cutomer has to pay with

#

This is great because Stripe invoices supports this perfectly

#

And then we calculate the fees appropriately and lock in the end customer to abiding by the payment method mandate

#

But...

#

When the payment option is outside of band (check, cash, etc.) there is a problem. The invoices that get sent to the customers include the stripe hosted URL

#

And when the invoice is created there is an API constraint that there must be at least 1 payment_method_types

#

none of which are outside of band types

#

The invoice was created without the added fees because it is intended to be paid in cash/ check

#

So we cannot let the customer pay electronically but still want all the other benefits of tracking this invoice and having our customer mark it as paid out of band

gaunt trailBOT
elder frost
#

So in this 20% use case, I want to surpress the hosted_invoice_url

#

from the email at the invoice level

#

And when I saw it in the Stripe UI, I was like sweet! This can work perfect

#

But I don't see how to get it to work with the API (again probably missing something)

spiral fractal
#

Gotcha. We aren't too familiar with the prebuilt email functionality in this forum, but I don't think what you're describing is possible with it.

#

The approach that is coming to mind for this, is to instead try to suppress email functionality for these Invoices and generate your own emails for them.

elder frost
#

You can see the checkbox option in the invoice creation step in stripe's ui

#

Something exposes functionality to get rid of that button

#

Yeah... that just turns from 1 hour of work to 1 week of work and a host of surrounding bugs

#

/ issues that come with email deliverability, etc.

spiral fractal
#

I've double checked the parameters available for Invoices, and don't see any that seem like they would correspond to suppressing the generation and presentment of a link to the hosted invoice page. I see the checkbox you're referring to in the dashboard, but it's worth noting there isn't 100% parity between dashboard features and API features, some functionality is not available for both approaches.

#

I'll be sure to capture your feedback that this is something you'd like to see offered in the future, so our teams can consider that as they're considering what to build next.

elder frost
#

Thank you Toby!

#

The other thing that would solve my problem if it better aligns with product roadmap is to allow 0 "payment methods" OR have out of band one of the options