Problem/Motivation

I followed the instructions from the module description. I filled the gateway with the Stripe credentials and tried to complete the checkout, but after submitting the form I got the error "InvalidArgumentException: The class "Drupal\commerce_stripe_klarna\PluginForm\StripeKlarna\PaymentOffsiteForm" does not exist.". Drupal cannot create an instance of the OffsiteForm because the class_exist check returns FALSE. Any ideas how to fix this?

Steps to reproduce

1. Install the module.
2. Fill the gateway with Stripe credentials.
3. Try to complete the order using the "Submit" button.

CommentFileSizeAuthor
commerce_stripe_klarna_error.png325.44 KBtaraskorpach
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

taraskorpach created an issue. See original summary.

taraskorpach’s picture

Status: Needs work » Needs review

The reason was an incorrect namespace in the "PaymentOffsiteForm" form. I have fixed it and created a merge request, please review.

hardikpandya’s picture

Status: Needs review » Reviewed & tested by the community

Looks good. Marking RTBC!

marijan gudelj’s picture

Status: Reviewed & tested by the community » Fixed

Merged. Thank you for your contribution

marijan gudelj’s picture

Status: Fixed » Closed (fixed)
marijan gudelj’s picture