MasterCard debit card is a supported WorldPay debit card payment method that is used for transactions during the sales order workflow. MasterCard debit card can be set as a CustomCharge payment method in the Payment Methods pick list. For example, MasterCard debit card can be configured as CustomChargeX, where X can be a number between 1-15.
Before you can use payment processors and their supported payment methods for transactions during the sales order workflow, configuration is required in Order Management.
The order XML is imported into Order Management with the payment tag when the payment is Authorized or Captured outside of Order Management. When tokenization is enabled, the bfProcessorToken custom attribute is included in the XML. The TokenizationEnabled setting is configured in the WorldPay External Payment Processors.
The Capture Delay can be set to Off, 0 (where the funds are captured in 15 - 20 minutes), or 1-14 (where the funds are captured in 1 - 14 days) in the WorldPay merchant account. Capture Delay is not set in Order Management. Custom attributes can also be added to the payment tag in the order XML.
Example 1: Payment Tag in XML
This example shows the payment tag in XML when tokenization is set to 'No' in Order Management, Capture Delay is set to Off, the custom <method-name> = mcdebitcard and the <transaction-type> = AUTH.
<payments>
<payment>
<custom-method>
<method-name>mcdebitcard</method-name>
</custom-method>
<amount>143.93</amount>
<processor-id>WorldPayGlobal</processor-id>
<transaction-id>efa2ce45-0d21-40aa-9f4f-c4c2122609b5</transaction-id>
<transaction-type>AUTH</transaction-type>
</payment>
</payments>
Example 2: Custom Attributes Added to the Payment Tag in XML
This example shows the payment tag in XML when custom attributes are added, tokenization is set to 'Yes', Capture Delay is set to Off, the custom <method-name> = mcdebitcard, the <transaction-type> = AUTH, and the <custom-attribute attribute-id> ="bfProcessorToken">XXXXX. The XXXXX refers to the token's string of numbers.
<payments>
<payment>
<custom-method>
<method-name>mcdebitcard</method-name>
</custom-method>
<amount>143.93</amount>
<processor-id>WorldPayGlobal</processor-id>
<transaction-id>efa2ce45-0d21-40aa-9f4f-c4c2122609b5</transaction-id>
<transaction-type>AUTH</transaction-type>
<custom-attributes>
<custom-attribute attribute-id="bfProcessorToken">9944062381342147026,ShopperID611</custom-attribute>
</custom-attributes>
</payment>
</payments>