Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is on Stripe V1. The extractTokenData in local stripe.js pulls data-stripe="token" which then causes JS errors, because stripe is not expecting that data. The returned error does not work with JS.
Solution: $(':input[data-stripe]').not('[data-stripe="token"]').each(function() { on line 110 - instead of $(':input[data-stripe]').each(function() {.
Hope someone finds this useful. Can make a patch if that's helpful as well.
Comment | File | Size | Author |
---|---|---|---|
#3 | remove-token.patch | 401 bytes | justindhoffman |
Comments
Comment #2
torgosPizzaA patch to review would be great. Thanks!
Comment #3
justindhoffman CreditAttribution: justindhoffman for Fountain City Productions commentedHere's the patch.
Comment #4
justindhoffman CreditAttribution: justindhoffman for Fountain City Productions commentedComment #6
hamrant CreditAttribution: hamrant at DEWEB Studio for Drupal Ukraine Community commentedConfirm, patch #3 fixed error "Received unknown parameter: token"