Advanced orders Converting Doxxxxx commands to a payment plug-in

To convert the DoPayment, DoDeposit, or DoRefund command to a payment plug-in:

  1. Create a payment plug-in following instructions in Creating a payment plug-in.
  2. Move the Doxxxxx command logic that you use to communicate with the payment back-end system to the appropriate payment plug-in method:
    • Move the DoPayment code to the approve payment plug-in method
    • Move the DoDeposit code to the deposit payment plug-in method
    • Move the DoRefund code to the credit payment plug-in method
  3. Make the task/policy command properties available to the payment plug-in as attributes in the interface value objects or as name-value pairs inside the payment protocol data (ExtendedData).
  4. Ensure that the payment plug-in does not contain business policy logic. If special business policy code is required, it should be used before the event-driven payments logic is used.
  5. If special configuration data is needed (such as external account information), use the plug-in deployment descriptor to define this data.

Feedback