AnsweredAssumed Answered

Direct integration Capture call

Question asked by murali.buchireddy on Dec 15, 2020

The successive API calls for Authorization, the Capture call expecting the optional parameters as mandatory. Here the request and response as follows, please suggest how to overcome it. It is in a test environment.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE paymentService PUBLIC "-//WorldPay//DTD WorldPay PaymentService v1//EN"
"http://dtd.worldpay.com/paymentService_v1.dtd">
<paymentService version="1.4" merchantCode="XXXXXXX">
  <modify>
    <orderModification orderCode="XXXXX"> <!--The unique order code for this payment-->
      <capture>
      </capture>
    </orderModification>
  </modify>
</paymentService>

Response:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE paymentService PUBLIC "-//WorldPay//DTD WorldPay PaymentService v1//EN"
                                "http://dtd.worldpay.com/paymentService_v1.dtd">
<paymentService version="1.4" merchantCode="TVPASSTEST">
    <reply>
        <error code="2">
            <![CDATA[The content of element type "capture" must match "(localDateTimeAtPOS?,date?,amount,branchSpecificExtension?,POSCaptureRequest?,shipping?,orderLines?)".]]>
        </error>
    </reply>
</paymentService>

Outcomes