The FDMSECommerce component is an advanced tool used to authorize credit cards in both Mail Order (Direct Marketing) and eCommerce environments, where the customer is ordering products or services via the telephone or Internet. This component makes authorizing these types of transactions very easy.
This component connects to the First Data Merchant Services (FDMS) processor, by way of the Datawire VXN transaction transport network. Transactions originating with these components go through Datawire, to the FDMS processor where the transaction is authorized. The result is then returned back through Datawire and received by the component. This component can be integrated into web pages or stand-alone Point Of Sale applications. Because all SSL communications are handled inside the component, any application or web page can be deployed without the need for expensive dedicated SSL servers.
The FDMSECommerce component makes authorizing Card-Not-Present Mail Order and E-Commerce transactions very easy by adding an additional layer of abstraction between the programmer and the protocol. There is no need to deal with raw sockets, TLS/SSL handshakes, or data packet formatting. The steps to setting up the component and authorizing a transaction are outlined below:
First, you must register and activate your account with Datawire. Datawire will provide you with a MerchantNumber and MerchantTerminalNumber, but you'll need to use the FDMSRegister component to activate the merchant and receive a DatawireId. Once you acquire the DatawireId and receive your transaction URLs through Service Discovery, you may begin to authorize transactions.
To authorize a credit card, set the MerchantNumber and MerchantTerminalNumber with the values supplied by FDMS and Datawire, and the DatawireId with the value retrieved by the FDMSRegister component after activating your merchant account. Set the URL property with one of the URLs you retrieved during Service Discovery.
FDMSECommerce.MerchantNumber = "000000999990"; 'Supplied by FDMS/Datawire FDMSECommerce.MerchantTerminalNumber = "555555"; 'Supplied by FDMS/Datawire FDMSECommerce.DatawireId = "0000B47FFFFFFFFFFFFF"; 'Retrieved with the FDMSRegister component.
Then, set the customer's address and zip code (The address and zip code will be checked by the FDMS processor to make sure it matches the customer's billing address).
FDMSECommerce.CustomerAddress = "123 Nowhere Ln." FDMSECommerce.CustomerZip = "90210"
Next, set properties that contain details about the transaction. The TransactionNumber should be incremented for every transaction you authorize. The TransactionAmount must be set, and it should contain the amount to be charged, with an implied decimal point (ie: $1.00 is "100"). The TransactionType is dependent on whether the transaction is taking place over the phone, the Internet, or whether it's a Recurring or Installment payment.
FDMSECommerce.TransactionNumber = 1 FDMSECommerce.TransactionAmount = "100" FDMSECommerce.TransactionType = ttECommerce
Finally, submit the transaction by calling the Authorize method. When the component receives a response, the result of the authorization will be available in several Response properties. The DatawireStatus and DatawireReturnCode indicate whether any errors occurred while passing the transaction through the Datawire VXN system. These two properties alone do not indicate a successful transaction, they only tell whether or not there were any problems transporting the authorization request and response through the Datawire system. If the transaction was successfully authorized by FDMS, then the CaptureFlag will be True, and the ApprovalCode will contain an approval code that beings with "AP". (or "AL" for components that support partially-approved/split-tender transactions).
FDMSECommerce.Authorize("4444333322221111", 9, 2020, "999");
In addition, the ResponseAVSResult property will indicate whether the customer's billing address on file with his credit card company matches the information presented in the CustomerAddress and CustomerZip properties. The remaining properties provide additional information about the transaction.
Once an authorization request is approved, the money in the customer's account is blocked and tagged for the merchant. This transaction must go through the Batch Settlement process in order for the blocked money to be transferred to the merchant account. This is done by passing the XML aggregate returned from the GetDetailAggregate method to the FDMSSettle component. Usually, a Batch Settlement of all authorized transactions is done at the end of each business day.
The following is the full list of the properties of the component with short descriptions. Click on the links for further details.
|ApplicationId||Identifies the merchant application to the Datawire System.|
|Card||Contains the customer's credit card information.|
|CustomerAddress||The customer's billing address.|
|CustomerZip||Customer's zip code (or postal code if outside of the USA).|
|DatawireId||Identifies the merchant to the Datawire System.|
|FDMSPlatform||Specifies the FDMS platform that the transactions will be processed on.|
|IndustryType||The merchant's industry type.|
|MerchantNumber||A unique number used to identify the merchant within the FDMS and Datawire systems.|
|MerchantTerminalNumber||Used to identify a unique terminal within a merchant location.|
|Proxy||A set of properties related to proxy access.|
|PurchaseIdentifier||Optional purchase order number assigned by the merchant.|
|Response||Contains the response to an authorization request.|
|SSLAcceptServerCert||Instructs the component to unconditionally accept the server certificate that matches the supplied certificate.|
|SSLCert||The certificate to be used during SSL negotiation.|
|SSLServerCert||The server certificate for the last established connection.|
|Timeout||A timeout for the component.|
|TPPID||Third Party Processor Identifier assigned by FDMS.|
|TransactionAmount||Purchase amount to be authorized.|
|TransactionNumber||Uniquely identifies the transaction.|
|TransactionType||Specifies the type of transaction to process.|
|URL||Location of the Datawire server to which transactions are sent.|
|VisaIdentifier||Additional merchant identification field used when authorizing Visa transactions.|
The following is the full list of the methods of the component with short descriptions. Click on the links for further details.
|Authorize||Sends an authorization request.|
|AVSAndCVVOnly||Performs an AVS/CVV only check using the specified Card data.|
|BalanceInquiry||Performs a Balance Inquiry Request using the specified Card data.|
|Config||Sets or retrieves a configuration setting .|
|GetDetailAggregate||Returns an aggregate containing details of this transaction, which is then used for settlement.|
|Interrupt||Interrupts the current action.|
|Reset||Clears all properties to their default values.|
The following is the full list of the events fired by the component with short descriptions. Click on the links for further details.
|Connected||Fired immediately after a connection completes (or fails).|
|DataPacketIn||Fired when receiving a data packet from the transaction server.|
|DataPacketOut||Fired when sending a data packet to the transaction server.|
|Disconnected||Fired when a connection is closed.|
|Error||Information about errors during data delivery.|
|SSLServerAuthentication||Fired after the server presents its certificate to the client.|
|SSLStatus||Shows the progress of the secure connection.|
|Status||Shows the progress of the FDMS/Datawire connection.|
The following is a list of configuration settings for the component with short descriptions. Click on the links for further details.
|ClientTimeout||Indicates timeout client application will wait for response.|
|IsOnlineRefund||Indicates whether a transaction is Online Refund Authorization.|
|CurrencyCode||Currency Code for this transaction.|
|DebugTrace||Whether to enable debug logging.|
|ACI||Requested Authorization Characteristics Indicator (ACI).|
|AllowPartialAuths||Indicates whether partial authorizations are to be supported.|
|ECI||Electronic Commerce Indicator.|
|SubmissionType||Indicates the type of the recurring/installment transaction.|
|IsBillPayment||Indicates whether a transaction is Bill Payment transaction.|
|TransArmorMode||Specifies the TransArmor Security Level to use.|
|UpdateTransArmorKey||Allows you to update your TransArmor Key.|
|TransArmorKey||Specifies the TransArmor key used to perform the encryption.|
|TransArmorKeyId||Specifies the Id of the TransArmor key used to perform the encryption.|
|TransArmorToken||A TransArmor Token used in place of a card number or magnetic stripe data.|
|TransArmorTokenType||Specifies the type of TransArmor token that will be used.|
|TransArmorProviderId||The Id of the Provider that issued a TransArmorToken.|
|TransArmorUpdateIndicator||Indicates whether your TransArmorKey needs to be updated.|
|GetTransArmorToken||Allows you to retrieve a TransArmor Token for a specified card.|
|ConnectionTimeout||Sets a separate timeout value for establishing a connection.|
|FirewallAutoDetect||Tells the component whether or not to automatically detect and use firewall system settings, if available.|
|FirewallHost||Name or IP address of firewall (optional).|
|FirewallListener||If true, the component binds to a SOCKS firewall as a server (IPPort only).|
|FirewallPassword||Password to be used if authentication is to be used when connecting through the firewall.|
|FirewallPort||The TCP port for the FirewallHost;.|
|FirewallType||Determines the type of firewall to connect through.|
|FirewallUser||A user name if authentication is to be used connecting through a firewall.|
|KeepAliveTime||The inactivity time in milliseconds before a TCP keep-alive packet is sent.|
|KeepAliveInterval||The retry interval, in milliseconds, to be used when a TCP keep-alive packet is sent and no response is received.|
|Linger||When set to True, connections are terminated gracefully.|
|LingerTime||Time in seconds to have the connection linger.|
|LocalHost||The name of the local host through which connections are initiated or accepted.|
|LocalPort||The port in the local host where the component binds.|
|MaxLineLength||The maximum amount of data to accumulate when no EOL is found.|
|MaxTransferRate||The transfer rate limit in bytes per second.|
|ProxyExceptionsList||A semicolon separated list of hosts and IPs to bypass when using a proxy.|
|TCPKeepAlive||Determines whether or not the keep alive socket option is enabled.|
|UseIPv6||Whether to use IPv6.|
|UseNTLMv2||Whether to use NTLM V2.|
|CloseStreamAfterTransfer||If true, the component will close the upload or download stream after the transfer.|
|TcpNoDelay||Whether or not to delay when sending packets.|
|CACertFilePaths||The paths to CA certificate files when using Mono on Unix/Linux.|
|LogSSLPackets||Controls whether SSL packets are logged when using the internal security API.|
|ReuseSSLSession||Determines if the SSL session is reused.|
|SSLCipherStrength||The minimum cipher strength used for bulk encryption.|
|SSLEnabledProtocols||Used to enable/disable the supported security protocols.|
|SSLIncludeCertChain||Whether the entire certificate chain is included in the SSLServerAuthentication event.|
|SSLProvider||The name of the security provider to use.|
|SSLSecurityFlags||Flags that control certificate verification.|
|SSLCACerts||A newline separated list of CA certificate to use during SSL client authentication.|
|SSLEnabledCipherSuites||The cipher suite to be used in an SSL negotiation.|
|TLS12SignatureAlgorithms||Defines the allowed TLS 1.2 signature algorithms when UseInternalSecurityAPI is True.|
|TLS12SupportedGroups||The supported groups for ECC.|
|TLS13KeyShareGroups||The groups for which to pregenerate key shares.|
|TLS13SupportedGroups||The supported groups for (EC)DHE key exchange.|
|TLS13SignatureAlgorithms||The allowed certificate signature algorithms.|
|AbsoluteTimeout||Determines whether timeouts are inactivity timeouts or absolute timeouts.|
|FirewallData||Used to send extra data to the firewall.|
|InBufferSize||The size in bytes of the incoming queue of the socket.|
|OutBufferSize||The size in bytes of the outgoing queue of the socket.|
|GUIAvailable||Tells the component whether or not a message loop is available for processing events.|
|UseBackgroundThread||Whether threads created by the component are background threads.|
|UseInternalSecurityAPI||Tells the component whether or not to use the system security libraries or an internal implementation.|