Create refund (Stripe)
Create or reuse the Stripe Refund for an Ormuz PSP refund intent.
Vue d’ensemble
Objectif
Materializes in Stripe a PSP-refund intent already created in Ormuz.
The node starts from a platform.psp_payment of type refund in draft status, creates or reuses the corresponding Stripe Refund, then synchronizes provider state back to the Ormuz refund.
Quand l’utiliser
- After
refund_psp_paymentorcreate_credit_note_psp_refunds. - When Stripe must actually execute the refund.
- To preserve durable correlation between the Ormuz intent and Stripe Refund.
Parameters 3
refund, still in draft, and linked to a successful source PSP payment.Outputs 4
refund, still in draft, and linked to a successful source PSP payment.Behavior
Valider l’intention
Requires an Ormuz PSP refund still in draft, with a source payment and consistent refundable amount.
Resolve the Stripe payment
Finds the source PaymentIntent through the existing provider mapping so the correct receipt is refunded.
Create or reuse the Refund
Creates the Refund with stable idempotency tied to the Ormuz intent, or reuses the already-mapped Refund on resume.
Synchronize the result
Updates the Ormuz PSP refund with the executed amount and authoritative status returned by Stripe.
Process example
Exemple de placement de `stripe.create_refund` dans un process avec des bindings typés.