TranRetryTransaction
This action generate a sale transaction from a previously failed or successful transaction. The OperationXID field should contain the XID for the original transaction. The example below displays all fields that could potentially be used for this action – including the optional fields which are specified.
Optional Fields
- Description
- Total
- TransactionControl elements
- VendorData elements
Example
<?xml version="1.0"?>
<GatewayInterface>
<APICredentials>
<Username>username</Username>
<PayloadSignature>EXAMPLESIGNATURE</PayloadSignature>
<TargetGateway>12345</TargetGateway>
</APICredentials>
<TranRetryTransaction>
<OperationXID>12345678</OperationXID>
<!-- Optional. Will use total and description from original transaction if not passsed.
However, it one of these is passed, both must be. -->
<Description>ExampleItem</Description>
<Total>5.00</Total>
<!-- All TransactionControl elements are optional including TransactionControl -->
<TransactionControl>
<SendCustomerEmail>TRUE</SendCustomerEmail> <!-- TRUE/FALSE -->
<SendMerchantEmail>TRUE</SendMerchantEmail> <!-- TRUE/FALSE -->
<TestMode>TRUE</TestMode> <!-- TRUE/FALSE -->
<EmailText> <!-- Up to 10 EmailTextItem elements allowed -->
<EmailTextItem>test1</EmailTextItem>
<EmailTextItem>test1</EmailTextItem>
<EmailTextItem>test1</EmailTextItem>
<EmailTextItem>test1</EmailTextItem>
<EmailTextItem>test1</EmailTextItem>
<EmailTextItem>test1</EmailTextItem>
<EmailTextItem>test1</EmailTextItem>
<EmailTextItem>test1</EmailTextItem>
<EmailTextItem>test1</EmailTextItem>
<EmailTextItem>test1</EmailTextItem>
</EmailText>
</TransactionControl>
<!-- Optional. This information will be saved on our servers and is
available in the XML transaction report. This is useful if you want
to save your own transaction meta-data with a transaction. -->
<VendorData>
<Element>
<Name>repId</Name>
<Value>1234567</Value>
</Element>
</VendorData>
</TranRetryTransaction>
</GatewayInterface> |
For additional information, please view the XML API Connection documentation HERE.