#ErreCi
1 messages · Page 1 of 1 (latest)
Hi there!
How do you want to create the payment? With Checkout Sessions, Payment Element + PaymentIntent, something else?
with checkout page if possible , because all client info about credit card have to handled by stripe
For Checkout Sessions we recommend using a Product and Price, but you don't have to. Instead you can use price_data and product_data https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data
ok but do these parameters create a product and a price for me in the backend each time? if so I will theoretically have a lot of products in the dashboard
Technically yes it will create "ad hoc" products and prices. But there a no limit to the number of products/price you can have on Stripe's end.
understood...insted if i use a paymentintent option can i generate a link to your payment page?
if so can you tell me where i can found an example in php?
What do you mean by "use a paymentintent option"?
i meant the use of paymentintent method to create the payments
If you use PaymentIntent, then you cannot use any Product or Price. You directly set the amount in the PaymentIntent.
You can learn how to accept payments with PaymentIntent here: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
But note that we usually recommend using Checkout Session instead. It's simpler to implement and more powerful.
yes I know... but my implementation requires the product/price to be dynamic and I thought by using the 'Payment links' method I could avoid having to create the product/price every time first
First you talked about Checkout Session, then PaymentIntent, and now Payment Links? I'm confused.
If you want to accept payments with a dynamic amount, the recommended way is Checkout Sessions. But PaymentIntent can also work.
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!