#h0x4rsh

1 messages · Page 1 of 1 (latest)

chilly bloomBOT
soft cedar
#

Hi! Let me help you with this.

#

Why do you need the PaymentSheet again?

fair locust
#

So that user can pay first and proceed with the updated subscription & i can show the details about the plan on that screen for what user is about to move

soft cedar
#

You can show the details in your app, and then just charge the saved payment method. Less actions needed from the customer

fair locust
#

Although if I upgrade to a different plan with a different price it shows the payment intent screen

soft cedar
#

How are you performing this update?

fair locust
#

Do let me know if I'm wrong.

What I'm doing is :-

  1. I create a subscription with the payment behaviour as default incomplete

  2. Return the latestInvoice.paymentIntent.clientSecret to the client.

  3. User is shown with a payment intent screen then user approves the payment.

  4. If a user is on let's say subscribed to plan1 with a monthly price & decides to move to yearly price of the same plan

I use subscription.update() with the new price.

It updates the plan on the stripe dashboard but doesn't show the payment sheet

soft cedar
#

Yes, that's correct.

fair locust
#

But upgrade for the same plan with different price doesn't show up the payment sheet. My end goal is to allow the users to subscribe and upgrade to the plans and pay the amount instantly

soft cedar
#

Sorry, I don't follow the issue.

#

My end goal is to allow the users to subscribe and upgrade to the plans and pay the amount instantly
What do you mean by pay the amount? Be charged on saved payment method, or be presented with a PaymentSheet?

fair locust
#

Can you please confirm

But upgrade for the same plan with different price doesn't show up the payment sheet. My end goal is to allow the users to subscribe and upgrade to the plans and pay the amount instantly

Is this normal ?

soft cedar
#

Plans is a deprecated object, I don't exactly know if it works the same way as items and Prices. Could you please share the Subscription ID?