Repository navigation
Annuler un paiement, changement d'offre sans double paiement (0.7.0) - #14
Merged
Merged
Conversation
…0.7.0)
cancel_payment(id) (POST /v1/payments/{id}/cancel), sync et async ; Payment.canceled_at,
cancel_reason, reason ; EventPayment.reason (payment.expired : canceled ou timeout).
Routes toutes faites : POST /payments/{id}/cancel ; sur reference_conflict, l'ancien essai est
relu puis annulé avant l'essai suivant (aucun second paiement si payment_in_progress ou
payment_already_completed ; 404 à l'annulation : essai suivant comme avant). Contrat v1 : 31 cas.
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.
Nouvelle route de l'API
POST /v1/payments/{id}/cancel.cancel_payment(id)(clients sync et async) : rend le paiement annulé (expired,checkout_urlnul,canceled_at,cancel_reason). Identifiant vide refusé sans appel, encodé commeget_payment.Payment/EventPayment:reason(avispayment.expired:canceledoutimeout, absent dans un vieil avis).payment_already_completednon rejouable ;payment_in_progressreste rejouable.POST /payments/{id}/cancel(FastAPI, Flask, Django testés) ; surreference_conflict, l'ancien essai est relu par sa référence et annulé avant l'essai suivant. Payé ou demande en cours : aucun second paiement. 404 à l'annulation (serveur qui ne l'a pas encore) : essai suivant comme avant.query_includesvérifié.