Discover

Discover is a supported WorldPay credit card payment method that is used for transactions during the sales order workflow. Discover is included by default in the payment pick list. It isn't set as a CustomCharge.

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 <card-type> = Discover and the <transaction-type> = AUTH.

Note: When the Capture Delay is set to 0 or 1-14, the XML is the same except that the <transaction-type> = CAPTURE.
<payments>
  <payment>
    <credit-card>
      <card-type>Discover</card-type>
      <card-number>XXXX-XXXX-XXXX-0000</card-number>
      <card-holder>test</card-holder>
      <expiration-month>06</expiration-month>
      <expiration-year>2018</expiration-year>
    </credit-card>
    <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 <card-type> = Discover, the <transaction-type> = AUTH, and the <custom-attribute attribute-id> ="bfProcessorToken">XXXXX. The XXXXX refers to the token's string of numbers.

Note: When the Capture Delay is set to 0 or 1-14, the XML is the same except that the <transaction-type> = CAPTURE.
<payments>
  <payment>
    <credit-card>
      <card-type>Discover</card-type>
      <card-number>XXXX-XXXX-XXXX-0000</card-number>
      <card-holder>test</card-holder>
      <expiration-month>06</expiration-month>
      <expiration-year>2018</expiration-year>
    </credit-card>
    <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>