PayPal.MultiTarget 1.0.1

dotnet add package PayPal.MultiTarget --version 1.0.1
NuGet\Install-Package PayPal.MultiTarget -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PayPal.MultiTarget" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PayPal.MultiTarget --version 1.0.1
#r "nuget: PayPal.MultiTarget, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PayPal.MultiTarget as a Cake Addin
#addin nuget:?package=PayPal.MultiTarget&version=1.0.1

// Install PayPal.MultiTarget as a Cake Tool
#tool nuget:?package=PayPal.MultiTarget&version=1.0.1

<p align="center"> <img height="100" src="https://raw.githubusercontent.com/devTimmy/PayPal-MultiFramework-SDK/master/paypal-logo.png" alt="PayPal logo" title="PayPal logo"> </p>

MultiFramework PayPal .NET SDK

Multi-framework PayPal SDK for .NET developers targeting different frameworks and run-times e.g .NET Framework, .NET Core, and .NETStandard

Build status Nuget SDK Downloads on Nuget

Notice

It is important to note that the original SDK was written by the original developers i.e PayPal and their repository can be found here if any questions arise.

This version transforms the original code in order to target other frameworks such as .NET Standard & Core which are not factored for in the original source code.

Usage

Install the SDK package from Nuget by running the following command in Package Manager Console.

Install-Package PayPal.MultiTarget -Version 1.0.1-beta1

Once installed, you need to define the configuration file from which the package will read settings from. If you have a Web.config or App.config file, just copy the settings below and them to your file, otherwise create a new App.Config file in the root folder of your application and add this settings therein.

N.B Set the Build Action property of the config file to Content and Copy To Output Directory property to Copy always so that the file is available when you build your project.

<configSections>
    <section name="paypal" type="PayPal.SDKConfigHandler, PayPal.MultiTarget"/>
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
  </configSections>
  
  
  <paypal>
    <settings>
      <add name="mode" value="sandbox"/>
      <add name="connectionTimeout" value="360000"/>
      <add name="requestRetries" value="3"/>
      <add name="clientId" value="AYrAaReQUybACfY3NJNZ1CNpbf8IdERKSHvA-urkP5G8YXzJd2khdkD8LT2WpDMUhXjn8NPl4sTFnYa2"/>
      <add name="clientSecret" value="EObW1isFRDZKO6xe2FvpwABDdOsGrhrsKqMrWzSC4Ndz8k5WeYnpYofCm9EAdibSEBv5Gel6J86TzENj"/>
    </settings>
  </paypal>

  <log4net>
    <appender name="FileAppender" type="log4net.Appender.FileAppender">
      <file value="PayPal.TestingLog.log"/>
      <appendToFile value="true"/>
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] %message%newline"/>
      </layout>
    </appender>
    <root>
      <level value="DEBUG"/>
      <appender-ref ref="FileAppender"/>
    </root>
  </log4net>

  <appSettings>
    <add key="PayPalLogger" value="PayPal.Log.Log4netLogger"/>
    <add key="PayPalLogger.Delimiter" value="|" />
  </appSettings>

Replace the clientId and clientSecret with your own keys from PayPal Developer Account and change the mode from sandbox to live when you everything is working for you and the application is ready to go into production.

Targets

  • NET Framework 4.0
  • NET Framework 4.5
  • NET Framework 4.5.1
  • NET Framework 4.6.1
  • NET Framework 4.6.2
  • NET Core 2.0
  • NET Standard 2.0

Credits

This project was inspired by the Original .NET SDK by PayPal and majority of the credits should go to them. You can check out their repository for further insights.

Product 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 is compatible.  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 net40 is compatible.  net403 was computed.  net45 is compatible.  net451 is compatible.  net452 was computed.  net46 was computed.  net461 is compatible.  net462 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 998 5/18/2019
1.0.1-beta1 362 5/17/2019
1.0.1-beta 376 5/13/2019

First initial clean release.