Support sale intents with webhook callback#627
Draft
krestenlaust wants to merge 40 commits into
Draft
Conversation
Template generated by Claude
Also, reorganize '/api/sale/intent'-POST validation
Member
Author
Add 'return_url' parameter to intent creation
Rename buystring -> product_string and rename various status'es to make room for 'CANCELLED' instead of 'REMOVED'
Use Status.INITIATED + updated_at instead
The payment save signal was called before member balance was updated. Now we just reuse the same signal used for welcome mails. Also add tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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:
/api/sale/intent/{intent_id}to get status of intent manually (useful in clientside-only applications)/api/sale/intent/{intent_id}to cancel a sale intent/acceptis valid for a form check