Skip to content

What is the "request" object? #85

Closed
@straeter

Description

@straeter

Describe the bug

from paddle_billing.Notifications import Secret, Verifier

integrity_check = Verifier().verify(request, Secret('WEBHOOK_SECRET_KEY'))

---> what is this mysterious "request" object? Is it from fastapi or any other library or is it defined in the library itself? At least flask "request" object did not work.

(it is not a bug but the issue categories were very limited)

Steps to reproduce

from flask import request
...
@app.route('/test', methods=['POST']:
def test():
integrity_check = Verifier().verify(request, Secret('WEBHOOK_SECRET_KEY'))

Expected behavior

verify the request

Code snippets

No response

Python version

Python 3.12

SDK version

paddle-python-sdk 1.01

API version

Paddle Version 1

Additional context

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions