nvalidArgumentException: Invalid credit card type "master" when using mastercard

Created on 3 March 2025, about 1 month ago

Problem/Motivation

Title: InvalidArgumentException: Invalid credit card type "master_card" when performing checkout with MasterCard

Steps to reproduce

  • Go to the checkout page and select HyperPay as the payment gateway.
  • Enter MasterCard details and proceed with the payment.
  • The payment fails with the above error message.

Proposed resolution

Ensure that when a user pays with a MasterCard, the card type is correctly set as "mastercard" instead of "master" as drupal commerce expects it that way.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇯🇴Jordan Manar Olimat

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

Comments & Activities

Production build 0.71.5 2024