#rtm0699_best-practices

1 messages ¡ Page 1 of 1 (latest)

native lakeBOT
#

👋 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/1232977411184791553

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

bold fiberBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

pine mauve
#

Before I asked about using Stripe.js in a framework called Tauri but what's the recommended practice if I wanted to use Stripe in a native macOS app using Swift?

#

I see there's an iOS sdk but that doesn't seem to support macOS.

bold fiberBOT
hollow wagon
#

hey @pine mauve

pine mauve
#

Is checkout the only way or is it possible to use the REST API ?

hollow wagon
#

as I explained earlier you can either use Checkout, or use Stripe.js in a webview

pine mauve
#

Ok, just wanted to clarify that there wasn't another way if the app was built using swift

hollow wagon
#

when it comes to directly hitting the Stripe API from a "frontend" app installed on a client we don't recommend that at all, since you'll be exposing your secret keys which is compromising

#

and a total risk

pine mauve
#

Well, the app can make a request to a backend server and the server then makes calls to the stripe rest api

#

That would protected the secret keys and make things secure

#

Would this be doable and okay with Stripe?

hollow wagon
#

but if you want to build your own way to collect payment method information and sending it to your server you would have to be PCI/DSS compliant

pine mauve
#

The server wouldn't store any sensitive information, just a proxy to Stripe. It would hold information temporarily but the idea is to pass it all to Stripe.

#

Would that require the server to still be PCI/DSS compliant?

hollow wagon
#

the server and the frontend

#

both

pine mauve
#

ok, got it. Thanks again.

hollow wagon
#

and once you do you need to contact https://support.stripe.com/?contact=true to have access to RAW PAN support

native lakeBOT