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 · May be fixed by #15234
Open

Add a webhook to checkout #15067

julien51 opened this issue Nov 12, 2024 · 0 comments · May be fixed by #15234
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
@iMac7 iMac7 linked a pull request Dec 3, 2024 that will close this issue
6 tasks
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

Successfully merging a pull request may close this issue.

1 participant