ECheck Class
Properties Methods Events Configuration Settings Errors
The ECheck component is used to process Electronic Check (ACH) transactions through Internet Payment services such as the Authorize.Net eCheck.Net service.
Syntax
inpay.echeck()
Remarks
The ECheck class allows you to use multiple Internet Payment Gateways through one interface and one class. This allows for easy migration from one gateway to another, as well as quick integration into applications or web services.
The ECheck class allows your website to securely process electronic checks without the need to redirect to a third-party site. All transactions are accomplished through a secure HTTPS Post to any supported gateway. The secure response is received and then stored in the class's response properties. Any web site on a standard HTTP server or any stand-alone application can process transactions without the need for a secure server or third-party intervention.
The first thing you must do is select one of the gateways supported by the ECheck class, and set up an account with that gateway vendor. Once you have an account set up with a valid (or test) login Id and password, you can use the ECheck class.
To begin, set the Gateway property to the gateway you wish to use. If this gateway supports an alternate URL to send test transactions to, set the GatewayURL at this time.
Next, set the MerchantLogin (and for some gateways the MerchantPassword). These are supplied by your gateway vendor when you set up an account.
Now you are ready to process transactions. Not all gateways process ACH or eCheck transactions the same way. While all gateways require a bank routing and account number, some require additional information such as a driver's license number, bank name, or the account type (checking or savings). The gateways and their required properties are listed in the Gateway property.
Once all your properties are set, simply call the Authorize method. If your gateway supports it, you may also credit bank accounts with the Credit method.
The following gateways are supported by the ECheck class:
Gateway | Home page |
No Gateway (0) | n/a |
Authorize.Net AIM(1) | http://www.authorize.net |
eProcessing Transparent Database Engine(2) | http://www.eProcessingNetwork.com |
iTransact RediCharge HTML (4) | http://www.itransact.com |
NetBilling DirectMode (5) | http://www.netbilling.com |
Verisign PayFlow Pro (6) | https://www.paypal.com/webapps/mpp/payflow-payment-gateway |
USA ePay CGI Transaction Gateway (7) | http://www.usaepay.com |
Plug 'n Pay (8) | http://www.plugnpay.com |
Planet Payment iPay(9) | http://planetpayment.com/ |
MPCS (10) | http://merchantcommerce.net/ |
RTWare (11) | http://www.rtware.net/ |
ECX (12) | http://www.ecx.com |
Merchant Anywhere (Transaction Central) (15) | http://www.merchantanywhere.com/ |
Intuit Payment Solutions (17) | http://payments.intuit.com/ (Formerly called ECHOnline) |
TrustCommerce API (19) | http://www.trustcommerce.com |
PayFuse XML (ClearCommerce Engine) (21) | http://www.firstnationalmerchants.com/ |
PayFlowLink (22) | https://www.paypal.com/webapps/mpp/payflow-payment-gateway |
Chase Paymentech Orbital Gateway V5.6 (23) | http://www.chasepaymentech.com |
LinkPoint (24) | http://www.linkpoint.com |
Fast Transact VeloCT (Direct Mode) (27) | http://www.fasttransact.com/ |
NetworkMerchants Direct-Post API (28) | http://www.nmi.com/ |
TransFirst Transaction Central Classic (formerly PRIGate) (30) | www.transfirst.com |
Merchant Partners (Transaction Engine) (31) | http://www.merchantpartners.com/ |
CyberCash (32) | https://www.paypal.com/cybercash |
First Data Global Gateway (Linkpoint) (33) | http://www.firstdata.com |
YourPay (34) (Linkpoint) | http://www.yourpay.com |
ACH Payments AGI (35) | http://www.ach-payments.com |
Payments Gateway AGI (36) | https://www.paymentsgateway.net/ |
Cyber Source SOAP API (37) | http://www.cybersource.com |
goEmerchant XML (39) | http://www.goemerchant.com/ |
TransFirst eLink (40) | http://www.transfirst.com |
Chase Merchant Services (Linkpoint) (41) | http://www.chase.com |
Thompson Merchant Services NexCommerce (iTransact mode) (42) | http://www.thompsonmerchant.com |
TransFirst Transaction Central (44) | http://www.transfirst.com. (This is different from TransFirst eLink, supported above. The TransactionCentral gateway is also used by MerchantAnywhere and PRIGate) |
Sterling SPOT XML API (HTTPS POST) (45) | http://www.sterlingpayment.com |
Sage Payment Solutions (Bankcard HTTPS Post protocol) (50) | http://www.sagepayments.com |
Verifi Direct-Post API (54) | http://www.verifi.com |
Intuit QuickBooks Merchant Services (QBMS) (61) | http://payments.intuit.com/ |
Heartland POS Gateway (62) | http://www.heartlandpaymentsystems.com/ |
Litle Online Gateway (63) | http://www.litle.com/ |
BrainTree DirectPost (Server-to-Server) Gateway (64) | http://www.braintreepaymentsolutions.com/ |
JetPay Gateway (65) | http://www.jetpay.com/ |
HSBC XML API (ClearCommerce Engine) (66) | http://www.business.hsbc.co.uk/1/2/business-banking/business-payment-processing/business-debit-and-credit-card-processing |
BluePay 2.0 Post (67) | http://www.bluepay.com |
Adyen API Payments (68) | http://www.adyen.com |
PayTrace Payment Gateway (70) | http://www.paytrace.com/ |
GoToBilling Gateway (73) | http://www.gotobilling.com/ |
TransNational Bankcard (74) | http://www.tnbci.com/ |
Netbanx (75) | http://www.netbanx.com/ |
ACH Federal (78) | http://www.achfederal.com/ |
Bluefin (82) | http://www.bluefin.com/ |
Payscape (83) | http://www.payscape.com |
Pay Direct (Link2Gov) (84) | http://www.fisglobal.com/products-government-governmentpayments |
WorldPay US Link Gateway (87) | http://www.worldpay.com/us |
First Data PayPoint (90) | https://www.firstdata.com/en_us/customer-center/financial-institutions/paypoint.html |
PhoeniXGate Gateway (97) | http://www.phoenixmanagednetworks.com/ |
Repay Gateway (98) | http://www.repayonline.com/ |
Property List
The following is the full list of the properties of the class with short descriptions. Click on the links for further details.
BankAccountClass | Indicates whether a personal or business account is used for this transaction. |
BankAccountHolderName | Account holder's name. |
BankAccountNumber | Bank account number for ACH transactions. |
BankAccountType | Indicates whether a checking or savings account is used for this transaction. |
BankName | Name of the account holder's bank. |
BankRoutingNumber | Routing number for ACH transactions. |
CheckNumber | Indicates the check number to use for a transaction. |
CompanyName | The Company Name. |
CustomerAddress | Customer's street address. |
CustomerAddress2 | A specific detail on the customer's shipping address (such as building, suite, apartment, floor number etc. |
CustomerAggregate | This property allows you to get or set an XML aggregate built from all of the Customer properties. |
CustomerCity | Customer's city. |
CustomerCountry | Customer's country. |
CustomerEmail | Customer's email address. |
CustomerFax | Customer's fax number. |
CustomerFirstName | Customer's first name. |
CustomerFullName | Customer's full name. |
CustomerId | Merchant-generated customer Id. |
CustomerLastName | Customer's last name. |
CustomerPhone | Customer's phone number. |
CustomerState | Customer's state. |
CustomerZip | Customer's zip code (or postal code if outside of the USA). |
Gateway | Gateway to process transactions with. |
GatewayURL | Default URL for a specific Gateway . |
InvoiceNumber | Merchant-generated invoice number. |
LicenseDOB | Customer's Date of Birth as indicated on his driver's license. |
LicenseNumber | Customer's drivers license number. |
LicenseState | State in which customer's drivers license was issued. |
MerchantLogin | Merchant's Gateway login. |
MerchantPassword | Merchant's Gateway password. |
PaymentType | The type of check payment request (commonly referred to as SEC Code). |
ProxyAuthScheme | This property is used to tell the component which type of authorization to perform when connecting to the proxy. |
ProxyAutoDetect | This property tells the component whether or not to automatically detect and use proxy system settings, if available. |
ProxyPassword | This property contains a password if authentication is to be used for the proxy. |
ProxyPort | This property contains the TCP port for the proxy Server (default 80). |
ProxyServer | If a proxy Server is given, then the HTTP request is sent to the proxy instead of the server otherwise specified. |
ProxySSL | This property determines when to use SSL for the connection to the proxy. |
ProxyUser | This property contains a user name, if authentication is to be used for the proxy. |
ResponseApprovalCode | Contains an authorization code when a transaction has been approved. |
ResponseApproved | Indicates the status of the last transaction. |
ResponseApprovedAmount | The amount approved for the transaction, this is the amount actually charged to the credit card. |
ResponseAVSResult | Contains the Address Verification System result code. |
ResponseCode | Indicates the status of the authorization request. |
ResponseCVVResult | Contains the returned CVV2 result code if it was requested. |
ResponseData | The entire response returned from the gateway processor. |
ResponseErrorCode | Additional error code returned by some gateways. |
ResponseErrorText | Additional error description returned by some gateways. |
ResponseInvoiceNumber | Invoice number submitted in authorization request (if applicable). |
ResponseProcessorCode | Response code from the underlying processor. |
ResponseText | Text information that describes each response code. |
ResponseTransactionId | Contains the Visa Transaction Identifier or MasterCard Reference Number. |
SpecialFieldCount | The number of records in the SpecialField arrays. |
SpecialFieldName | Name of special configuration property to submit in this transaction. |
SpecialFieldValue | Value of special configuration property to submit in this transaction. |
SSLAcceptServerCertEncoded | The certificate (PEM/base64 encoded). |
SSLCertEncoded | The certificate (PEM/base64 encoded). |
SSLCertStore | The name of the certificate store for the client certificate. |
SSLCertStorePassword | If 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. |
SSLCertStoreType | The type of certificate store for this certificate. |
SSLCertSubject | The subject of the certificate used for client authentication. |
SSLServerCertEncoded | The certificate (PEM/base64 encoded). |
TaxId | Company's Tax Id or a Customer's Social Security Number. |
TestMode | Turns test mode on and off for transactions sent to the current Gateway . |
Timeout | A timeout for the component. |
TransactionAmount | Purchase amount for an authorization or retry transaction. Not used for reversals. |
TransactionDesc | Description of goods purchased. |
TransactionId | Merchant-generated transaction Id used for all transactions. |
Method List
The following is the full list of the methods of the class with short descriptions. Click on the links for further details.
AddSpecialField | Adds a special field name and the corresponding value. |
Authorize | Initiates a check authorization transaction. |
Config | Sets or retrieves a configuration setting . |
Credit | Credits a previous ACH transaction. |
GetResponseVar | Parses additional information out of the response. |
Interrupt | Interrupts the current action. |
Reset | Clears all properties to their default values. |
ResetSpecialFields | Resets all special fields to the default settings. |
VoidTransaction | Voids a previously authorized transaction. |
Event List
The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.
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. |
Configuration Settings
The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.
AuthCode | Authorization code from a previous transaction. |
CheckRoutingNumber | Determines whether to perform a checksum test on the RoutingNumber. |
CurrencyCode | Currency code for the currency of the transaction. |
CurrencyExponent | Currency exponent to be used in conjunction with the Currency code of the transaction. |
CyberSourceXMLEscape | Determines whether to XML escape the CyberSource gateway request field values. |
HashSecret | Security key used to generate a hash for gateways supporting such functionality. |
MerchantAlias | An additional merchant property used to specify an alias for the merchant. |
MerchantCode | Required field for the Litle gateway. |
RawRequest | Returns the data that was sent to the gateway. |
TerminalId | Terminal Id value sent in the transaction. |
HeartlandStoreId | StoreId for the Heartland (62) gateway. |
GoEMerchantUseGatewayId | Indicates whether to send a password or gateway Id for the GoEMerchant gateway. |
MerchantPartnersLast4Digits | The last 4 digits of the account number for a transaction processed via the MerchantPartners gateway. |
MerchantPartnersProfileId | The profile Id to be used to process a transaction via the MerchantPartners or WorldPay Link gateways. |
NetbanxAccountNumber | Account Number for the Netbanx gateway. |
NetBillingVersion | The Version to be sent in the User-Agent heading of a NetBilling gateway request. |
OrbitalConnectionPassword | Orbital Connection Password field used by the Orbital gateway. |
OrbitalConnectionUsername | Orbital Connection Username field used by the Orbital gateway. |
OrbitalCustomerProfileFromOrderInd | Customer Profile Number generation Options for the Orbital gateway. |
OrbitalCustomerProfileOrderOverrideInd | Indicator to specify how the CustomerId is leveraged to populate other data sets for the Orbital gateway. |
PayDirectConvenienceFee | The total convenience fee charged when using the PayDirect gateway. |
PayDirectMerchantAmount | The MerchantAmount used by the PayDirect gateway. |
PayDirectSettleMerchantCode | The Settle Merchant Code required for authorization when using the PayDirect gateway. |
PayFlowProInquiry | Submits an Inquiry transaction to the PayFlowPro gateway. |
PhoeniXGateProcessRecurringCheck | Determines whether to process the transaction using Check Info Key. |
PhoeniXGateCheckInfoKey | PhoeniXGate Gateway Check Info Key. |
PhoeniXGateGovernmentCheck | Determines whether the check is a government Check. |
RepayProcessRecurringCheck | Determines whether to process the transaction using Check Info Key. |
RepayCheckInfoKey | Repay Gateway Check Info Key. |
RepayGovernmentCheck | Determines whether the check is a government Check. |
TerminalId | Terminal Id number for the BluePay gateways. |
AcceptEncoding | Used to tell the server which types of content encodings the client supports. |
AllowHTTPCompression | This property enables HTTP compression for receiving data. |
AllowIdenticalRedirectURL | Allow redirects to the same URL. |
Append | Whether to append data to LocalFile. |
Authorization | The Authorization string to be sent to the server. |
BytesTransferred | Contains the number of bytes transferred in the response data. |
EncodeURL | If set to true the URL will be encoded by the component. |
FollowRedirects | Determines what happens when the server issues a redirect. |
GetOn302Redirect | If set to true the component will perform a GET on the new location. |
HTTPVersion | The version of HTTP used by the component. |
IfModifiedSince | A date determining the maximum age of the desired document. |
KeepAlive | Determines whether the HTTP connection is closed after completion of the request. |
MaxRedirectAttempts | Limits the number of redirects that are followed in a request. |
OtherHeaders | Other headers as determined by the user (optional). |
ProxyAuthorization | The authorization string to be sent to the proxy server. |
ProxyAuthScheme | The authorization scheme to be used for the proxy. |
ProxyPassword | A password if authentication is to be used for the proxy. |
ProxyPort | Port for the proxy server (default 80). |
ProxyServer | Name or IP address of a proxy server (optional). |
ProxyUser | A user name if authentication is to be used for the proxy. |
TransferredDataLimit | The maximum number of incoming bytes to be stored by the component. |
TransferredHeaders | The full set of headers as received from the server. |
UseChunkedEncoding | Enables or Disables HTTP chunked encoding for transfers. |
ChunkSize | Specifies the chunk size in bytes when using chunked encoding. |
UserAgent | Information about the user agent (browser). |
KerberosSPN | The Service Principal Name for the Kerberos Domain Controller. |
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). |
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 TCP 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. |
RecordLength | The length of received data records. |
TCPKeepAlive | Determines whether or not the keep alive socket option is enabled. |
UseIPv6 | Whether to use IPv6. |
TcpNoDelay | Whether or not to delay when sending packets. |
TLS12SignatureAlgorithms | Defines the allowed TLS 1.2 signature algorithms when UseManagedSecurityAPI is True. |
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. |
SSLProvider | The name of the security provider to use. |
SSLSecurityFlags | Flags that control certificate verification. |
OpenSSLCADir | The path to a directory containing CA certificates. |
OpenSSLCAFile | Name of the file containing the list of CA's trusted by your application. |
OpenSSLCipherList | A string that controls the ciphers to be used by SSL. |
OpenSSLPrngSeedData | The data to seed the pseudo random number generator (PRNG). |
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. |
CodePage | The system code page used for Unicode to Multibyte translations. |