#solbass_saved-pms-invoice-page
1 messages ยท Page 1 of 1 (latest)
๐ 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.
type is either 'card' or 'us_bank_account'
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?
Yes I believe, here is an image
Okay and you are expecting saved payment methods to be present on this UI?
Yes
Have those payment methods been saved with the correct allow_redisplay parameter?
I don't see allow_redisplay in the docs?
Also the payment method is attached to the customer
and the transactions show the payment method i am passing in Invoice.create
That doesn't mean we will display it, if the customer has not explicitly granted consent for this payment method to be displayed
Where does this get passed to? The invoice? or another object?
Ah it's limited ~
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"
Yes
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
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
How are your customers saving their payment methods?
They are not, they are just going to pay invoices
so it gets saved automatically by stripe after their first paid invoice
And you have seen this behavior previously with the Hosted Invoice Page? I'm in the middle of writing a test integration but I notice our docs do not mention displaying saved payment methods here:
https://docs.stripe.com/invoicing/hosted-invoice-page
No I have never done this successfully, but it's what I want to do
Currently my users are manually inputting info every time
Okay but I'm not 100% certain that functionality exists. Let me check with a colleague in case I'm missing something.
Yeah I don't think it exists because Allow Redisplay is set to 'always' and it's still not appearing on the invoice page.
Yeah I just tested with a Payment Method I configured to always.
I am thinking you would also need to set something on the Invoice object itself. Where we have implemented this functionality, e.g. Stripe Checkout, we allow require you to specify that you want to display saved PMS
I don't see anything similar on the Invoice object
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
Oh that makes sense
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.
Still, it's a feature we know people want so we are reviewing how we can do it. You can sign up for our developer newsletter to stay informed of future developments.