I am using the Java SDK for PayPal's REST API.
However, I notice that a lot of the SDK uses a version of the API that has been deprecated (V1 instead of V2).
For example, the sample docs for executing a payment using the SDK use a PaymentExecution
Object. As you can see from the API docs, this field is not relevant in the newer API (V2) and is only used in the older, deprecated V1.
Should I still use the SDK even though it uses the deprecated (V1) API? Is there some newer SDK I should be using instead?
Update: the new SDKs are over at https://developer.paypal.com/docs/checkout/reference/server-integration/setup-sdk/