Paddle Webhook Verifier

Verifies Paddle webhook notifications.

License

License

GroupId

GroupId

com.xk72
ArtifactId

ArtifactId

paddle-webhook-verifier
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Paddle Webhook Verifier
Verifies Paddle webhook notifications.
Project URL

Project URL

https://github.com/karlvr/paddle-webhook-verifier
Source Code Management

Source Code Management

http://github.com/karlvr/paddle-webhook-verifier

Download paddle-webhook-verifier

How to add to project

<!-- https://jarcasting.com/artifacts/com.xk72/paddle-webhook-verifier/ -->
<dependency>
    <groupId>com.xk72</groupId>
    <artifactId>paddle-webhook-verifier</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.xk72/paddle-webhook-verifier/
implementation 'com.xk72:paddle-webhook-verifier:1.0'
// https://jarcasting.com/artifacts/com.xk72/paddle-webhook-verifier/
implementation ("com.xk72:paddle-webhook-verifier:1.0")
'com.xk72:paddle-webhook-verifier:jar:1.0'
<dependency org="com.xk72" name="paddle-webhook-verifier" rev="1.0">
  <artifact name="paddle-webhook-verifier" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.xk72', module='paddle-webhook-verifier', version='1.0')
)
libraryDependencies += "com.xk72" % "paddle-webhook-verifier" % "1.0"
[com.xk72/paddle-webhook-verifier "1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.xk72 : pherialize jar 1.2.4

provided (1)

Group / Artifact Type Version
javax.servlet : javax.servlet-api jar 3.0.1

Project Modules

There are no modules declared in this project.

Paddle Webhook Verifier

A helper class to verify Paddle.com webhook calls.

For more information about Paddle webhook verification, see the official documentation https://www.paddle.com/docs/reference-verifying-webhooks

How to use

Construct the verifier with the text of the public key that Paddle gives you in your settings, and then verify webhook requests that you receive by passing the verifier the request.getParameterMap() from the request.

e.g.

PaddleWebhookVerifier verifier = new PaddleWebhookVerifier("3jiasSIDJojosda/asjdnFJSU...AwEAAQ==");
if (!verifier.verify(request.getParameterMap())) {
	response.sendError(401);
	return;
}

Download

This package is available in Maven Central:

<dependencies>
  <dependency>   
    <groupId>com.xk72</groupId>
    <artifactId>paddle-webhook-verifier</artifactId>
    <version>1.0</version>
  </dependency>
</dependencies>

Dependencies

This package uses a patched version of Pherialize package, by Klaus Reimer to perform the PHP serialization required by Paddle.

Versions

Version
1.0