Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a webhook to checkout #15067

Open
julien51 opened this issue Nov 12, 2024 · 0 comments
Open

Add a webhook to checkout #15067

julien51 opened this issue Nov 12, 2024 · 0 comments
Labels
💰bounty There's a bounty on this issue!

Comments

@julien51
Copy link
Member

julien51 commented Nov 12, 2024

Our checkout UI includes several configuration options.
We need to add a new configuration option called hooks at the "root" of the config.
This object should include multiple properties, whose key should be the events triggered by the Paywall library:

{
   status: "",
   authenticated: "",
   transactionSent: "", 
   metadata: ""
}

Each of the value is a URL.

Then, in the checkout UI we should implement the triggers. They should be triggered at the same time as the Javascript events, as POST requests. The body of the POST request should be a json object matching the payload sent by the events. Any 2XX response should be considered a success. Any other should be considered an error and the paywall should do up to 2 retries (maximum of 3 notifications), after 1 and 3 seconds respectively.

@julien51 julien51 added the 💰bounty There's a bounty on this issue! label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💰bounty There's a bounty on this issue!
Projects
None yet
Development

No branches or pull requests

1 participant