#fkaib-subscription-pi

1 messages · Page 1 of 1 (latest)

rigid eagleBOT
#

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.

inland laurel
#

Could you share the Subscription ID?

rigid eagleBOT
#

fkaib-subscription-pi

chilly oak
#

sub_1ObsrDEvUNDxHSmfF9l6OjiW

inland laurel
#

Ah, it's what I suspected. The invoice has a '0' amount so no PaymentIntent was created

#

All the prices used for the subscription are usage based, not flat fees

chilly oak
#

will this method not work then? Do I need to create a setup intent instead?

inland laurel
#

You could use the Subscription's pending_setup_intent instead, no need to create a separate SetupIntent

chilly oak
#

Your code called confirmPayment() but you passed a client_secret associated with a SetupIntent. Did you mean to call confirmSetup() instead?

I was getting the above error when using 'pending_setup_intent' so I decided to use confirmSetup() instead of confirmPayment(). Will this automatically change the user? It seems like the payment method was added to the subscription but I just want to make sure.

inland laurel
#

I think you meant "will this automatically charge the user?". The user will not be charged, the payment method details they provided will just be saved at this point.

chilly oak
#

Sorry, I meant "charge the user".

Doesn't the "Charge specific payment method" mean that it will automatically charge the payment method attached? If not what do i need to do in order to charge the user automatically?

#

I used payment_settings={'save_default_payment_method': 'on_subscription'}, when creating the subscription.

inland laurel
#

Once you confirm the SetupIntent, you'll need to update the default payment method on the Subscription or the Customer. This won't be done automatically