Apply customer balance (Stripe)
Apply a cash balance amount to a Stripe PaymentIntent.
Vue d’ensemble
Objectif
Applies all or part of a Customer cash balance to a compatible Stripe PaymentIntent.
Quand l’utiliser
- When a bank transfer credited the Customer.
- To apply a precise amount in one currency.
- After checking the available cash balance.
Parameters 4
extension_config_id
Active Stripe configuration used for the provider call. Merchant remains derived from process context.
payment_intent
Typed Stripe PaymentIntent materializing provider execution of the relevant Ormuz payment.
amount
Amount in minor monetary units used by the Stripe operation; its currency is that of the PaymentIntent or associated parameter.
currency
ISO 4217 currency used by the Stripe operation; associated Ormuz amounts remain expressed in the minor unit of this currency.
Outputs 1
payment_intent
Typed Stripe PaymentIntent materializing provider execution of the relevant Ormuz payment.
Behavior
Validate the PaymentIntent
Extracts the identifier from the typed object received as input.
Prepare the amount
Passes amount and currency only when supplied.
Apply the balance
Calls Stripe, then returns the updated and sanitized PaymentIntent.
Process example
Exemple de placement de `stripe.apply_customer_balance` dans un process avec des bindings typés.