#lukas-customerportal-defaultpm

1 messages · Page 1 of 1 (latest)

blazing coralBOT
rare rover
#

@brisk atlas can you please keep the conversation in this thread?

brisk atlas
#

sure., I'm trying

#

thats the missing image / attachment

rare rover
#

Thank you

#

Is this customer portal one you configure using the API or the Dashboard?

brisk atlas
#

Yes, if it help, I can send you the customerPortal config ID

rare rover
#

Which one? Dashboard or API? And yes, the configuration would help

brisk atlas
#

Configured in dashboard. Extracted the ID and using it in API

rare rover
#

I just tested this using a portal session to add a payment method. It set the payment method as the default for that customer

#

Could you share some session IDs so I can look at the flow to see what is going wrong here?

brisk atlas
#

We re using the nuget stripe.net and want to send the SubscriptionCreate reqeust.
This works perfectly well, if the default payment method is set and throws an error, if not.

Problem identified: The user adds a payment method in customer portal, that is not flagged as default (expect customer finds a sneaky way to flag it via context menu)

#

where can i find a session ID?

rare rover
#

Thank you, I've gathered that so for. So I am trying to find examples of when this is occurring

#

You shoud be able to find them in the developer logs

#

In you Stripe dashboard

#

I created a very basic Configuration via the API using the following payload:

"features": {
  "payment_method_update": {
    "enabled": "True",
  },
},
#

And when I added a Payment Method, it was set as the default payment method

#

In the form the customer users, there should be a checkbox allowing them to indicate this should be their default payment method

#

Here is my example

brisk atlas
#

But if unchecked: The use wont have a default subscription, but an attached one for the subscription?!

#

The is a pretty flaky state

rare rover
#

It is checked by default

#

So the user actively unchecks it

#

I don't know what you mean by this sentence

The use wont have a default subscription, but an attached one for the subscription?!

brisk atlas
#

give me some minutes to double check pls

rare rover
#

Okay. Ultimately it is possible for the customer to set up their payment method as their default when entering it in the Customer Portal. The Checkbox is checked by default so that means they are actively choosing not to set it as default.

#

You can still adjust the Subscription to charge the saved payment method or update the customer to use that payment method as the default

brisk atlas
#

There is no such checkbox (sry screenshot is German)

rare rover
#

Can you share an example API request where you created this portal session?

brisk atlas
#

Using the stripe.net:

var service = new SessionService(stripeClient);

var options = new SessionCreateOptions
{
Customer = customer.Id,
ReturnUrl = returnUrl,
Configuration = stripeOptions.CustomerPortalConfig,
Locale = locale,
};

var session = service.Create(options);

#

CustomerPortalConfig = the ID from the config I built in dashboard

rare rover
#

That is not what I am asking for

#

Please share the ID of a billing portal session or a request ID

brisk atlas
#

ID is bpc_1NO0ADByMgy4BGwwSciCdZEd

#

I can send you a customer portal link as well, if that's helpful

rare rover
#

Taking a look now

#

I don't see this customer updating their payment method through a billing portal

brisk atlas
#

i didnt do it yet.

#

i will do now

#

done

rare rover
#

I do see what you mean, in terms of not seeing the default checkbox as an option

#

Okay so this did not set the the default payment method for the customer but it did set it for the Subscription

#

And you can see there is now a default_payment_method set on that Subscription

#

In my test the issue I had was my customer did not have an active subscription. So they were updating their own paymen methods.

#

But with your customer, they are managing payment methods for that subscription

brisk atlas
#

exactly. Catch is:
I cannot infuence the customer's behavior in the customer portal.
After adding the payment method, the customer now needs to find the context menu and click "as default".

This will never happen

blazing coralBOT
rare rover
#

Or you could build your own UI to collect these details from the Customer

brisk atlas
#

We were already thinking about this workaround:
listen to webhooks, adding payment methods as default if customer didn't.

But this would catch a mistake made by (stripe) design, IMAO.

Better:
If a customer has just a single payment method set (e.g. attached to subscription): Make it always a customer's default payment method.

Or:
Stay consistent in customer portal UI:
It's jsut the blue button, that messing up. If the customer would take the other option (marked blue) stripe would instantly flag as default payment method

#

I guess, it's a bug / finding ...

rare rover
#

I am still unclear on what you mean by the blue button here. When I follow the same steps to reproduce the issue the payment methods created are set as the default.

#

And in the example you provided we did see the payment method created set as the default on the subscription.

brisk atlas
#

"blue button":
marked in red. resulting in payment attached to sub, but not setting default payment method (for customer)

marked in green:
the 2nd option a customer can use.
resulting in payment attached to sub AND set as default payment method (for customer)

Unfortunately, the customer is led to the "blue button" visually

unique hare
#

lukas-customerportal-defaultpm

#

@brisk atlas We don't really have an option to configure this today but we'll flag as feedback to the product team. You should flag to our support team too: https://support.stripe.com/contact

brisk atlas
#

Thanks. Maybe that helps in the future