Upgrade to Magento 2.4.7-p3 error in PaymentServicesPaypal module #39442
Labels
Issue: ready for confirmation
Reported on 2.4.7-p3
Indicates original Magento version for the Issue report.
Preconditions and environment
Magento version: 2.4.7-p3
After upgrading from Magento 2.4.7 to 2.4.7-p3 and from PaymentServicesPaypal module 2.4.3 to 2.9.0
Steps to reproduce
Place order using the REST API
/V1/guest-carts/:cartId/order
.Expected result
Order successfully placed.
Actual result
Error:
Additional information
The plugin tries to get a quote payment method (
$quote->getPayment()->getMethod()
) while the payment is not set for the quote yet because it sent in theCartManagementInterface::placeOrder
secondpaymentMethod
argument.Compared with placing an order from the Magento Frontend, the
GuestPaymentInformationManagement::savePaymentInformationAndPlaceOrder
method is used, which saves the payment into the quote before theCartManagementInterface::placeOrder
method is called (without the secondpaymentMethod
argument).Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: