#Mehdei-Checout
1 messages · Page 1 of 1 (latest)
Hi there, Checkout Session and PaymentIntent are two different integration options
So are you using CheckoutSession or PaymentIntent?
Thanks for your responce .. I'm using PaymentIntent to charge the customer an amount without using "prices or products"
I want to checkout and pay this charge in server side code
Got it. You should follow this guide to integrate PaymentIntent (backend) and PaymentElements (frontend) in your application. https://stripe.com/docs/payments/accept-a-payment
Select custom payment flow https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
So, it's not posible to handle it only using server side (like passing the card info to my server, the my server do the pay with Stripe)
It's not recommended to process the sensitive card details in your server, if you really want to do that you need to take care of PCI compliance by yourself (https://stripe.com/guides/pci-compliance).
I'd suggest you to integrate Stripe.js in your webpage, so that Stripe can help you collect the card details for you, so you don't need to worry about compliance
Super!!, thank you so much 🤩
No problem!