#solbass_saved-pms-invoice-page

1 messages ยท Page 1 of 1 (latest)

hearty pineBOT
#

๐Ÿ‘‹ 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/1326696833921060958

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

neon hazel
#

type is either 'card' or 'us_bank_account'

viscid rock
#

Hi ๐Ÿ‘‹

Are you referring to the Hosted Invoice Page? The web UI that you are sent to when you navigate to the hosted_invoice_url?

neon hazel
#

Yes I believe, here is an image

viscid rock
#

Okay and you are expecting saved payment methods to be present on this UI?

neon hazel
#

Yes

viscid rock
#

Have those payment methods been saved with the correct allow_redisplay parameter?

neon hazel
#

Also the payment method is attached to the customer

#

and the transactions show the payment method i am passing in Invoice.create

viscid rock
#

That doesn't mean we will display it, if the customer has not explicitly granted consent for this payment method to be displayed

neon hazel
#

Ah it's limited ~

viscid rock
#

Wait sorry let me take a step back, you said you are passing the payment method during Invoice create, but you are using the collection method "send invoice"

viscid rock
#

I think you might be working at cross purposes. The intent of collection_method: "send_invoice" is to provide the Customer with a UI that allows them to enter new payment method information

neon hazel
#

I was just trying to pre fill it to show something, my main goal is to send invoices to customers and they see existing payment methods on file to select from instead of manually inputting it

#

It seems what I have to do is listen to webhooks when payment methods are added and update allow_redisplay to true. Correct? and remove default_payment_method for create invoice

viscid rock
#

How are your customers saving their payment methods?

neon hazel
#

They are not, they are just going to pay invoices

#

so it gets saved automatically by stripe after their first paid invoice

viscid rock
neon hazel
#

No I have never done this successfully, but it's what I want to do

#

Currently my users are manually inputting info every time

viscid rock
#

Okay but I'm not 100% certain that functionality exists. Let me check with a colleague in case I'm missing something.

neon hazel
#

Yeah I don't think it exists because Allow Redisplay is set to 'always' and it's still not appearing on the invoice page.

viscid rock
neon hazel
#

Does that field exist for the invoice object?

#

I can't find it

viscid rock
#

I don't see anything similar on the Invoice object

neon hazel
#

that's kind of crazy lol

#

no one has ever asked for this?

viscid rock
#

No I think that's valid. Let me see if that is something in the works

#

Yup this has been raised in the past. It is something we are working on but the security requirements are non-trivial.

This is because, anyone who has that link would be able to trigger a payment on that payment method. We don't require a login or anything like that using the Hosted Invoice Page

neon hazel
#

Oh that makes sense

viscid rock
#

Yeah so you can see why it might take a while to get all the security in place before we can allow something like that.