Windows SDK Setup
Support removed for Windows SDK
Please note that the Windows SDK is no longer supported. It will remain accessible, though please use it with caution. Find more information about our decision and a migration guide here.
Integrate Paddle's SDK into your Windows app
Requirements
- The Windows SDK works with Windows 7 and above
- The SDK supports .NET frameworks 3.5 and upwards
- The SDK supports WinForms and WPF applications
- The user's system will need Internet Explorer 10 or above or Edge browser
- The system must also support TLS 1.2
Overview
Paddle’s Windows C# SDK has two primary components: the main Paddle
class where most functions are centralized and the PaddleProduct
class which represents a Paddle product for you to work with in your app.
Paddle Singleton (Paddle
)
Paddle
)- This is the centre of the Paddle SDK experience. Here, you can do general configuration and control for the SDK for example, initialize the SDK, control the SDK UI, and trigger actions like license recovery.
Paddle Product (PaddleProduct
)
PaddleProduct
)- This is a local representation of your Paddle Product or Subscription. It contains details such as trial days remaining, activation date, price and actions on the Product to refresh its data from the vendor dashboard, or verify or deactivate a license.
- Most Paddle SDK methods will require a
PaddleProduct
. You can also have multiple products in play at once.
Visual Studio Setup
Follow these steps to set up the Paddle SDK in your app:
- Add the Paddle SDK to your project via NuGet
- Add a reference to
ShDocVw
(Right-click the Solution Explorer then select “Add a reference”, then “COM”, locate Microsoft Internet Controls, and add the reference) - Ensure the
EmbedInteropTypes
property is set toFalse
for both thePaddleSDK
andShDocVw
(Right-Click each reference and select Properties). - If targeting WinForms, add a
.manifest
file (go to Solution Explorer, select Add, then New item (or CTRL+SHIFT+A), then select Application Manifest File) and uncomment the following code snippet:
preparing...
Example Paddle SDK Setup
The Paddle SDK requires that you initialize it with an SDK Product. You’ll need to create one via the Vendor Dashboard. Once initialized you can work with any type of Product or Subscription. We’ll never assume the SDK Product used to initialize the SDK is the relevant one.
Import the Paddle Singleton to your class:
preparing...
Configure and initialize the SDK and your Product:
preparing...