Direct Payment Integrator V6 - Online Help
Direct Payment Integrator V6
Questions / Feedback?

Reverse Method

Reverses a transaction.

Syntax

procedure Reverse();

Remarks

This method reverses a transaction that has not been settled.

To void/reverse a Sale or AuthOnly transaction first set ReversalTransactionType to specify the type of original transaction that is being reversed. Next set ReversalType to frtFullReversal and call this method.

If the previous transaction did not receive a response and the state of the transaction is uncertain you may perform a Timeout Reversal. To perform a timeout reversal set ReversalTransactionType to specify the type of original transaction that is being reversed. Next set ReversalType to frtTimeoutReversal and call this method.

Timeout Reversals are applicable to the following transaction types:

Full Reversals are applicable to the following transaction types:

After this method returns check the value of ResponseCode to determine if the transaction was successful.

Important Note: You must ping your list of service provider URLs and update the URL property to the service provider with the shortest response time every 100 transactions, as well as when your application initially starts. This is not a normal ICMP ping - to determine the fastest transaction URL you must use the special Ping method inside the FDMSRegister component. (You may update your list of service provider URLs with the FDMSRegister component's ServiceDiscovery method).

ECommerce Sale and Reverse Code Example

fdmsrcecommerce.IndustryType = FdmsrcecommerceIndustryTypes.fitEcommerce;
fdmsrcecommerce.TPPID = "AAA000";
fdmsrcecommerce.MerchantTerminalNumber = "00000001";
fdmsrcecommerce.MerchantId = "1234";
fdmsrcecommerce.MerchantURL = "mywebsite";
fdmsrcecommerce.GroupId = "20001";
fdmsrcecommerce.DatawireId = "00011122233344455566";
fdmsrcecommerce.ApplicationId = "RAPIDCONNECTVXN";
fdmsrcecommerce.URL = "https://stg.dw.us.fdcnet.biz/rc";

fdmsrcecommerce.STAN = "112";
fdmsrcecommerce.TransactionNumber = "123";
fdmsrcecommerce.ReferenceNumber = "123456";
fdmsrcecommerce.OrderNumber = "1234";

fdmsrcecommerce.Card.Number = "36185900055556";
fdmsrcecommerce.Card.ExpMonth = 4;
fdmsrcecommerce.Card.ExpYear = 2016;
fdmsrcecommerce.Card.CVVData = "123";

fdmsrcecommerce.CustomerAddress = "1307 Broad Hollow Road";
fdmsrcecommerce.CustomerZip = "11747";

fdmsrcecommerce.TransactionAmount = "1200";
fdmsrcecommerce.Sale();

string aggregate = fdmsrcecommerce.GetDetailAggregate();

//Reverse
fdmsrcecommerce = new Fdmsrcecommerce();
fdmsrcecommerce.IndustryType = FdmsrcecommerceIndustryTypes.fitEcommerce;
fdmsrcecommerce.TPPID = "AAA000";
fdmsrcecommerce.MerchantTerminalNumber = "00000001";
fdmsrcecommerce.MerchantId = "1234";
fdmsrcecommerce.GroupId = "20001";
fdmsrcecommerce.DatawireId = "00011122233344455566";
fdmsrcecommerce.ApplicationId = "RAPIDCONNECTVXN";
fdmsrcecommerce.URL = "https://stg.dw.us.fdcnet.biz/rc";

fdmsrcecommerce.STAN = "112";
fdmsrcecommerce.TransactionNumber = "123";
fdmsrcecommerce.ReferenceNumber = "123456";
fdmsrcecommerce.OrderNumber = "1234";

//Provide the detail aggregate from the sale.
fdmsrcecommerce.SetDetailAggregate(aggregate);

fdmsrcecommerce.ReversalTransactionType = FdmsrcecommerceReversalTransactionTypes.frttSale;
fdmsrcecommerce.ReversalType = FdmsrcecommerceReversalTypes.fertFullReversal;
fdmsrcecommerce.Reverse();

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 6.0.6240.0