Skip to content

Support sale intents with webhook callback#627

Draft
krestenlaust wants to merge 40 commits into
nextfrom
feat/payment-intent
Draft

Support sale intents with webhook callback#627
krestenlaust wants to merge 40 commits into
nextfrom
feat/payment-intent

Conversation

@krestenlaust
Copy link
Copy Markdown
Member

@krestenlaust krestenlaust commented Mar 15, 2026

Support the intent of a sale and user-confirmation prompt to associate sale with them. For use in webshop checkout with Stregsystem as payment provider

Depends on #628 to add login step before confirming payment

To-do:

  • Improve formatting in checkout lines (long product names give weird results)
  • Add GET-/api/sale/intent/{intent_id} to get status of intent manually (useful in clientside-only applications)
  • Add DELETE-/api/sale/intent/{intent_id} to cancel a sale intent
  • Add signal handler to new payment entries to lookup pending intents and perform them
  • Add signal handler for every change in intent status to ping webhook
  • Make sure /accept is valid for a form check
  • Implement into this PR (add login-guards to URLs and retrieve logged-in member) Member SSO Provider (OAuth2/OIDC) #617
  • Merge migrations (When finished)

Template generated by Claude
@krestenlaust krestenlaust linked an issue Mar 15, 2026 that may be closed by this pull request
@krestenlaust
Copy link
Copy Markdown
Member Author

Example of regular checkout:
image

Example of checkout display without sufficient funds:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support sale intents

1 participant