Invalid step ID error on non-native currencies

Created on 31 July 2020, over 4 years ago
Updated 27 July 2023, over 1 year ago

I am using the PayPal smart buttons on the cart. If the currency is anything other than our native currency (GBP) I receive an error as follows:

InvalidArgumentException: Invalid step ID "Array" passed to redirectToStep(). in Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow\CheckoutFlowBase->redirectToStep() (line 169 of /home/mysite/drupal/web/modules/contrib/commerce/modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowBase.php).

I have tried changing the default store currency. This makes no difference.
I have tried with both Sandbox and Live paypal accounts. This makes no difference.
I have tested this on two different sites and they both experience the same issue.

In all cases the PayPal window behaves as expected and it is only when PayPal sends you back to the site after confirming the payment that this error occurs. Logging into PayPal account I can see the transactions listed as 'pending' whereas the GBP transactions complete properly.

I would be very grateful if someone can help me further investigate and resolve this problem.

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

PayPal Checkout

Created by

🇬🇧United Kingdom david.qdoscc

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024