#bachir2921

1 messages · Page 1 of 1 (latest)

brazen roseBOT
#

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.

wet latch
#

Hmm, why do you need to use paymentMethodCreation: manual?

dense temple
#

(I want to do the confirmation on the client, not the server)

wet latch
#

Why specifically do you need to attach it to the Customer manually? That should just happen as part of the default Subscription flow when the Payment/Setup Intent is confirmed

dense temple
#

So I just need to set the PaymentElement mode to "subscription" and that's it ?

wet latch
#

That flow will attach the generated pm_xxx to the cus_xxx specified, yes

#

(it has to be attached in order to be reusable)

dense temple
#

Okey thanks, I'll give it a try

#

Sorry got mixed up with all the docs

#

Actually, I can't really pass the "mode: subscription" to the PaymentElement because I'm instantiating the PaymentElement using a payment intent client_secret.

#

We can either process one-time or subscription payments based on what the customer is buying. How can I handle this switch ?

wet latch
#

I'm confused. How are you combing a mix of both the deferred and non-deferred flows?

wet latch
dense temple
dense temple
wet latch
#

If you're using the deferred flow then you don't have a PI/SI secret upfront. You defer the creation of the intent/sub until after you collect payment details

wet latch
dense temple
#

Can I use the non-deferred flow for recurrent payments ?

dense temple
wet latch
wet latch