stripe_payment_element not working as expected

Created on 28 January 2025, 27 days ago

We are using "stripe_payment_element"

Add a product to Cart
Go to Cart
Confirm Order Items
Complete Contact Information
Progress to review order, Stripe payment details don't appear.

click the "Pay and Complete Purchase" button
I got this error "Payment failed. Please review your information and try again."

And then it is showing up card page to fill the details, once filled up it is then throwing again the same error.

And if we are using "stripe_card_element" it is working fine.

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇮🇳India sandyjain

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

Comments & Activities

  • Issue created by @sandyjain
  • 🇧🇪Belgium vyaenes Nazareth-De Pinte

    I think that I've the same issue.
    Can you check the details error log?

    In Drupal I've something like:

    Drupal\commerce_payment\Exception\PaymentGatewayException: The selected stripe payment method type(stripe_bancontact) is not currently supported. in Drupal\commerce_stripe\Plugin\Commerce\PaymentGateway\StripePaymentElement->createPaymentMethodFromStripePaymentMethod() (regel 560 van /***/web/modules/contrib/commerce_stripe/src/Plugin/Commerce/PaymentGateway/StripePaymentElement.php).
    

    And when I check my logs in Stripe, I've the same error:

    HTTP status code
    500 (Internal Server Error)
    The selected stripe payment method type(stripe_bancontact) is not currently support
    

    But when I scroll down in the json request I see:

    "payment_method_types": [
            "card",
            "bancontact",
            "eps",
            "giropay",
            "ideal",
            "sepa_debit",
            "sofort",
            "paypal"
          ],
    

    So I think that something went wrong with the payment_method?
    stripe_bancontact <> bancontact

Production build 0.71.5 2024