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

FDMSReversal Control

Properties   Methods   Events   Configuration Settings   Errors  

The FDMSREVERSAL component is used to reverse a transaction that was previously authorized using the FDMSRETAIL , FDMSECOMMERCE , or FDMSHEALTHCARE component. This immediately releases the funds in the cardholder's open-to-buy that were blocked by the original authorization.

Syntax

FDMSReversal

Remarks

Unlike the Timeout Reversals used in the FDMSDebit and FDMSBenefit controls, a credit card reversal is used to void a transaction and return funds to the customer. Often this is used in a split-tender situation, where a customer uses a prepaid Visa or MasterCard (or health care FSA card) to make a purchase which is partially authorized for less than the transaction amount. Partially authorized transactions will have an ResponseApprovalCode that beings with "AL" instead of "AP". If the customer does not have an additional source of funds to make up the difference, the authorization must be reversed and the funds immediately returned to the customer's card. To do this, set the AuthorizedAmount to the Response.AuthorizedAmount from the original transaction, and set the SettlementAmount to "0". This is called a full reversal (in this case, of a partially authorized transaction), and the detail record for the original transaction should be discarded - it must not be settled at the end of the day.

Alternatively, a merchant may need to settle a transaction amount for less than was originally authorized. In this case, set the AuthorizedAmount to the original TransactionAmount, and set the SettlementAmount to the new amount you wish to settle for. After a successful reversal, use the FDMSDetailRecord control to update the SettlementAmount of the detail record for the original transaction with the new amount. This is called a partial reversal. You may also submit a full reversal by setting the SettlementAmount to "0". In that case, all of the funds are returned to the customer and the detail record for the original transaction should be discarded.

Note that partial authorizations must be fully reversed. You cannot partially reverse a partial authorization. Normally authorized transactions can be either partially or fully reversed. A normal authorization has a ResponseApprovalCode that begins with "AP" (APproved). A partial authorization has a ResponseApprovalCode that begins with "AL" (Approved for a Lesser amount).

Upon a successful reversal, the ResponseApprovalCode property will contain either "AP888888" or "AP868686" indicating the reversal was accepted. This code does not indicate the original transaction was found and reversed, merely that the reversal was received and properly formatted. First Data does not actually check whether the original transaction occurred or not. If the transaction was declined ResponseApprovalCode will contain one of the response messages listed in the table below:

Response MessageMeaning
CALL CARD CENTER System problem.
DECLINED Decline the transaction.
EXPIRED CARD Card is expired.
HOLD - CALL CTR Problem with card.
INV ACCT NUM Invalid card number or prefix.
INV CREDIT PLAN Private label message only.
INV EXP DATE Invalid expiration date.
INV MER ID Merchant is not set up on Host file.
INV TERM ID Terminal is not set up on Host file.
PLEASE RETRY System time-out or other generic system error.
REFERRAL Referral.
REFERRAL INV TR2 Referral - Invalid Track II Data.
REFERRAL INV TR1 Referral - Invalid Track I Data.
SERV NOT ALLOWED Merchant is not entitled to this card type.
SYS REJECT Transaction was rejected by the system due to "batch in progress indicators" being turned on.
INV AMT Invalid amount.
INV TRAN Transaction not permitted
REV REJECTED Reversal was rejected.
TRAN NOT ALLOWED Transaction not allowed.

The following example starts with a simple $3 manually-keyed retail transaction:

  
  FDMSRetail1.TransactionNumber = 3;
  FDMSRetail1.TransactionAmount = "300";
  FDMSRetail1.Card.Number = "4111111111111111";
  FDMSRetail1.Card.ExpMonth = 12;
  FDMSRetail1.Card.ExpYear = 13;
  FDMSRetail1.Card.EntryDataSource = edsManuallyEntered;
  FDMSRetail1.Authorize();
The above authorization was successful, but for some reason it needs to be voided. You could simply not settle the transaction, and that would clear the block on the cardholder's funds in a few days. However, a reversal allows you to clear that block immediately. To start with, we set the FDMSReversal control with the same merchant setup and basic transaction info used in the original authorization.
 
  FDMSReversal1.MerchantNumber         = FDMSRetail1.MerchantNumber;
  FDMSReversal1.MerchantTerminalNumber = FDMSRetail1.MerchantTerminalNumber;
  FDMSReversal1.DatawireId             = FDMSRetail1.DatawireId;
  FDMSReversal1.URL                    = FDMSRetail1.URL;
  FDMSReversal1.Card.Number            = FDMSRetail1.Card.Number;
  FDMSReversal1.Card.ExpMonth          = FDMSRetail1.Card.ExpMonth;
  FDMSReversal1.Card.ExpYear           = FDMSRetail1.Card.ExpYear;
  FDMSReversal1.Card.EntryDataSource   = FDMSRetail1.Card.EntryDataSource;
Next, we need to specify the exact transaction we wish to reverse. The properties below are required for First Data to identify and reconcile the reversal. Note that if the original transaction was authorized for an amount less than the original TransactionAmount, AuthorizedAmount should be set with the ResponseAuthorizedAmount from the original transaction, instead of the TransactionAmount which was requested.
  FDMSReversal1.ApprovalCode     = FDMSRetail1.Response.ApprovalCode;
  FDMSReversal1.TransactionId    = FDMSRetail1.Response.TransactionId;
  FDMSReversal1.AuthorizedAmount = FDMSRetail1.TransactionAmount;
  FDMSReversal1.ReturnedACI      = FDMSRetail1.Response.ReturnedACI;
  FDMSReversal1.ValidationCode   = FDMSRetail1.Response.ValidationCode;
All that is left is to set the new settlement amount and submit the transaction. To completely reverse the transaction and return all funds to the customer, set the SettlementAmount to zero ("0"). To return a portion of the funds to the customer set the SettlementAmount property with the result of the original authorized amount minus the amount to be unblocked on the customer's card. For instance, this $3 transaction has $2 reversed, for a new settlement amount of $1.
  FDMSReversal1.TransactionNumber = 4;
  FDMSReversal1.SettlementAmount  = "100";
  FDMSReversal1.Reverse();
If the reversal is successful the ResponseApprovalCode will contain either "AP868686" or "AP888888", indicating the reversal was accepted.

Note that partially authorized transactions cannot be partially reversed, they must be fully reversed. For instance, say a customer uses a prepaid visa card to buy $100 worth of merchandise, but his card only has a $50 balance. If the customer does not have an additional form of tender, (cash, check, credit, etc), the $50 that was partially authorized must be reversed and returned to the card. First Data does not support any scenario where a partially authorized transaction may be reversed for less than the full amount.

To reiterate, when a transaction is fully reversed, it must be removed from the batch settlement entirely. A partially reversed transaction must update the SettlementAmount of the original detail record, using the FDMSDetailRecord control. Reversal transactions themselves may not be settled, even if the ResponseCaptureFlag is True.

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 control. (You may update your list of service provider URLs with the FDMSRegister control's ServiceDiscovery method).

Property List


The following is the full list of the properties of the control with short descriptions. Click on the links for further details.

ApplicationIdIdentifies the merchant application to the Datawire System.
ApprovalCodeApproval code of the transaction to be reversed.
AuthorizedAmountAuthorized Amount from the original response.
CardCVVDataThree digit security code on back of card (optional).
CardCVVPresenceIndicates the presence of the card verification value.
CardEntryDataSourceThis property contains a 1-character code identifying the source of the customer data.
CardExpMonthExpiration month of the credit card specified in Number .
CardExpYearExpiration year of the credit card specified in Number .
CardMagneticStripeTrack data read off of the card's magnetic stripe.
CardNumberCustomer's credit card number for the transaction.
DatawireIdIdentifies the merchant to the Datawire System.
DirectMarketingTypeSpecifies the type of direct marketing transaction to reverse.
FDMSPlatformSpecifies the FDMS platform that the transactions will be processed on.
HealthCareIndicates whether this is a healthcare auto-substantiation reversal.
IndustryTypeCode which indicates the industry the merchant is engaged in.
MerchantNumberA unique number used to identify the merchant within the FDMS and Datawire systems.
MerchantTerminalNumberUsed to identify a unique terminal within a merchant location.
ProxyAuthSchemeThis property is used to tell the component which type of authorization to perform when connecting to the proxy.
ProxyAutoDetectThis property tells the component whether or not to automatically detect and use proxy system settings, if available.
ProxyPasswordThis property contains a password if authentication is to be used for the proxy.
ProxyPortThis property contains the TCP port for the proxy Server (default 80).
ProxyServerIf a proxy Server is given, then the HTTP request is sent to the proxy instead of the server otherwise specified.
ProxySSLThis property determines when to use SSL for the connection to the proxy.
ProxyUserThis property contains a user name, if authentication is to be used for the proxy.
ResponseApprovalCodeContains an authorization code when a transaction has been approved, or an error message if declined.
ResponseAuthorizedAmountWhen supporting partial authorizations, this is the amount actually charged to the credit card.
ResponseAVSResultContains the Address Verification System result code.
ResponseBalanceContains the remaining available balance left on the card.
ResponseCaptureFlagIndicates whether the authorization was successful, and whether it can be settled.
ResponseCardLevelResultTwo character card level results property returned in the response to Visa authorizations.
ResponseCommercialCardIndicates whether the credit card charged is a corporate commercial card.
ResponseCVVResultContains the returned CVV result code (if CVV data was sent in the request).
ResponseDatawireReturnCodeContains an error code providing more details about the DatawireStatus received.
ResponseDatawireStatusStatus of the communication with Datawire.
ResponseReturnedACIReturned Authorization Characteristics Indicator contains CPS qualification status.
ResponseTransactionDateLocal transaction date returned from the server in MMDDYY format.
ResponseTransactionIdContains the Visa Transaction Identifier or MasterCard Reference Number.
ResponseValidationCodeAdditional information generated by the card issuer.
ReturnedACIReturned ACI from the original response.
SettlementAmountNew settlement amount after the reversal.
SSLAcceptServerCertEncodedThe certificate (PEM/base64 encoded).
SSLCertEncodedThe certificate (PEM/base64 encoded).
SSLCertStoreThe name of the certificate store for the client certificate.
SSLCertStorePasswordIf the certificate store is of a type that requires a password, this property is used to specify that password in order to open the certificate store.
SSLCertStoreTypeThe type of certificate store for this certificate.
SSLCertSubjectThe subject of the certificate used for client authentication.
SSLServerCertEncodedThe certificate (PEM/base64 encoded).
TimeoutA timeout for the component.
TransactionIdTransaction Id from the original response.
TransactionNumberUniquely identifies the transaction.
URLLocation of the Datawire server to which transactions are sent.
ValidationCodeValidation Code from the original response.

Method List


The following is the full list of the methods of the control with short descriptions. Click on the links for further details.

ConfigSets or retrieves a configuration setting .
InterruptInterrupts the current action.
ResetClears all properties to their default values.
ReverseReverses a credit card transaction.

Event List


The following is the full list of the events fired by the control with short descriptions. Click on the links for further details.

ConnectedFired immediately after a connection completes (or fails).
DisconnectedFired when a connection is closed.
ErrorInformation about errors during data delivery.
SSLServerAuthenticationFired after the server presents its certificate to the client.
SSLStatusShows the progress of the secure connection.
StatusShows the progress of the FDMS/Datawire connection.

Configuration Settings


The following is a list of configuration settings for the control with short descriptions. Click on the links for further details.

AVSResultContains the Address Verification System result code of the transaction to be reversed.
ECIElectronic Commerce Indicator.
PINCapabilityThe PIN Capability of the terminal.
TotalAuthorizedAmountThe total amount authorized including all incremental authorizations.
RawRequestReturns the request sent to the server for debugging purposes.
RawResponseReturns the response received from the server for debugging purposes.
ConnectionTimeoutSets a separate timeout value for establishing a connection.
FirewallAutoDetectTells the component whether or not to automatically detect and use firewall system settings, if available.
FirewallHostName or IP address of firewall (optional).
FirewallPasswordPassword to be used if authentication is to be used when connecting through the firewall.
FirewallPortThe TCP port for the FirewallHost;.
FirewallTypeDetermines the type of firewall to connect through.
FirewallUserA user name if authentication is to be used connecting through a firewall.
KeepAliveTimeThe inactivity time in milliseconds before a TCP keep-alive packet is sent.
KeepAliveIntervalThe retry interval, in milliseconds, to be used when a TCP keep-alive packet is sent and no response is received.
LingerWhen set to True, connections are terminated gracefully.
LingerTimeTime in seconds to have the connection linger.
LocalHostThe name of the local host through which connections are initiated or accepted.
LocalPortThe TCP port in the local host where the component binds.
MaxLineLengthThe maximum amount of data to accumulate when no EOL is found.
MaxTransferRateThe transfer rate limit in bytes per second.
RecordLengthThe length of received data records.
TCPKeepAliveDetermines whether or not the keep alive socket option is enabled.
UseIPv6Whether to use IPv6.
TcpNoDelayWhether or not to delay when sending packets.
TLS12SignatureAlgorithmsDefines the allowed TLS 1.2 signature algorithms when UseManagedSecurityAPI is True.
ReuseSSLSessionDetermines if the SSL session is reused.
SSLCipherStrengthThe minimum cipher strength used for bulk encryption.
SSLEnabledProtocolsUsed to enable/disable the supported security protocols.
SSLProviderThe name of the security provider to use.
SSLSecurityFlagsFlags that control certificate verification.
OpenSSLCADirThe path to a directory containing CA certificates.
OpenSSLCAFileName of the file containing the list of CA's trusted by your application.
OpenSSLCipherListA string that controls the ciphers to be used by SSL.
OpenSSLPrngSeedDataThe data to seed the pseudo random number generator (PRNG).
AbsoluteTimeoutDetermines whether timeouts are inactivity timeouts or absolute timeouts.
FirewallDataUsed to send extra data to the firewall.
InBufferSizeThe size in bytes of the incoming queue of the socket.
OutBufferSizeThe size in bytes of the outgoing queue of the socket.
CodePageThe system code page used for Unicode to Multibyte translations.

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