#yurtdweller_customer-portal-sessions

1 messages ยท Page 1 of 1 (latest)

woeful smeltBOT
#

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

rare crane
#

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

desert belfry
#

Thanks. I am wondering what they expect people to do with the custom link for these pages, then?

rare crane
#

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.

desert belfry
#

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

rare crane
desert belfry
#

Is there any documentation on updating billing methods via the API?

rare crane
#

Oh whoops that is different

woeful smeltBOT
desert belfry
#

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?

hallow wadi
#

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

desert belfry
#

cus_SjbVUTbTuSzIo8

hallow wadi
desert belfry
#

Is there a way to trigger it ?

hallow wadi
#

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.

desert belfry
#

Can you send me a screenshot of the way to trigger it manually?

hallow wadi
#

I'll add on to that ticket and hopefully we will get this fixed up for test clocks soon.

#

That opens up a modal where there is a button to trigger it.

desert belfry
#

OK, and is the only way for a user to cancel a subscription is if we include links in the emails to manage subscriptions?

hallow wadi
#

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.

desert belfry
#

Is there an email event associated if they cancel?

hallow wadi
#

No

#

You could send one based on customer.subscription.deleted

desert belfry
#

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

hallow wadi
desert belfry
#

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

hallow wadi
#

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.

desert belfry
hallow wadi
#

Oh okay yeah that looks enabled now.

#

But you are saying you don't see a redirect to Customer Portal from the actual email?

desert belfry
#

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

hallow wadi
#

Ah

#

๐Ÿค”

#

You are using the same email associated with the Customer in your sandbox?

#

I assume so

desert belfry
#

I just realized there's a difference between sandbox and test mode

hallow wadi
#

But just double checking

#

Oh yes there is

desert belfry
#

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

hallow wadi
#

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)

woeful smeltBOT
desert belfry
#

Are there any past due events that are triggered for subscriptions?

weak jolt
desert belfry
#

Is there any email flow that happens automatically around that?

desert belfry
#

I wonder if it's bundled under payment failure, it doesn't seem to be included explicitly

weak jolt
#

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?

desert belfry
#

I was looking at Settings > Billing > Subscriptions and emails primarily

#

There are a few things I'm curious about how we can handle:

  1. Customer having the ability to change their payment details
  2. Customer having the ability to cancel their subscription
  3. Cancellation email being sent to customer upon cancellation
  4. 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
#
  1. And configuring a renewal email for subscriptions 30 days before - right now all I see is the 7 days before option
weak jolt
#

For 5, there's no way to do that from within Stripe, so you'd need to build that into your app.

desert belfry
#

For 3, I don't see a place to manage that template

weak jolt
#

What template?

#

For the cancellation email?

desert belfry
#

Yes

weak jolt
#

I don't think that one can be modified. You could just send your own based on the relevant events.

desert belfry
#

Is there a hook that can be sent for expiring cards?

weak jolt
desert belfry
#

That one made me wonder if it was still available

#

It says it is part of the legacy api

weak jolt
#

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.

desert belfry
#

Got it

#

Interesting that the Dashboard still offers this email then

weak jolt
#

Ya, not sure why that is.

desert belfry
#

Do you know what event is triggered for this email?

weak jolt
#

Did you look for it in the Dashboard?

desert belfry
#

On a current subscription?

#

I haven't been able to trigger it in the test environment

weak jolt
#

What is the Customer ID for that Customer?

desert belfry
#

I'm using cus_SjcMF8DLc2GSBS in a test environment; if you can trigger it remotely that would be great

weak jolt
#

That's not the Customer from that email though, right?

desert belfry
#

No, that email was sent as a test

#

Using the preview

woeful smeltBOT
weak jolt
desert belfry
#

Thank you

woeful smeltBOT