#FallenBlade
1 messages · Page 1 of 1 (latest)
Hi
Try following these guides:
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
https://stripe.com/docs/payments/quickstart
@boreal temple could we keep chatting in this thread please ?
Can you delete your messages from the main thread and past them here also please,?
While I'm reading the documentation, how do you hide tabs here, , and only retain the card fields?
You can hide the wallet (Google Pay/Apple Pay) when initializing the Element by setting googlePay:never
https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-wallets-googlePay
You can do same for Apple Pay:
https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-wallets
Hmm, I already did the documentation above. My case is that, I have created a certain Product named Single Report.
Is this another issue ?
I want this product to be included when I want the user to pay for one-time payment
You need to use Stripe Checkout then:
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout
https://stripe.com/docs/checkout/quickstart?client=html&lang=node
reading...
Hmmm, so basically, I just need to use PaymentIntent for one-time payment? and I don't need to use the price_id in this product?
Hi! I'm taking over this thread.
It depends what you are trying to do.
First, do you want users to pay directly on your website, or on a Stripe-hosted page (like Checkout Session)?
I want users to pay directly from my website.
Can you give me some guide here how to implement it using stripe api?
The you should use PaymentIntent + Payment Element, which don't work with Product or Price (you just have to set the amount)
You can learn more about this here: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
I see, that's why I got confused why I didn't use the price_id for that product. Unlike subscriptions, you need to use a price_id and it also automatically creates an invoice but a PaymentIntent does not create an invoice. Should I manually create an invoice when using PaymentIntent or does stripe have settings for it?
Should I manually create an invoice when using PaymentIntent or does stripe have settings for it?
If you want an invoice for the payment, then you should create an Invoice yes. Otherwise you can just use a PaymentIntent.
Thanks! This clear things up. By the way, one more question, just to be sure, can you give me some guide how to create a subscription using stripe api?
Here: https://stripe.com/docs/billing/subscriptions/build-subscriptions
Note that we strongly suggestion using Checkout Session to create Subscriptions because it's much simpler to implement. But you can also use the Payment Element if needed.