How should this customization be done?
An Adobe Commerce Architect gets a request to change existing payment gateway functionality by allowing voided transactions only for a certain range of paid amounts.
In the vendor module file etc/config.xml,payment method has an option can,_voidsetto 1.
How should this customization be done?
A . Extend MagentoPaymentModel\MethodAdapter and reimplement method void. Use this new class as a new type of payment method facade configuration overriding virtualType type for adapter.
B. Declare a new plugin for class MagentoPayment GatewayConfigConfigValueHandler and using the afterHandle method, change the result for Subject can_void.
C. Add new handler with name can_void to virtualType based on typeMagento paymentGatewayconfigValueHandlerPool In payment method facade configuration.
Answer: B
Latest AD0-E718 Dumps Valid Version with 50 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund