Repository navigation
Annuler un paiement, changement d'offre sans double paiement (0.4.0) - #9
Merged
Merged
Conversation
…'offre sans double paiement (0.4.0)
cancelPayment(id) → POST /v1/payments/{id}/cancel. Payment : canceledAt,
cancelReason, reason (avis payment.expired : canceled ou timeout). Routes toutes
faites : POST /payments/{id}/cancel (propriété vérifiée) ; sur reference_conflict,
l'ancien essai est relu par sa référence et annulé s'il est ouvert avant l'essai
suivant ; payment_in_progress ou payment_already_completed : aucun second
paiement. Contrat v1 à 30 cas (query_includes).
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 (16/11) :
POST /v1/payments/{id}/cancel.cancelPayment(id);Payment:canceledAt(),cancelReason(),reason()(avispayment.expired:canceled|timeout).POST /payments/{id}/cancel(seulement sur un paiement d'une commande de l'utilisateur) ; au démarrage, surreference_conflict(commande changée de montant), l'ancien essai est relu par sa référence et annulé s'il est ouvert, puis l'essai suivant est créé.payment_in_progressoupayment_already_completed: aucun second paiement, l'erreur va à l'app.query_includes), copie identique dans tous les SDK.payment_in_progress.