Support token in Stripe customer E-mail option

Created on 10 September 2023, over 1 year ago
Updated 19 September 2023, over 1 year ago

Thanks for this module.

When I try to add a token in my webform payment element seems it does not translate that token to actual value and throw error when submitting the form.

I used tokens: [webform_submission:values:receipt_email] (and [webform_submission:values:receipt_email:raw])



Tried on both Drupal 9 and 10

🐛 Bug report
Status

Closed: works as designed

Version

1.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

  • Issue created by @Rohit Tiwari
  • 🇸🇾Syria hodba Dubai

    Thanks for reporting this.

    I think the issue is that the email address element and the Stripe payment element are in the same webform page so the token of the email is not generated yet to be used in the Stripe payment intent and that is why your seeing this error.

    As a workaround, you can put the payment in a separate webform page so users can fill the email in the first page, then do the payment in the second one. This will get the value of the email and pass it as a token to the payment intent.

    Can you please try it and let me know if this works for you?

  • 🇮🇳India Rohit Tiwari

    @Hobda, sorry for replying late.

    The work around did the trick for me and fortunately I did need the payment in next page.
    But this should be still an issue if some one needs it in same page or else there should be a note regarding the same.

    Anyways thanks for your help here @Hobda

  • 🇸🇾Syria hodba Dubai

    I will add the note about it.

  • Status changed to Closed: works as designed over 1 year ago
Production build 0.71.5 2024