Alpha Version Unofficial helpful sdk for Paddle
$ dotnet add package Paddle
This package is under development and functionality is being added as needed during developement of my side project loggernow.com which aims to provide easy monitoring and searching of logs.
This project aims to provides sdk to interact with paddle webhooks and apis.
Install c# Paddle Sdk with nuget
dotnet add package Paddle --version 0.0.1.31-alpha
This package exposes below methods to interact with paddle
Paddle p=new Paddle(paddlePublicKeyString); //without logging enabled
Paddle p=new Paddle(paddlePublicKeyString,ILogger); //with logging enabled
Paddle p=new Paddle(your_public_key_string);
bool result=p.VerifySignature(HttpRequest recived);
Paddle p=new Paddle(your_public_key_string);
PaddleWebhook parsedObj=p.ParsePaddleWebhook(HttpRequest recived); //incase the HttpRequest was not provided earlier
or
PaddleWebhook parsedObj=p.ParsePaddleWebhook(); //incase the HttpRequest was provided earlier
This also throws error HttpRequest not initialised if you dont pass in HttpRequest while calling this function and you have not provided HttpRequest before.
If you have any feedback, please reach out to us at raj.patil@loggernow.com
Contributions are always welcome! Feel free to make pull request.