QuestionQ9

VerifiedOrders, Payments, Shipping, and Tax

An Adobe Commerce Architect must customize the workflow for a monthly-installments payment extension. The extension is supplied by a partner contracted with the default website PSP, which has its own legacy extension (a module that uses a deprecated payment method).

The installments-payment partner only manages payment initialization, then passes capture execution to the PSP. After the amount is captured successfully, the PSP sends the website an IPN. The IPN’s sole purpose is to create an “invoice” and save the “capture information” for later refund requests through the PSP itself.

The Architect needs the simplest solution that achieves the requested behavior without side effects.

Which solution should the Architect implement?

Explanation

A capture command configured as Magento\Payment\Gateway\Command\NullCommand performs no external capture operation, so the PSP is not called a second time. It still lets the Commerce invoice/capture workflow run when the PSP’s IPN arrives, allowing the invoice and PSP capture data to be recorded. Adobe Commerce payment gateway integrations configure operation-specific commands, including capture, in the payment method’s command pool.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!