#bondsmith_api

1 messages ยท Page 1 of 1 (latest)

golden summitBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1309233060100702230

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

oak grottoBOT
narrow forge
#

Hi there ๐Ÿ‘‹ trying to make sure I'm understanding correctly. Is your concern about a link being included in the emails that we send?

young mason
#

Hi @narrow forge yes, I want to use sendInvoice but have the email not include the "Pay this invoice" button or the PDF from having a link to the payment page.

#

This is the PDF one

narrow forge
#

As far as I'm aware, that isn't adjustable from code.

#

But I'm also not spotting any settings within my dashboard that look like they'd be able to turn that off.

#

Suppressing those may be a dashboard only feature, but I'd suggest reaching out to our Support team to confirm if there is a setting available that I'm not aware of that adjsuts that behavior.
https://support.stripe.com/?contact=true

young mason
#

When you create a draft for an Inovice in the dashboard it is here

#

Got it got it, so this config might not be available via API

#

I'll reach out to Support, but are any of these 2 workarounds possible?

  • Delete or Remove the Payment Page after it gets created?
  • Create the invoice with no payment methods and then charge using a registered payment method?
narrow forge
#

No, you can't remove the references to our Hosted Invoice Page from the Invoice object.

Yes, Invoices can be created without a Payment Method, then our endpoint for paying Invoices can be called which accepts a payment_method parameter to specify the Payment Method you want to charge:
https://docs.stripe.com/api/invoices/pay

young mason
#

Beautiful! Thanks a lot @narrow forge I'll investigate all avenues! Cheers!

narrow forge
#

Any time! I'll be around for a bit if that doesn't do what you're hoping.

young mason
#

Thank you! I'll probably not manage to test it before this thread closes but the second alternative leaves me with enough information to work around this.

I'll post here if I make it in time tho! Cheers!

young mason
#

Just tried out not setting payment methods in Invoice creation and it configures a default.

I finalized and sent the invoice and the payment links and options are all there

#

Seems option 2 is not going to work unfortunately...

#

Maybe I can dig 2 levels deeper to the actual root cause of the issue:

We only receive ACH transfers with the us_bank_account payment method, however, the payment link doesn't allow the Customer to use a pre configured Payment Method that is not a card.

#

Is there a way for the customer to pay through the Payment Page without having to set up the bank account from scratch?

narrow forge
#

Oh wait, that page talks about the setting I was looking for.

young mason
#

Yesss

narrow forge
#

Ah, I see the setting now! Not sure how I missed it earlier. Let me grab a link and screenshot.

#

Can you check whether that's checked in your account?

young mason
#

It was, going to re-test with the change!

#

I saved the config but its still sending the link xD

#

I waited a min and ran it again and its working now!

narrow forge
#

Yess!!

young mason
#

The behaviour is the following:

  • PDF and email get created without the link
  • Payment Link exists with all the defalut payment methods but is not easily accessible to the user
#

Just tried out removing all payment methods except customer_balance which shows Bank Transfer only and there are no "active" ways to pay with the link so this definitely works!

Conclusion

  • Change Invoice Config
  • Create Invoice with customer_balance
  • Send Invoice
  • Charge later with invoice.pay by passing the pre-registered ACH Bank Account Payment Method id
  • All's good with the world
#

Thanks a lot @narrow forge really saved it! Customer Support confirmed that the link is not configurable through the API so I was thinking about bypassing this all together xD