cancel
Showing results for 
Search instead for 
Did you mean: 

Changing payment method of order if chosen method returns a DECLINE or error response

Changing payment method of order if chosen method returns a DECLINE or error response

Hi,

We are currently designing and testing a payment module for Magento 2 and wish to confirm the expected behaviour when performing a payment in terms of how this is handled by the Magento Order system.

When the customer is prompted for payment and selects their preferred payment method, it is at this point that the order is created within Magento from what we understand.

If the payment returns a Decline message, the customer is not able to switch to another payment method as these are greyed out and this is due to the order having already been created with the previously selected payment method.

Is this restriction something that Magento 2 enforces once an order is created ? or should the ability to switch payment methods still be available even after the order is created ?

If so please could you provide some information on how this would normally be handled or performed.

Kind regards,

Eilian