#bign0name-pci-windowsapp

1 messages · Page 1 of 1 (latest)

void questBOT
random jay
#

Is this a net-new integration? Or a legacy integration that you're working on?

high citrus
#

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.

random jay
#

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)

Learn how to embed a custom Stripe payment form in your website or application. Build a checkout form with Elements to complete a payment using various payment methods.

high citrus
#

is it possible for it to be all in c# , no javascript?

random jay
#

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.

high citrus
#

So the thing is there is no server - its just a local windows desktop app.

random jay
#

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?

high citrus
#

its a windows app, like .exe

random jay
#

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?

high citrus
#

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

random jay
#

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).

high citrus
#

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

void questBOT
high citrus
# random jay Yeah, I don't think there's a way around using Javascript for this unfortunately...

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

vivid osprey
#

👋 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

high citrus
#

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.

vivid osprey
high citrus
#

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?

vivid osprey
#

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

high citrus
vivid osprey
#

Do you mean the bank redirects that paypal does? Or the bank redirects payment methods that stripe offers?

high citrus
#

that stripe offers , I can't accept paypal since I am based in Canada

vivid osprey
#

gotcha

#

You'll need to check the specific payment methods you're interested in to know more

high citrus
#

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.