#rajput.abd_22

1 messages · Page 1 of 1 (latest)

crisp shadowBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

old path
#

You should share the same Customer object

#

In the first step you already have a Customer. Reuse that Customer Id for the next Subscription

frigid saffron
old path
#

If so, can you provide the first Subscription Id and the second Subscription Id?

crisp shadowBOT
frigid saffron
#

first subscriptionId : sub_1O7t29Cz4DYWbcETa5LQ4xpg
second subscriptionId : sub_1O7t5ICz4DYWbcET00yo9OEd

tepid flower
#

Hi @frigid saffron I'm taking over this thread

#

Are you asking why sub_1O7t5ICz4DYWbcET00yo9OEd is incomplete?

frigid saffron
#

yes

#

i need to active this

tepid flower
#

That's because the latest_invoice of this subscription has auto_advance set to false

#

one sec, let me take a closer look

frigid saffron
#

ok

tepid flower
#

And you didn't do it for the 2nd subscription.

frigid saffron
#

yupp because i need to use 1st subscription payment method in 2nd subscription

tepid flower
frigid saffron
#

first subscription is created during subscription where client fill their card details
but second subscription is created through user management. where client doesn't need to fill card details

tepid flower
#

What do you mean by "second subscription is created through user management." ?

frigid saffron
#

user management is our module where we can create another user of same account with some limit access actions

#

so that client distribute thier account to differ-2 user

#

according to thier work

tepid flower
#

Alternatively, before creating the subscrition, you can set the last used payment method as the customer's invoice_setting.default_payment_method, so that Stripe will use this payment method to pay the invoices generated for this customer.

frigid saffron
#

so that means i need to update customer before creating new subscription right

tepid flower
#

Yes

frigid saffron
#

okay

#

@tepid flower i did exactly as discussed but subscription is still not getting active

#

may be there is some another do i need to use any frontEnd work for this ???

tepid flower
#

What's the subscription ID?

frigid saffron
#

sub_1O7tZeCz4DYWbcETKYlDJdzD

tepid flower
frigid saffron
#

means subscription is not active beacuse my endpoint is not working properly right ???

tepid flower
#

yes

frigid saffron
#

do i need to do something extra on webhook

tepid flower
#

Your endpoint returned 502, you need to check you server log to determine why it doesnt' return 200

frigid saffron
#

subscriptionId : sub_1O7tniCz4DYWbcETHh9HNZy4
we return 200