E-Payment Gateway Encrypted Track Data Code Examples


This KB entry includes simple sample code for using encrypted track data with different gateways.

Below are code examples using encrypted track data for different gateways supported in the E-Payment Integrator. At the time of this article not all gateways have sample code published here. If you require sample code for a gateway not listed below please contact support@4dpayments.com.

Gateways

BluePay

retail.Gateway = IchargeGateways.gwBluePay; //This is the username for your account. retail.MerchantLogin = "username"; //This is the password for your username retail.MerchantPassword = "password"; retail.Config("TerminalId=100230751534"); retail.TransactionAmount = "1235.12"; retail.InvoiceNumber = "1234"; retail.TransactionDesc = "test desc"; retail.TestMode = true; retail.Config("CardEncrypted=True"); retail.Config("BluePayPreEncryptedTrackLength=64"); retail.Config("BluePayKSN=12345678"); retail.Card.EntryDataSource = EntryDataSources.edsTrack1; retail.Card.MagneticStripe = "3#X83fjkduf$f2d7efZe"; retail.Sale();

WorldPayLink/MerchantPartners

retail.Gateway = RetailGateways.gwWorldPayLink; //This is the username for your account. retail.MerchantLogin = "username"; //This is the password for your username retail.MerchantPassword = "password"; //This is the Sub ID for your account retail.AddSpecialField("subid", subId); retail.Config("CardEncrypted=True"); retail.Config("MerchantPartnersReaderType=1"); retail.Card.MagneticStripe = "EncryptedTrackData"; retail.TransactionAmount = "1.00"; retail.Sale();

We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at support@4dpayments.com.