Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void Main()
- {
- var cert = new System.Security.Cryptography.X509Certificates.X509Certificate2("WS1001255859._.1.p12", "vvxXcgaLn3");
- try
- {
- Test.X509CertificateData = cert.Export(System.Security.Cryptography.X509Certificates.X509ContentType.SerializedCert, "clearwave");
- var adapter = new FirstDataAdapter(Test);
- var response = adapter.Authorize(new PaymentTransactionRequest()
- {
- TransactionId = Guid.NewGuid(),
- ProviderLocationId = Guid.NewGuid(),
- ProviderLocationName = Guid.NewGuid().ToString(),
- PaymentVendorId = Guid.NewGuid(),
- PaymentAmount = 1.01m,
- CreditCardData = new CreditCard("%B4005550000000019^FDCS TEST CARD /VISA^120410054321000000000000000 150 A?", ";4005550000000019=12041011000012345678?", null),
- });
- PrintResponse(response);
- }
- catch (Exception)
- {
- Test.X509CertificateData = cert.Export(System.Security.Cryptography.X509Certificates.X509ContentType.SerializedCert, "clearwave");
- throw;
- }
- }
Add Comment
Please, Sign In to add comment