Collect payment (Stripe)
Collect an interactive card payment with Stripe Payment Element for an existing PSP payment.
Vue d’ensemble
Objectif
Collects an interactive Stripe card payment for an already-created Ormuz platform.psp_payment.
The psp_payment remains the sole source of truth for amount and currency; the node creates or reuses the corresponding PaymentIntent and then synchronizes the final result.
Quand l’utiliser
- In a hosted checkout requiring immediate card payment.
- After creating a
psp_paymentinpendingstatus. - When the journey must handle Stripe Payment Element and SCA/3DS without delegating checkout to Stripe.
Parameters 7
Pay securely.false.false.Outputs 2
Behavior
Validate the payment
Rereads the psp_payment, checks its merchant, type, status, amount, and currency.
Create or reuse the PaymentIntent
Associates a card PaymentIntent with the psp_payment using stable idempotency tied to the Ormuz payment identifier.
Collect the payment
Displays Stripe Payment Element in the User Journey; client_secret is supplied only temporarily to the browser.
Verify the result
Rereads the PaymentIntent server-side after confirmation and waits for its correlated Stripe event.
Synchroniser Ormuz
Updates the psp_payment with received amount, payment method, and final status before completing the node.
Process example
Exemple de placement de `stripe.collect_payment` dans un process avec des bindings typés.