AliPay.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Gateway.Payment.Shared
  5. {
  6. public class AliPayConfig
  7. {
  8. public static string DEFAULT_CHARSET = "GBK";
  9. public string alipay_public_key { get; set; }
  10. //这里要配置没有经过PKCS8转换的原始私钥
  11. public string merchant_private_key { get; set; }
  12. public string merchant_public_key { get; set; }
  13. public string appId { get; set; }
  14. public string serverUrl { get; set; }
  15. public string mapiUrl { get; set; }
  16. public string pid { get; set; }
  17. public string charset { get; set; }
  18. public string sign_type { get; set; }
  19. public string version { get; set; }
  20. }
  21. public class AliPayConfigInfo
  22. {
  23. public AliPayConfig Config { get; set; }
  24. public string HashValue { get; set; }
  25. }
  26. public class AliPayCertificaitonInfo
  27. {
  28. public string alipay_public_key_HashValue { get; set; }
  29. public string merchant_private_key_HashValue { get; set; }
  30. public string merchant_public_key_HashValue { get; set; }
  31. }
  32. public class AliPayConfigAndCertification
  33. {
  34. public AliPayConfigInfo ConfigInfo { get; set; }
  35. public AliPayCertificaitonInfo CertificaitonInfo { get; set; }
  36. }
  37. }