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.
- Multivendor site-Seller payment set-up in PayPal Payments Standard
- Direct Debit/Credit Card Payment: is not listed under Accept Payments Settings (Advanced Options ) in REST APIs
- This organization can't accept donations right now. in PayPal Payments Standard
- Multiple subscription links not working in REST APIs
- PayPal integration with Next, Lambda and API Gateway - 400 Invalid Request in Sandbox Environment