Cannot create the payment without the PayPal order ID

Created on 19 March 2024, 6 months ago

Hi, thank you for your wonderful module. It has been working well for years and now receiving:

Cannot create the payment without the PayPal order ID.

Setup:

  • Paypal Checkout Preferred
  • Not selected: Show smart buttons because users can choose between Paypal and Stripe

Checkout Flow:

  • Order Information: Guest checkout (allowed)
  • Review: Review
  • Payment: PayPal Checkout payment process
  • Complete: Download Files

Create Order:

  1. Add to Cart
  2. Select Paypal
  3. Pay to Complete Purchase

Error:

Cannot create the payment without the PayPal order ID.

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

Can someone share a screenshot of the exact checkout flow please? Most appreciated.

💬 Support request
Status

Active

Version

1.0

Component

PayPal Checkout

Created by

🇫🇷France Liliplanet Cannes

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

Comments & Activities

  • Issue created by @Liliplanet
  • 🇫🇷France Liliplanet Cannes

    Update: I think it is fixed with following workflow: (waiting for a payment)

  • 🇮🇱Israel jsacksick

    You need to use the "Payment process" pane.
    The Checkout payment process pane should only be used in the paypal_checkout checkout flow.
    Also, please look for previous reports as this has been previously reported a lot.

  • 🇫🇷France Liliplanet Cannes

    Thank you for your reply jsacksick! I did look through every post carefully, but they gave different solutions.

    There are 2 payment gateways available, Stripe and Paypal checkout (preferred).

    1. Paypal checkout preferred setup.

    2. Stripe checkout flow.

    Is the Paypal checkout preferred still incorrect, or is there a better way to get this done?

    Most appreciated jsacksick 🌷

Production build 0.71.5 2024