E-Payment Gateway Encrypted Track Data Code Examples
This KB entry includes simple sample code for using encrypted track data with different gateways.
Date Entered: 05/26/2015 Last Updated: 06/01/2015
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 entry please contact our support team at kb@nsoftware.com.