The order XML is imported into Order Management with multiple payment tags when the payments are authorized outside of Order Management using more than one payment method. The order XML can contain multiple standard payment methods and custom payment methods with tokenization or without tokenization.
The following are examples of order XML with multiple credit card payment methods:
<payments>
<payment>
<credit-card>
<card-type>MASTER</card-type>
<card-number>XXXX-XXXX-XXXX-0009</card-number>
<expiration-month>05</expiration-month>
<expiration-year>2020</expiration-year>
</credit-card>
<amount>29.33</amount>
<processor-id>Sagepay</processor-id>
<transaction-id>16219761</transaction-id>
<transaction-type>AUTH</transaction-type>
</payment>
<payment>
<credit-card>
<card-type>VISA</card-type>
<card-number>XXXX-XXXX-XXXX-9999</card-number>
<expiration-month>06</expiration-month>
<expiration-year>2020</expiration-year>
</credit-card>
<amount>29.33</amount>
<processor-id>Sagepay</processor-id>
<transaction-id>16219761</transaction-id>
<transaction-type>AUTH</transaction-type>
</payment>
</payments>
Custom attributes can be added to the payment tag in the order XML.
<payments>
<payment>
<credit-card>
<card-type>MASTER</card-type>
<card-number>XXXX-XXXX-XXXX-0009</card-number>
<expiration-month>05</expiration-month>
<expiration-year>2020</expiration-year>
</credit-card>
<amount>29.33</amount>
<processor-id>Sagepay</processor-id>
<transaction-id>16219761</transaction-id>
<transaction-type>AUTH</transaction-type>
<custom-attributes>
<custom-attribute attribute-id="bfProcessorToken">DE0F7026-E5B3-2D92-1B1E-26FAB6A984FA</custom-attribute>
<custom-attribute attribute-id="bfResponseData">VPSProtocol=3.00 Status=OK StatusDetail=0000 : The Authorisation was Successful. VPSTxId={C1DFA2BA-FDC6-CC1E-1821-1302FBB68B58} SecurityKey=ZIFDAIVBRY TxAuthNo=16219761 AVSCV2=DATA NOT CHECKED AddressResult=NOTPROVIDED PostCodeResult=NOTPROVIDED CV2Result=NOTPROVIDED 3DSecureStatus=NOTCHECKED Token={DE0F7026-E5B3-2D92-1B1E-26FAB6A984FA} DeclineCode=00 ExpiryDate=0728 BankAuthCode=999777 VendorTxCode=ae8c0caf-b7d9-499f-99c5-f8b0147c3d7f </custom-attribute>
</custom-attributes>
</payment>
<payment>
<credit-card>
<card-type>VISA</card-type>
<card-number>XXXX-XXXX-XXXX-0006</card-number>
<expiration-month>05</expiration-month>
<expiration-year>2020</expiration-year>
</credit-card>
<amount>29.33</amount>
<processor-id>Sagepay</processor-id>
<transaction-id>16219761</transaction-id>
<transaction-type>AUTH</transaction-type>
<custom-attributes>
<custom-attribute attribute-id="bfProcessorToken">DE0F7026-E5B3-2D92-1B1E-26FAB6A984FA</custom-attribute>
<custom-attribute attribute-id="bfResponseData">VPSProtocol=3.00 Status=OK StatusDetail=0000 : The Authorisation was Successful. VPSTxId={C1DFA2BA-FDC6-CC1E-1821-1302FBB68B58} SecurityKey=ZIFDAIVBRY TxAuthNo=16219761 AVSCV2=DATA NOT CHECKED AddressResult=NOTPROVIDED PostCodeResult=NOTPROVIDED CV2Result=NOTPROVIDED 3DSecureStatus=NOTCHECKED Token={DE0F7026-E5B3-2D92-1B1E-26FAB6A984FA} DeclineCode=00 ExpiryDate=0728 BankAuthCode=999777 VendorTxCode=ae8c0caf-b7d9-499f-99c5-f8b0147c3d7f </custom-attribute>
</custom-attributes>
</payment>
</payments>