#zzawaideh - Code
1 messages · Page 1 of 1 (latest)
Hello
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
All good, do you know what I am doing wrong?
lol I know I am doing something wrong here
Okay so you are creating a checkout session. That part works. correct?
Wait...why are you rendering a payment element? In the second screenshot you are creating a checkout session.
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
Checkout sessions are Stripe hosted payment pages. You just need to redirect your user to the URL that is part of the session returned.
Okay, I want my own page
How would I use a subscription purchase into a payment element
Please start by reviewing this page: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
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
All you would do is change the prices you are using. But you should understand how Stripe subscriptions work. This is a great place to start:
https://stripe.com/docs/billing/subscriptions/designing-integration
Then you can move on to here: https://stripe.com/docs/billing/subscriptions/build-subscriptions