Token not getting replaced in amount field of stripe element

Created on 11 August 2022, over 2 years ago
Updated 14 March 2023, about 2 years ago

I have used a computed twig field to get dynamic amount which is working correct.
When I try to place that token ([webform_submission:values:dynamic_pricing]) in amount field of stripe element, it simply gets replaced by integer 1 all the time during payment.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India Rohit Tiwari

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇦Ukraine Anna D

    Using token works for me. In my case it is radios with different plans, where value is amount of pay:
    [webform_submission:values:field_name:raw]

    I used token for stripe element and stripe handler. And it works, stripe gets amount based on choosed option.

Production build 0.71.5 2024