Best Way To Integrate PayPal In A C# Website?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I've integrated a PayPal payment flow in a C# website, using the Checkout-NET-SDK.
It successfully creates an order and then captures payment for it.
This SDK supposedly works with the V2 API. The docs say that the 'Payer' property is deprecated, and asks to please use 'PaymentSource', instead.
Why is the Payer property even on the V2 API, then?
Even though I'd expect this SDK to be up to date on stuff like this, it returns a Payer property, but not a PaymentSource. The latter isn't even defined on the object.
My code:
OrdersCaptureRequest request = new OrdersCaptureRequest(orderID); request.RequestBody(new OrderActionRequest()); HttpResponse response = await client().Execute(request); HttpStatusCode statusCode = response.StatusCode; Order order = response.Result<Order>();
I know the Check-NET-SDK is archived and therefore likely deprecated. But it also says that you can continue to use it.
The other C# SDK, PayPal-NET-SDK, is also archived and therefore likely deprecated.
It seems like there isn't any officially supported PayPal SDK for C# anymore, or am I missing something?
The documentation doesn't clarify these things clearly enough, IMO.
There's a very knowledgeable and helpful fellow on StackOverflow, by the name of "Preston PHX". He says that we are expected to manually fumble together our own requests, these days. In other words: we are to build our own SDKs, now.
I can hardly believe it. Is this true?
What's good advice on the best practices for integrating PayPal in a C# website, nowadays?
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Getting errors when integrating standard checkout with my web site. Probably a beginner problem. in SDKs
- Button in PayPal Payments Standard
- link my PayPal business account with my WordPress website , but it's not work ?! in PayPal Payments Standard
- How can I integrate PayPal to enable direct tipping features between users on a content platform? in REST APIs
- System error for my Paypal button after years of correct working in PayPal Payments Standard