StripeConnecteurStable

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_payment or create_credit_note_psp_refunds.
  • When Stripe must actually execute the refund.
  • To preserve durable correlation between the Ormuz intent and Stripe Refund.

Parameters 3

extension_config_idRequisref(extension_config:stripe)
Active Stripe configuration used for the provider call. Merchant remains derived from process context.
psp_refundRequisPSP payment
Ormuz PSP-refund intent to materialize in Stripe. It must be of type refund, still in draft, and linked to a successful source PSP payment.
instructions_emailOptionnelemail
Optional email address used to send refund instructions when the relevant Stripe flow requires it.

Outputs 4

refundStripe refund
Stripe Refund created or found for this Ormuz intent, sanitized before process exposure.
psp_refundPSP payment
Ormuz PSP-refund intent to materialize in Stripe. It must be of type refund, still in draft, and linked to a successful source PSP payment.
extension_object_mappingextension object mapping
Durable mapping between the produced Stripe object and the Ormuz object to which it is attached.
createdboolean
Whether this execution created a new Stripe object or reused the one already correlated.

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

PSP payment
Créer un remboursement (Stripe)
Reconcile payment

Exemple de placement de `stripe.create_refund` dans un process avec des bindings typés.