colburncodes / social

Social is a boilerplate that you can use for an unlimited number of projects. Whether you're trying to learn how to structure your own app or want to rapidly spin up a number of features, it sets you up with a powerful set of features.
https://staging.socialio.site/
5 stars 1 forks source link

Lemon Squeezy - Order Refund #87

Closed colburncodes closed 6 months ago

colburncodes commented 7 months ago

The goal is implement a seamless refund process leveraging webhook events from LemonSqueezy. The system will intercept these events to trigger automatic updates in the database, so that user status and order details reflect real-time updates.

More refinement to be added.

  1. Intercept webhook events for Order Refunds
    • System logs and verifies the incoming webhook.
  2. Update user status upon refund.
    • Use LemonSqueezy status codes to flag the reflected refunded order
  3. Update Order details upon receiving refund event.
    • Identify what details need to be captured.
  4. Set up a Refund email template to notify user that refund is successful.
    • Capture user and order refund details in the email template.
  5. Testing and validation
    • Develop integration test to simulate refund webhook and verify updates.
    • Conduct end-to-end testing to ensure the order workflow from refund updates with no friction.
colburncodes commented 6 months ago

https://docs.lemonsqueezy.com/help/webhooks#event-types