cancel
Showing results for 
Search instead for 
Did you mean: 

Exception in Stripe Payment on Magento 2.3.5

Exception in Stripe Payment on Magento 2.3.5

I got an error in the stripe payment. The version I am using is 

Magento ver. 2.3.5

Stripe Module: 3.2.8

 

Here is the exception 

[29-Sep-2022 07:25:22 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method Magento\Sales\Api\Data\OrderPaymentExtension::setNotificationMessage() in /var/www/html/vendor/stripe/module-payments/Helper/Generic.php:2129
Stack trace:
#0 /var/www/html/vendor/stripe/module-payments/Model/PaymentMethod.php(201): StripeIntegration\Payments\Helper\Generic->overrideInvoiceActionComment(Object(Magento\Sales\Model\Order\Payment\Interceptor), Object(Magento\Framework\Phrase))
#1 /var/www/html/generated/code/StripeIntegration/Payments/Model/PaymentMethod/Interceptor.php(89): StripeIntegration\Payments\Model\PaymentMethod->payWithClientSideConfirmation(Object(Magento\Sales\Model\Order\Payment\Interceptor), 85)
#2 /var/www/html/vendor/stripe/module-payments/Model/PaymentMethod.php(117): StripeIntegration\Payments\Model\PaymentMethod\Interceptor->payWithClientSideConfirmation(Object(Magento\Sales\Model\Order\Payment\Interceptor), 85)
#3 /var/www/html/generated/code/StripeIntegration/Payments/Model/PaymentMethod/Interceptor.php(50): StripeIntegration\Payments\ in /var/www/html/vendor/stripe/module-payments/Helper/Generic.php on line 2129

Any idea how to fix this?

2 REPLIES 2

Re: Exception in Stripe Payment on Magento 2.3.5

I rollback to Stripe version 2.9.5 and it works fine

Re: Exception in Stripe Payment on Magento 2.3.5

Hi @aupong 

The error message suggests that there is an undefined method "setNotificationMessage()" in the OrderPaymentExtension class. This error is occurring in the Generic.php file of the Stripe Payments module. One possible solution is to update the Stripe Payments module to the latest version.

The version you are using (3.2.8) may have a bug that is causing this error. You can check for updates in the Magento Marketplace or by running the composer update command in your terminal. If updating the module doesn't work, you can try disabling the module and see if the error goes away. If it does, then the issue is definitely with the Stripe Payments module and you may need to contact the developer for support.

Another possible solution is to check if there are any conflicts with other modules or custom code in your Magento installation. You can disable other modules one by one to identify the conflicting module, or you can try disabling all custom code to see if the error goes away. If you're not comfortable with making these changes yourself, you can reach out to a Magento developer or support team for assistance.

Hope this help!

Lucy from Magenest | eCommerce Development Agency
Visit us: https://magenest.com/