#bign0name-pci-windowsapp
1 messages · Page 1 of 1 (latest)
Is this a net-new integration? Or a legacy integration that you're working on?
I only found this tutorial on how to get started in wpf: https://www.youtube.com/watch?v=AVYmpjJADu0&ab_channel=tauriuslitvinavicius its pretty old. To be honest I dont how to get started with the api for a windows app.
I just simply want the user to provide card / billing details and then charge. No customer or anything.
Ahhhh, okay. So that's a legacy flow that we don't recommend for new integrations. There are really good tutorials and quickstart docs that you should be using for new integrations that give you code snippets to copy/paste for .NET: https://stripe.com/docs/payments/quickstart?lang=dotnet
This uses the Payment Element alongside Javascript to accept payment credentials without allowing them to touch your server (which is required for PCI compliance)
is it possible for it to be all in c# , no javascript?
Unfortunately not. The requirement comes from making sure that payment credentials go direct from the client to Stripe without touching your server, which (as far as I know) Stripe only supports using Javascript.
So the thing is there is no server - its just a local windows desktop app.
What are you building? Is this just a windows client that people will download and run on their local machine to do a thing? Or are you creating a web-based app and just testing locally?
Ahhhhhh, okay. Hmmm... let me dig a minute on that and see if there's any way to get around the need for Javascript. Out of curiosity what are you using to render the front-end right now?
WPF so xaml front end and c# backend
also idk im hoping this is possible, but if u choose a wallet not a card, then it would open up ur browser with the wallet payment u selected
Yeah, I don't think there's a way around using Javascript for this unfortunately. All the avenues for doing this without Javascript have been deprecated at this point. I hate giving that answer, but it ultimately is the more secure route and will have less downstream effect later on (e.g. going through the massive undertaking of proving your client-only integration is PCI compliant).
How would I set the type to say for example apple pay? it does not appear in the options
and when trying to add a PaymentMethodCard there is no variable to set the number
i mean i can legit just screenshot the one place where payments are handled, I wanted to avoid the whole privacy thing by setting it up like this: ppl could buy premium and it would just be attached to their pc, no account or name or anything - when payment goes through a local license file is created. thats it. then if they bought it as a subscription, if the app was offline for say 2 months, when online, if license key expired, it would just check if the subscription is still active then extend license file. super simple no data stored anywhere
👋 hopping in here two-shoes has to head out - give me a minute to catch up
How would I set the type to say for example apple pay? it does not appear in the options
Apple Pay isn't a separate type - we consider it to be a card
and when trying to add a PaymentMethodCard there is no variable to set the number
Yeah, like two-shoes mentioned, this is because providing raw card numbers directly to our API isn't something we generally recommend and is something you'd have to write in to support (https://support.stripe.com/contact) to get enabled
so if i have a windows app which backend is only c#, is it possible to have a custom payment page using Stripe? - is it possible only if I contact support? Or am I forced to just embed a webbrowser and open a payment link.
I'd really like to avoid having to embed the payment page.
It's potentially possible if you contact support, but that would require you to be PCI compliant (https://stripe.com/docs/security/guide#validating-pci-compliance)
so if by contacting support i can provide raw card numbers , for wallets, can I have the user click the wallet they want (say PayPal) , can I open the paypal link in their browser, then just loop and wait till the status is paid or cancelled?
For paypal, yes, you could do that
The other wallets like apple pay and google pay would be different - you'd have to create your own site to direct them to in order to complete the payment
bign0name-pci-windowsapp
could I also do that with bank redirects?
Do you mean the bank redirects that paypal does? Or the bank redirects payment methods that stripe offers?
that stripe offers , I can't accept paypal since I am based in Canada
gotcha
it'll really depend on the specific type of bank redirect type - things like bancontact allow you to handle the redirect to the URL manually so you could choose to direct them to the bancontact link in their browser (https://stripe.com/docs/payments/bancontact/accept-a-payment?platform=web&ui=API#handle-redirect)
You'll need to check the specific payment methods you're interested in to know more
aight, sucks that I cant open google/apple pay in browser, and rlly sucks that paypal not allowed in canada (most apps/sites offer paypal) 🤷 I'm contacting support to get access to providing raw card numbers directly to stripe API. i guess i could try braintree for paypal but their fee is bigger.