#Dimos N.
1 messages ยท Page 1 of 1 (latest)
Hello! Sorry for the wait
Can you share some example requests that your product and non-production integrations are making?
Sure, do you mean code snippets? Or just describe the requests?
I can share my code if you want to
Request IDs (so like req_123)
How do I find those request IDs? ( I am sorry I am a bit new to this, please don't get mad)
No worries at all! We have an article on this since it gets asked so often - https://support.stripe.com/questions/finding-the-id-for-an-api-request#:~:text=Using the dashboard&text=When you click into any,the dashboard URL as well.
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Okay give me a moment I am following the process to find them.
๐
Um, I think the problem became a bit more complex.
ait I am trying to send a screenshot
Yeah that gives me all the information I need
so yes, your production account is sending raw card details to your server and then sending those on to stripe
there are pretty strict compliance rules (see https://stripe.com/docs/security/guide) that you'd need to make sure you're following in order to be allowed to do that
okay wait question, is there a way that one can pass the cardElement without sending the raw card info? I know you PCI policy because I read the email sent to me. Frankly my business is really new and I am almost broke so I don't have the money for the AVS scan. So is there a way I pass the data to my server without violating your policy? I don't know if what I am asking is the right question to be honest.
The way to do that would be to create the Source/Payment method client-side and then sending that on to your server
can I saw you a small snippet of code?
sure
on the left you can see my card element which is how I get the data.
On the right you can see how I am sending them to the server.
so when you say "Payment method client-side" what is that you mean in contrast to what I do. ( no exactly I know I am getting your time but as plainly and generic as you like to answer)
Typically, most people who don't want to deal with PCI compliance will use our UI elements to securely collect card details. They can then use our stripe.js client library to create a Source or Payment Method (still client-side), and from then on the Source ID/Payment Method ID is what they pass back to their server so they're not dealing with the raw card details directly
Oh like the Stripe checkout?
kind of - but it'd be something you can embed into your own page. Take a look at our docs on the payment element (https://stripe.com/docs/payments/payment-element)
okay quick question then
so the way my price for each transaction is determined is I am asking my DB for a payment code. When it finds the payment code it gives me the price that belongs to the said payment code. Then I pass that to stripe. Can I do it like that setting the price dynamically with this payment element UI?
oh and also it determines my currency too
Yeah there's a lot of different ways to integrate with the payment element
The two main categories are:
- You can use the payment element with a payment intent (and you'd set the amount on the payment intent) https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
2.Y ou could just setamountandcurrencyclient-side when you configure the payment element so that the UI is correct and the in your server you can create the payment (https://stripe.com/docs/payments/accept-a-payment-deferred)
Alright, I ll try to follow those and see where it gets me.
If things go south in the near future can I reply in this thread?
We usually close threads after some amount of inactivity, but you can always again in the main channel and we'll create a new one for you!
Alright then. Thank you for your time and help karbi! I appreciate all the info and attention! Be well!