Not working with Commerce Checkout AJAX Pages

Created on 21 July 2018, about 7 years ago
Updated 18 August 2025, about 1 month ago

The checkout process is giving "We received the following error processing your card: Invalid card object: must be a dictionary or a non-empty string. See API docs at https://stripe.com/docs' Please enter your information again or try a different card." error when the module is used with Commerce Checkout AJAX Pages β†’ module.

That's possibly because inside the commerce_stripe.js file the buttons are pointed via the ID of the element (#edit-continue and #edit-submit).

The ajax module changes the button and form id's with #edit-continue--3 etc when used inside a block. So my best guess it doesn't trigger the events or arrays necessary to process.

πŸ’¬ Support request
Status

Closed: outdated

Version

3.0

Component

Stripe Checkout

Created by

πŸ‡ΉπŸ‡·Turkey rgnyldz

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.

Production build 0.71.5 2024