#balconytom-elements

1 messages ยท Page 1 of 1 (latest)

spiral bloom
#

hi! that's not something the PaymentElement component is really designed or optimised for to day(just creating a PaymentMethod), it's really meant for a form that accepts payment details and starts the payment immediately.

topaz birch
#

Ideally Iโ€™d like the following scenario to happen:

  1. Customer opens up the form
  2. Stripe elements are created and mounted
  3. Customer inputs their data (ie email, name, etc), and payment data (eg card number or other methods into stripe elements form)
  4. Upon submitting the form, payment data is validated, payment method created on the frontend and everything is then sent back to the server
  5. On the server customer is created, payment method attached and the actual payment (or subscription) is being created.
  6. The rest is done via web hooks.

So far Iโ€™ve been achieving this on the frontend with a separate card element and stripe.createPaymentMethod etc. Is such scenario possible with stripe elements?

Thx

spiral bloom
#

it's common feedback and we have some work done on supporting it in future but nothing to announce yet

topaz birch
spiral bloom
#

pretty much, but also most payment methods don't really support that flow (creating PaymentMethods first and then confirming them on the server side later). It's really only cards that supports it, and it really only supports that for legacy migration reasons.

#

our recommended integrations are for client-side confirmation with UIs like the PaymentElement where entering the info leads to the payment attempt straight away, to increase conversion

#

but like I said we're doing some active work on enabling this two-step checkout flow much better with the PaymentElement, and there's even a beta for it I believe. If you have a Stripe contact you work with you could ask them about it!

topaz birch
#

OK, thanks very much for the detailed explanation, it put all the pieces into place for me thankyou I'd be interested in using the beta, how do I get a Stripe contact ๐Ÿ™‚ ?

mossy sky
#

Hi ๐Ÿ‘‹ jumping in as my teammate needed to step away. Unfortunately we're not terribly familiar with that side of things and what that process looks like, so I'm not sure.

topaz birch
#

sure thing, I'll figure that out ๐Ÿ™‚ thx again

#

also, what is the best way to keep track of stripe updates, eg when you release new stuff?

mossy sky
#

We have our changelog for changes to Stripe products in general:
https://stripe.com/blog/changelog

As well as an API specific changelog for any changes made to just the API:
https://stripe.com/docs/upgrades

And at the very bottom of any of our documentation pages (the API changelog linked above is a good example) there is an option to provide your email address and subscribe to our developer-oriented updates.

topaz birch
#

awesome, thx

mossy sky
#

Any time!