Can't get Stripe Examples form to work

Created on 27 February 2023, over 1 year ago
Updated 7 January 2024, 6 months ago

Problem/Motivation

I cannot get the Stripe module to work at the most basic level.

Steps to reproduce

composer require drupal/stripe:^2.x-dev
drush en stripe stripe_examples
drush cr

Configure Stripe in settings.php:

$config['stripe.settings']['environment'] = 'test';
$config['stripe.settings']['apikey']['test']['public'] = ...
$config['stripe.settings']['apikey']['test']['secret'] = ...
$config['stripe.settings']['apikey']['live']['public'] = $config['stripe.settings']['apikey']['test']['public'];
$config['stripe.settings']['apikey']['live']['secret'] = $config['stripe.settings']['apikey']['test']['secret'];
  • Add the "Stripe simple checkout" block to a page
  • Try to submit the form with John Doe and the Stripe test key 4242 4242 4242 4242
  • The "pay $25" button turns red and "throbs", but nothing ever happens and the form doesn't submit.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

2.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @solideogloria
  • 🇮🇳India Bhanu951

    Can confirm the issue still persists on

    composer show drupal/stripe
    name     : drupal/stripe
    descrip. : Stripe
    keywords : Drupal
    versions : * 2.0.0-beta4
    type     : drupal-module
    license  : GNU General Public License v2.0 or later (GPL-2.0+) (OSI approved) https://spdx.org/licenses/GPL-2.0+.html#licenseText
    homepage : https://www.drupal.org/project/stripe
    source   : [git] https://git.drupalcode.org/project/stripe.git 2.0.0-beta4
    dist     : [zip] https://ftp.drupal.org/files/projects/stripe-2.0.0-beta4.zip 2.0.0-beta4
    path     : /var/www/html/web/modules/contrib/stripe
    names    : drupal/stripe
    
    support
    source : http://cgit.drupalcode.org/stripe
    issues : https://www.drupal.org/project/issues/stripe
    
    requires
    drupal/core ^9 || ^10
    stripe/stripe-php ^7.0
    

    ============

    composer show drupal/core
    name     : drupal/core
    descrip. : Drupal is an open source content management platform powering millions of websites and applications.
    keywords :
    versions : * 10.1.5
    type     : drupal-core
    license  : GNU General Public License v2.0 or later (GPL-2.0-or-later) (OSI approved) https://spdx.org/licenses/GPL-2.0-or-later.html#licenseText
    homepage :
    source   : [git] https://github.com/drupal/core.git 1272c35d547e844e7ebf3fe5513542291cda8cec
    dist     : [zip] https://api.github.com/repos/drupal/core/zipball/1272c35d547e844e7ebf3fe5513542291cda8cec 1272c35d547e844e7ebf3fe5513542291cda8cec
    path     : /var/www/html/web/core
    names    : drupal/core, drupal/core-annotation, drupal/core-assertion, drupal/core-class-finder, drupal/core-datetime, drupal/core-dependency-injection, drupal/core-diff, drupal/core-discovery, drupal/core-event-dispatcher, drupal/core-file-cache, drupal/core-file-security, drupal/core-filesystem, drupal/core-front-matter, drupal/core-gettext, drupal/core-graph, drupal/core-http-foundation, drupal/core-php-storage, drupal/core-plugin, drupal/core-proxy-builder, drupal/core-render, drupal/core-serialization, drupal/core-transliteration, drupal/core-utility, drupal/core-uuid, drupal/core-version
    
  • 🇮🇳India Bhanu951

    This can be fixed by applying patch from 🐛 Ajax error ajax.$form.ajaxSubmit() is not a function Needs review

Production build 0.69.0 2024