#rohit-PaymentIntent

1 messages · Page 1 of 1 (latest)

sacred quarry
#

Hi there, I'd recommend you to update your integration to use the PaymentElement + PaymentIntent API.

#

So after creating the PaymentIntent, send its client_secret to front end, use the client_secret to render the payment elements, where your customer can input the card details

A payment method will be created implicitly under the hood.

small bane
#

for the client side, I can use stripe checkout form with this?

sacred quarry
#

Yes, using Stripe Checkout is even easier, you just create a Checkout session and open the session.url in your browser.

small bane
#

and I can also use it with subscription as well?

#

Currently:

  1. I have a custom form at client side to capture customer card details.
  2. Then I create Stripe.card.createToken with these details.
  3. Then I add card object to the stripe customer sources
sacred quarry