Description
Sorry if I appear thick, but I've been banging my head on the screen for a few hours now trying to work out how to take a payment. I would be quite pathetically grateful if anyone could help me get started. I tried asking Claude, but after 14 (no kidding) code samples that didn't even compile, I've given up with it. I'd really like some human help on this.
I have a Blazor web app, although I imagine the code would be basically the same in Razor pages, and want to have a checkout page, where the user can see the amount they are to pay, enter their card details and pay via PayPal, without being redirected to the PayPal site. I would like to avoid JavaScript as much as possible, and use C# types in my code. Obviously, I don't want to capture the card details myself, I want to use HTML controls generated by PayPal.
From what I can see, the PayPal-Dotnet-Server-SDK looks like it should do the job, but the sample code shown isn't enough for me to piece together a full picture.
Anyone able to point me in the right direction? Thanks very much.