Several errors and warnings in the console

Created on 13 November 2023, 8 months ago
Updated 21 January 2024, 5 months ago

Howdy! I'm loving this module.

I'm seeing several errors/warnings in the console. While this does not appear to be impacting the performance of the module, it is probably worth investigating.

Also, potentially related, or not, I *must* have AJAX enabled on the form, otherwise the payment form does not submit to Drupal (but it DOES process the payment via Stripe).

My setup:

  • Two page (wizard)
  • Custom amount (Calculated Twig, passed as a token)
  • Form AJAX is ON

Error (after submit):

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'apply')
    at Drupal.Ajax.beforeSend (stripe-webform-payment-ajax.js?v=1.x:27:44)
    at Object.beforeSend...
    at n.beforeSend...
    at Function.ajax...
    at...
    at q.fn.ajaxSubmit...
    at Drupal.Ajax.eventResponse...
    at HTMLInputElement.<anonymous>...
    at HTMLInputElement.dispatch...
    at v.handle...

Warnings (before submit):
Unrecognized elements.create('payment') parameter: clientSecret is not a recognized parameter. This may cause issues with your integration in the future.

Warnings (after submit):
Unrecognized stripe.confirmPayment() parameter: metadata is not a recognized parameter. This may cause issues with your integration in the future.

πŸ› Bug report
Status

Active

Version

1.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States greatmatter

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

Comments & Activities

Production build 0.69.0 2024