Guest User

Untitled

a guest
Jan 21st, 2018
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. public static void Main()
  2. {
  3. var cert = new System.Security.Cryptography.X509Certificates.X509Certificate2("WS1001255859._.1.p12", "vvxXcgaLn3");
  4. try
  5. {
  6. Test.X509CertificateData = cert.Export(System.Security.Cryptography.X509Certificates.X509ContentType.SerializedCert, "clearwave");
  7. var adapter = new FirstDataAdapter(Test);
  8. var response = adapter.Authorize(new PaymentTransactionRequest()
  9. {
  10. TransactionId = Guid.NewGuid(),
  11. ProviderLocationId = Guid.NewGuid(),
  12. ProviderLocationName = Guid.NewGuid().ToString(),
  13. PaymentVendorId = Guid.NewGuid(),
  14. PaymentAmount = 1.01m,
  15. CreditCardData = new CreditCard("%B4005550000000019^FDCS TEST CARD /VISA^120410054321000000000000000 150 A?", ";4005550000000019=12041011000012345678?", null),
  16. });
  17. PrintResponse(response);
  18. }
  19. catch (Exception)
  20. {
  21. Test.X509CertificateData = cert.Export(System.Security.Cryptography.X509Certificates.X509ContentType.SerializedCert, "clearwave");
  22. throw;
  23. }
  24. }
Add Comment
Please, Sign In to add comment