Set different payment method for Azure pay-as-you-go subscriptions - azure

In the Azure portal I have added two different credit cards. One of them is set as Default.
I have several pay-as-you-go subscriptions. All of them show the "Default payment method" and I can't find any way to specify the payment method per subscription. Should this be possible?

I tried to reproduce the same in my environment to Set different payment method for Azure pay-as-you-go subscriptions:
Please follow the steps to change the payment method.
Azure Portal > Subscription > Payment Methods > Add payment method.
If you have 2 or more payment methods in single subscription, to make it as default payment method, Select make default option.
Reference: Add, update, or delete a payment method - Microsoft Cost Management

Related

Can I use multiple different Stripe customer portals for one Stripe account in an application?

I want to add two separate customer portals per Stripe account in an application. How should I do this?
I searched through Stripe documentation, but have had no luck yet. Since I'm new to Stripe I need help with this issue.
You can set up only one Customer Portal Link through Dashboard settings, but you can use API to create many configurations as you need (for example, configuration 1 enables subscription update, and configuration 2 enables subscription cancel).
After that can you call the Customer Portals API to create a portal session with a configuration, and your customer can visit its url and access the portal.

Stripe Customer Portal - show specific subscription

I have one Stripe Customer, that attached to many companies into my project. Every company has its own subscription. So one Customer has many Subscriptions.
But during manage subscriptions on Customer Portal page I want to see just one subscription related to company (for now I see all Subscriptions related to the Customer).
Is there way (param) to show just one subscription related to specific Company (maybe by its ID) on Customer Portal page?
It's not possible right now to restrict the subscriptions managed in a Customer Portal session. You pass the customer parameter on creation and all subscriptions associated to that Customer object are manageable.

How to disable "renew" option for canceled plans on Billing Portal?

I am using Stripe and Billing Portal.
If the user has canceled subscriptions in the past, then Billing Portal displays a list of canceled subscriptions and offers the option to renew for each canceled subscription:
The problem is that this allows users to subscribe to the same or different membership multiple times. For example, if I want my website to offer three types of membership:
Pro
Premium
Gold
and users can only be subscribed to one type of membership at a time - Billing Portal with that "renew" option allows user to subscribe to the two or more memberships (subscription plans) at a time: Lets say that user first subscribes to "Premium", then he cancels it... Then subscribes again to "Premium"... On Billing Portal he will be able to "renew" (subscribe) to "Premium" again...
Is it possible to disable (remove) that "renew" button (option)? I was looking into settings but couldn't find anything: https://dashboard.stripe.com/test/settings/billing/portal
Also I couldn't find anything in the documentation, FAQ section, etc.
That's because those subscriptions are set to cancel at period end, rather than immediately. They are not actually cancelled yet and can be reactivated. How are you cancelling these subscriptions?
If cancelling yourself via the API, make sure you aren't using cancel_at_period_end (API ref) and instead cancel immediately.
If you're letting customers cancel via portal, make sure to set the cancellation mode=immediately (API ref).
Similar options should be available if cancelled via the dashboard.
Once in this state (say if it were what you wanted), you can limit the portal session to only apply to a specific product/price. So you'd need to determine which of your gold/pro products was the active/new plan and create a portal configuration that only allowed updates for subscriptions for that product/price.

How to change credit cards on active subscriptions in Stripe while being SCA compliant (Intents API)?

I have multiple active subscriptions that were set up by my customers using their credit cards when signing up using intents API for SCA compliability.
Let's assume their cards expire and they want to change the default card they use on all their subscriptions. Until now this was done using the cards API by setting a default card on the customer account or simply updating all the existing subscriptions setting the card as default.
How does this work to be SCA compliant? Do I need to take my customers through a lengthy setup intent process on each of their running subscriptions individually? Or is there a way to create a single setup intent and assign that to all the running subscriptions they might have?
You can set the Customer's invoice_settings.default_payment_method and that will apply to all of the Subscriptions they have - unless you've explicitly set each Subscription's payment method (in which case you'll have to update each of those instead).

Stripe use different payment method for two customer subscriptions

I am planning on integrating stripe into our application. There is a requirement to add multiple subscriptions for a customer (which looks to be possible with stripe). However, after looking at their API, I can't find a way to set which payment method will be used with each subscription. We want to enable a customer to choose two different methods for each of their subscriptions. Looking at the stripe API docs however, it seems that all subscriptions are billed to the default source on the customer. I can't find any way to specify that a specific subscription be billed to a specific payment method...
It is a current limitation of Stripe's API that subscriptions are always billed to the customer's default payment source. If you want to have multiple subscriptions billed to different sources, you'd need to have multiple customer objects, each with a different payment method as its default source, and create the subscriptions on the appropriate customer objects.
EDIT: The above is no longer true! You can now use different sources for different subscriptions, using the default_source parameter.
You can set the default_source of your subscription.
https://stripe.com/docs/api/subscriptions/object
default_source:
ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If not set, defaults to the customer’s default source.

Resources