#fkaib-PE-subs

1 messages · Page 1 of 1 (latest)

sweet waveBOT
#

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.

summer spruce
#

Hi, let me help you with this.

sweet waveBOT
summer spruce
narrow pewter
#

So with Payment Elements, is it possible to make the user subscribe to a subscription? Or is it just a way to add a payment method?

summer spruce
narrow pewter
#
  1. the user enters their payment method. 2. attach the payment method to the customer object as defautl payment method. 3. create a subscription using the default payment method.
#

Is there a way to do this all in one step? Make the user subscribe to the subscription the moment they enter their payment info in the Payment Elements?

trail dagger
#

👋 Taking over for my teammate. I recommend you play around with this first

#

If you're using the PaymentElement, I recommend you review these guides:
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements - this requires you to create the customer and subscription client side first, then collect payment details

https://stripe.com/docs/payments/accept-a-payment-deferred?platform=web&type=subscription - this lets you present the customer with the PaymentElement before you create a subscription server side. You create a payment method and confirm the payment simultaneously