Rest V1 Migration Guidance?

khadden-22
Contributor
Contributor

Hi, I have been using the PayPal SDK v1.9.1 (https://www.nuget.org/packages/PayPal/2.0.0-beta00?_src=template) in C# for a very long time. But I have been getting sandbox payments rejected in recent testing. It appears that the sandbox is reject V1 calls. 

All I need to do is accept credit cards on my site.

My system is all server-side. And the user should have no interaction with paypal websites during a purchase. 

It appears that the above PayPal SDK is no longer maintained. So where do I go from here? 

I'm trying to use the PayPalCheckoutSdk (https://github.com/paypal/Checkout-NET-SDK) to refactor my code. But I cannot make heads-or-tails of the workflow. 

The docs say basically:

Create an OrdersCreateRequest;

That requires an request body of type OrderRequest.

So I'm building up the OrderRequest with a single PurchaseUnit with an AmountWithBreakdown.

Then I use the PayPalHttpClient to execute the request async.

If that succeeds I should get an Order object.

 

But I'm reading in the docs that I now need to send the user to some link to approve the order. And then after that I need to capture the order? What the heck is all that? 

If I'm not using the correct SDK for accepting credit cards directly on my site, then which one should I use?

 

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.