#yurtdweller_customer-portal-sessions
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/1397656127277240523
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello, good question. Looking in to this and will get back with what I can find. As far as I know we don't think we have an embedded components equivalent for the customer portal, but I do miss things
Thanks. I am wondering what they expect people to do with the custom link for these pages, then?
Yep confirmed we don't have this offering at the moment. I think the idea is that a user would code their own custom page for managing the subscriptions and manage them via individual update/cancel API calls. Definitely a bigger dev lift than embedded components or linking to the hosted page, but for some the UI/behavior flexibility is worth it.
Got it, thank you
@rare crane can you point me to any documentation on building the update payment screen for a customer?
These are folks who have subscriptions that might have an expired payment method, or are getting their notification that the subscription is going to renew
We have this page on the different kinds of updates that can be made to a subscription but we don't have a guide on building the page overall. I'm happy to look for docs to help with anything specific you are looking to figure out how to do in the API
https://docs.stripe.com/billing/subscriptions/change
Another doc that may be helpful here is our subscription schedules API which lets you schedule updates
https://docs.stripe.com/billing/subscriptions/subscription-schedules
Is there any documentation on updating billing methods via the API?
Oh whoops that is different
So for that you would update either the default payment method on the customer or subscription object depending on which you use now.
https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method
https://docs.stripe.com/api/subscriptions/update#update_subscription-default_payment_method
OK. I have been testing which emails are currently being sent out on the "Subscriptions and emails" page via the Sandbox, but the sandbox doesn't seem to send the "Credit Card Expiring Soon" email when advancing the clock. I used a card that expires 2 months before the subscription renewal date and advanced to 1 months before renewal. I get the renewal email, but not the card expiring email.
Is it because of using a test card?
๐ stepping in here
Hmm yeah I'm not sure we send that "Credit Card Expiring Soon" email in test mode.
Can you provide the Customer ID that you tested with so I can double check?
cus_SjbVUTbTuSzIo8
Hmm okay yeah we should send it: https://docs.stripe.com/billing/revenue-recovery/customer-emails#test-your-configuration
Is there a way to trigger it ?
You can manually trigger it via the Dashboard if you click on the little ๐๏ธ next to the setting in live mode.
There is a Send test email to yourself button there.
Okay I see an open ticket inernally taht this email doesn't work with test clocks currently.
Can you send me a screenshot of the way to trigger it manually?
I'll add on to that ticket and hopefully we will get this fixed up for test clocks soon.
Click on the ๐๏ธ at https://dashboard.stripe.com/settings/billing/automatic next to the setting
That opens up a modal where there is a button to trigger it.
OK, and is the only way for a user to cancel a subscription is if we include links in the emails to manage subscriptions?
Yep pretty much.
They would only be able to cancel if you provide them a way to do it or give them access to the Customer Portal.
Is there an email event associated if they cancel?
Hm. Should the subscription management link be included in renewal emails?
I have it checked for the account
But renewal emails in the sandbox are not showing a link to it
Hmm try going to https://dashboard.stripe.com/settings/billing/automatic and checking on whether you have Customer Portal enabled
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I enabled it for the sandbox and went through the "check your email for a login link" workflow and the email did not come through
When you enabled it it said you should receive an email?
Sorry, we really don't know much about the Dashboard since we just focus on the API so I'm flying a bit blind here.
Oh okay yeah that looks enabled now.
But you are saying you don't see a redirect to Customer Portal from the actual email?
When I go to test that portal, it asks me to enter an email address to receive a link to the customer portal; the link never arrives
Ah
๐ค
You are using the same email associated with the Customer in your sandbox?
I assume so
I just realized there's a difference between sandbox and test mode
The subscriptions were being created in test mode, but I was making edits in sandbox. It seems like test mode doesn't allow changes to the email pane
Yeah you would have to update the settings in live mode to affect test mode. Your sandbox is a separate environment where you can change settings and it works like test mode.
(Sandboxes are relatively new)
Are there any past due events that are triggered for subscriptions?
Hi hi! Iโm going to be taking over for my colleague here. Yes, there's an invoice.overdue event: https://docs.stripe.com/api/events/types#event_types-invoice.marked_uncollectible
Is there any email flow that happens automatically around that?
I wonder if it's bundled under payment failure, it doesn't seem to be included explicitly
Yes, an overdue subscription payment is going to be the result of a payment failure.
You're looking at using the Customer Portal for all this, right?
I was looking at Settings > Billing > Subscriptions and emails primarily
There are a few things I'm curious about how we can handle:
- Customer having the ability to change their payment details
- Customer having the ability to cancel their subscription
- Cancellation email being sent to customer upon cancellation
- Custom branding per site we use if possible (we use embedded checkout) - I wasn't sure if the Customer Portal can do that for changing payment and canceling subscription as we use one Stripe account under many brands
- And configuring a renewal email for subscriptions 30 days before - right now all I see is the 7 days before option
The first two can be done with the Customer Portal for sure.
For 3, it's mentioned here.
For 4, you can customize branding for the Customer Portal too.
Reminders for unpaid Invoices is at the bottom of this page: https://dashboard.stripe.com/settings/billing/automatic
For 5, there's no way to do that from within Stripe, so you'd need to build that into your app.
For 3, I don't see a place to manage that template
Yes
I don't think that one can be modified. You could just send your own based on the relevant events.
Is there a hook that can be sent for expiring cards?
There are. All the events are listed here, in case you hadn't landed on this yet: https://docs.stripe.com/api/events/types
(This is the event in question: https://docs.stripe.com/api/events/types#event_types-customer.source.expiring)
That one made me wonder if it was still available
It says it is part of the legacy api
Apologies. There is no longer an event for when cards expire, as it isn't something that's ~useful any more with how effective Card Updater is at this point.
Ya, not sure why that is.
Do you know what event is triggered for this email?
Did you look for it in the Dashboard?
On a current subscription?
I haven't been able to trigger it in the test environment
What is the Customer ID for that Customer?
I'm using cus_SjcMF8DLc2GSBS in a test environment; if you can trigger it remotely that would be great
That's not the Customer from that email though, right?
That's invoice.payment_failed. https://docs.stripe.com/billing/subscriptions/webhooks#events
Thank you