subscribepro-magento2-ext icon indicating copy to clipboard operation
subscribepro-magento2-ext copied to clipboard

Admin reorder on a guest order does not work

Open friendscottn opened this issue 5 years ago • 1 comments

The issue

I know most people don't use the subscribe pro payment method for guest orders. But if you do you'll get an error when trying to use the reorder functionality in the admin:

Transaction has been declined. Please try again later.

Which is masking:

Cannot create payment profile.

vendor/subscribepro/subscribepro-magento2-ext/Gateway/Command/AbstractProfileCreatorCommand.php

The solution

The payment form has the hidden field payment[is_active_payment_token_enabler] hard coded to 'true'. This should be false for guest orders.

friendscottn avatar Feb 06 '20 22:02 friendscottn