From 2578335cc91503bbafebdfa704bbc2c7665eb388 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Fri, 3 May 2024 10:52:47 +0200 Subject: [PATCH] :bug: (payment) Fix description variable parsing --- .../inputs/payment/computePaymentInputRuntimeOptions.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/bot-engine/blocks/inputs/payment/computePaymentInputRuntimeOptions.ts b/packages/bot-engine/blocks/inputs/payment/computePaymentInputRuntimeOptions.ts index 613b23a34..19969ca27 100644 --- a/packages/bot-engine/blocks/inputs/payment/computePaymentInputRuntimeOptions.ts +++ b/packages/bot-engine/blocks/inputs/payment/computePaymentInputRuntimeOptions.ts @@ -61,7 +61,9 @@ const createStripePaymentIntent = amount, currency, receipt_email: receiptEmail === '' ? undefined : receiptEmail, - description: options.additionalInformation?.description, + description: parseVariables(variables)( + options.additionalInformation?.description + ), automatic_payment_methods: { enabled: true, },