Skip to content

Webhooks #11

@samdark

Description

@samdark

Requests are usually coming in the form of webhooks when certain actions are done.

We need:

  1. Common means for incoming request validation. Each provider does the validation differently.
  2. Processing of incoming data and returning common objects.

Should be something like:

WebHookInterface
{
    public function isValid(): bool;
    public function getPayment(): ?Payment;
    public function getRefund(): ?Refund;
    public function getSubscription(): ?Subscription;
    // ...
}

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions