checkout / checkout-magento2-plugin

Checkout.com Magento 2 official extension
MIT License
32 stars 32 forks source link

Incorrect payment method saving for orders #527

Open joicy-joseph opened 11 months ago

joicy-joseph commented 11 months ago

In the latest version(5.3.0) of the module, if the Payment Processing is set as Payment first, all orders are creating with the payment method checkoutcom_card_payment even if it is created with other payment method (Google pay, Apple Pay etc.)

Screenshot from 2023-09-08 15-37-28

I have placed orders with Google Pay. But the orders are saved with the payment method checkoutcom_card_payment.

Screenshot from 2023-09-08 15-42-30

https://github.com/checkout/checkout-magento2-plugin/blob/master/Controller/Payment/PlaceOrder.php#L268 Here the payment method is set as checkoutcom_card_payment