PayPalServerSDK 0.6.0
dotnet add package PayPalServerSDK --version 0.6.0
NuGet\Install-Package PayPalServerSDK -Version 0.6.0
<PackageReference Include="PayPalServerSDK" Version="0.6.0" />
paket add PayPalServerSDK --version 0.6.0
#r "nuget: PayPalServerSDK, 0.6.0"
// Install PayPalServerSDK as a Cake Addin #addin nuget:?package=PayPalServerSDK&version=0.6.0 // Install PayPalServerSDK as a Cake Tool #tool nuget:?package=PayPalServerSDK&version=0.6.0
Getting Started with PayPal Server SDK
Introduction
⚠️ Beta Release Notice
This version is considered a beta release. While we have done our best to ensure stability and functionality, there may still be bugs, incomplete features, or breaking changes in future updates.
Important Notes
- Available Features: This SDK currently contains only 3 of PayPal's API endpoints. Additional endpoints and functionality will be added in the future.
- API Changes: Expect potential changes in APIs and features as we finalize the product.
Information
The PayPal Server SDK provides integration access to the PayPal REST APIs. The API endpoints are divided into distinct controllers:
- Orders Controller: <a href="https://developer.paypal.com/docs/api/orders/v2/">Orders API v2</a>
- Payments Controller: <a href="https://developer.paypal.com/docs/api/payments/v2/">Payments API v2</a>
- Vault Controller: <a href="https://developer.paypal.com/docs/api/payment-tokens/v3/">Payment Method Tokens API v3</a> Available in the US only.
Find out more here: https://developer.paypal.com/docs/api/orders/v2/
Install the Package
If you are building with .NET CLI tools then you can also use the following command:
dotnet add package PayPalServerSDK --version 0.6.0
You can also view the package at: https://www.nuget.org/packages/PayPalServerSDK/0.6.0
Initialize the API Client
Note: Documentation for the client can be found here.
The following parameters are configurable for the API Client:
Parameter | Type | Description |
---|---|---|
Environment |
Environment |
The API environment. <br> Default: Environment.Sandbox |
Timeout |
TimeSpan |
Http client timeout.<br>Default: TimeSpan.FromSeconds(100) |
LogBuilder |
LogBuilder |
Represents the logging configuration builder for API calls |
ClientCredentialsAuth |
ClientCredentialsAuth |
The Credentials Setter for OAuth 2 Client Credentials Grant |
The API client can be initialized as follows:
PaypalServerSdkClient client = new PaypalServerSdkClient.Builder()
.ClientCredentialsAuth(
new ClientCredentialsAuthModel.Builder(
"OAuthClientId",
"OAuthClientSecret"
)
.Build())
.Environment(PaypalServerSdk.Standard.Environment.Sandbox)
.LoggingConfig(config => config
.LogLevel(LogLevel.Information)
.RequestConfig(reqConfig => reqConfig.Body(true))
.ResponseConfig(respConfig => respConfig.Headers(true))
)
.Build();
API calls return an ApiResponse
object that includes the following fields:
Field | Description |
---|---|
StatusCode |
Status code of the HTTP response |
Headers |
Headers of the HTTP response as a Hash |
Data |
The deserialized body of the HTTP response as a String |
Environments
The SDK can be configured to use a different environment for making API calls. Available environments are:
Fields
Name | Description |
---|---|
Production | PayPal Live Environment |
Sandbox | Default PayPal Sandbox Environment |
Authorization
This API uses the following authentication schemes.
List of APIs
Classes Documentation
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- APIMatic.Core (>= 0.4.3)
- Microsoft.CSharp (>= 4.7.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.