#Hansi

1 messages · Page 1 of 1 (latest)

rare juncoBOT
glad mauve
#

Hi 👋 you could create a new Subscription, but the first one that was created will also likely still be in place as well.

tiny ginkgo
#

Yes, we managed to create a new one, however, when adding payment details, the first one is completed instead of the second one. Any chance I can define the subscription that should be completed?

glad mauve
#

Can you elaborate, how are you "completing" these Subscriptions?

tiny ginkgo
#

by adding the payment details

glad mauve
#

Can you provide an example of a request that you're making to complete a Subscription?

tiny ginkgo
#

we render the elements (stripe payment component) with the subscriptionClientSecret that is returned by the subscription creation method

glad mauve
#

Ah, I see, are you creating a new elements instance when you're creating the new Subscription? Those Elements instances are tied to a specific Payment Intent, so if you don't create a new instance based on the client secret of the new Payment Intent it is expected for Elements to process the payment against the client secret that it was originally provided with.

tiny ginkgo
#

yes, exactly.

#

Okay. right. So we would besides the new subscription create a new instance. during the process

glad mauve
#

Yup, exactly.

tiny ginkgo
#

Cool. We will try that. Thank you

glad mauve
#

Any time!