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.
| Comment | File | Size | Author |
|---|---|---|---|
| commerce_stripe_klarna_error.png | 325.44 KB | taraskorpach |
Issue fork commerce_stripe_klarna-3346934
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
Comment #3
taraskorpachThe reason was an incorrect namespace in the "PaymentOffsiteForm" form. I have fixed it and created a merge request, please review.
Comment #4
hardikpandya commentedLooks good. Marking RTBC!
Comment #6
marijan gudeljMerged. Thank you for your contribution
Comment #7
marijan gudeljComment #8
marijan gudelj