Description
Prerequisites:
- Configure payment method
- Configure shipping method
Steps to reproduce:
- As anonymous add product to the basket
- Go to checkout
- Provide address
- Select shipping method and payment method
- Proceed - you'll be redirected to the login screen (Side question: is this correct behavior?)
- Go back to homepage
- Go to checkout, proceed
- Notice that system now remembers your address details, proceed
The following exception is thrown:
Cannot read property "identifier" from an array. Maybe you intended to write the property path as "[identifier]" instead.
Solution:
It seems that \Ibexa\Bundle\Checkout\Controller\CheckoutStep\ShippingStepController is missing the following piece of code around line 104:
if (isset($options['context']['payment_method']['identifier'])) { $paymentMethodIdentifier = $options['context']['payment_method']['identifier']; $options['context']['payment_method'] = $this->paymentMethodService->getPaymentMethodByIdentifier($paymentMethodIdentifier); }