I got error after upgrade commerce_paypal 8.x-1.0-beta3
Error: Call to undefined method Drupal\commerce_order\Entity\Order::isPaid() in Drupal\commerce_paypal\Plugin\Commerce\CheckoutPane\CheckoutPaymentProcess->isVisible() (line 29 of /public_html/modules/commerce_paypal/src/Plugin/Commerce/CheckoutPane/CheckoutPaymentProcess.php)

Please help me .

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aniltiwari created an issue. See original summary.

aniltiwari’s picture

Title: I got error after upgrade commerce_paypal 8.x-1.0-beta3 » I got error after upgrade commerce_paypal 8.x-1.0-beta3 (Error: Call to undefined method Drupal\commerce_order\Entity\Order::isPaid() in Drupal\commerce_paypal\Plugin\Commerce\CheckoutPane\CheckoutPaymentProcess->isVisible()
Issue summary: View changes
jsacksick’s picture

Priority: Critical » Normal
Status: Active » Needs review
FileSize
351 bytes

@aniltiwari: this issue is similar to #3040257: undefined method isPaid, (you should at least upgrade to Commerce 2.10).

Attached patch for review.

  • jsacksick committed 2fa55ab on 8.x-1.x
    Issue #3044362: Require at least Commerce 2.10.
    
jsacksick’s picture

Status: Needs review » Fixed

Please reopen if you're still having issues after upgrading.

aniltiwari’s picture

Status: Fixed » Active

i am still see same error after i updated "composer.json" file.. line: "drupal/commerce": "~2.10".

my commerce module version:

Machine name: commerce
Version: 8.x-2.7 . please let me know what is wrong from my side.

jsacksick’s picture

Just updating the composer.json file isn't going to change anything.... You need to update Commerce (to at least 2.10), latest is 2.12, See https://docs.drupalcommerce.org/commerce2/developer-guide/install-update....

jsacksick’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

b.khouy’s picture

Please reopen the issue.
Still have the problem after updating all commerce contrib module using command composer update --with-dependencies "drupal/commerce*"

Drupal core version: 8.8.1
Commerce installed version: 8.x-2.6
Commerce PayPal installed version: 8.x-1.0-beta6