#zzawaideh - Code

1 messages · Page 1 of 1 (latest)

desert crag
#

Hi 👋

dusky crescent
#

Hello

desert crag
#

When I use the submit function in the client side it does not send the credit card info to the server
Stripe registers the transaction but marks it incomplete
(no card details)

#

quoting to keep all the context in a single thread

dusky crescent
#

All good, do you know what I am doing wrong?

#

lol I know I am doing something wrong here

desert crag
#

Okay so you are creating a checkout session. That part works. correct?

dusky crescent
#

The PaymentElement appears and I can fill out the numbers

#

So yes

desert crag
#

Wait...why are you rendering a payment element? In the second screenshot you are creating a checkout session.

dusky crescent
#

What would I render if not a payment element? I am trying to let the person enter credit info through my own custom page

#

I guess what I should ask is, how would I use the checkout-session?

#

On the front end

desert crag
#

Checkout sessions are Stripe hosted payment pages. You just need to redirect your user to the URL that is part of the session returned.

dusky crescent
#

Okay, I want my own page

#

How would I use a subscription purchase into a payment element

desert crag
dusky crescent
#

I have successfully used this for a one time payment.

#

How would I make it into a subscription purchase?

#

I thought this was only for one time payments

desert crag