shurco / litecart

πŸ›’ litecart - shopping cart in 1 file with card and cryptocurrency payment support
MIT License
172 stars 33 forks source link

πŸ”₯ Feature: webhook-support-51 #58

Closed msalbrain closed 10 months ago

msalbrain commented 10 months ago

Description

This pull request addresses #51 with the following changes:

Type of change

Please delete options that are not relevant.

Checklist:

shurco commented 10 months ago

Hi @msalbrain,

Thank you for the work done, but it's not exactly what I wrote about in https://github.com/shurco/litecart/issues/51#issuecomment-1777152848 I meant that litecart should send a webhook to the specified address when one of the triggers is activated.

Your code sends a webhook from Stripe. Since payment is made in a sliding mode, such hooks are not needed.

msalbrain commented 10 months ago

thanks for the heads up. I see where you're coming from with the updates to the cart in the DB. I'll use that to trigger the webhook/API calls for payment updates.

Quick question: Should I ditch the webhook secret key, or is that part of another cool feature you've got in mind?

shurco commented 10 months ago

Quick question: Should I ditch the webhook secret key, or is that part of another cool feature you've got in mind?

You don't have to use the webhook key.