#contact_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1291606521729257554
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
You shouldn't collect the card details by yourself if you're not PCI compliant: https://docs.stripe.com/security
If you aren't PCI compliant, Payment Element integration should be used: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements
As long as your server gets card details at any point of time even for passing through, this is not allowed by PCI DSS unless you're PCI compliant
Okay.
So, I inject the stripe html code. and provide success url etc.
How do I know the payment method id.
for a customer.
What do you need this Payment Method ID for?
I am creating the customer at the backend + Product + price.
When I need to charge a payment.
How do you charge the payment? Which integration path are you following? Could you share the doc?
I need to tell stripe this is the customer, this is the product and this is the price.
I have product and price in my system. I would create them in stripe and link them using stripeId
e.g. stripeProductId, stripeCustomerId etc
Could you share the example Payment Intent ID (pi_xxx) that you have done with Stripe, so that I can check how your integration works, and provide the solution that fit your use case accordingly?
For direct Payment Intent integration, you shouldn't need to create a stripe product first
I have not reached that stage.
In the guide I shared above, it mentioned how the payment can be created including collecting the payment method details
I can share my client id if thats what you want. or code.
You shouldn't need to access the payment method ID at all
I'd recommend checking the guide above and let me know if any step isn't clear
I think there is a disconnect.
I think you are saying that I should not do the server side integration.
and I am saying I want to do the server side integration.
This is my code.
I can remove the paymentMethod code
If that is a problem.
Hi @north niche I'm taking over this thread.
Can you tell me the current problem that you are trying to solve?
I have real esate portal and I am trying to setup infra for charging payment
I decided to go with the server side integration
In my DB, I have stripeids
Product, Prices etc
ofcourse I dont want to store the credit card and other details
Is about accepting a payment from your customer? You can get started from https://docs.stripe.com/payments/accept-a-payment
https://stripe.com/docs/payments/save-and-reuse you can follow this guide to store card details
I am not PCI compliant and donot want to store credit card.
Sure, the RAW PAN is saved securely with Stripe, and you'll get a PaymentMethod ID for future payment. More details in the guide that I shared.