附近小店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

alipay.go 2.6 KiB

3 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package md
  2. // AliPayCallback 支付宝的回调结构体
  3. type AliPayCallback struct {
  4. AppID string `json:"app_id"`
  5. AuthAppID string `json:"auth_app_id"`
  6. BuyerID string `json:"buyer_id"`
  7. BuyerLogonID string `json:"buyer_logon_id"`
  8. BuyerPayAmount string `json:"buyer_pay_amount"`
  9. Charset string `json:"charset"`
  10. FundBillList string `json:"fund_bill_list"`
  11. GmtCreate string `json:"gmt_create"`
  12. GmtPayment string `json:"gmt_payment"`
  13. InvoiceAmount string `json:"invoice_amount"`
  14. OrderType string `json:"order_type"`
  15. MasterID string `json:"master_id"`
  16. NotifyID string `json:"notify_id"`
  17. NotifyTime string `json:"notify_time"`
  18. NotifyType string `json:"notify_type"`
  19. OutTradeNo string `json:"out_trade_no"`
  20. PassbackParams string `json:"passback_params"`
  21. PointAmount string `json:"point_amount"`
  22. ReceiptAmount string `json:"receipt_amount"`
  23. SellerEmail string `json:"seller_email"`
  24. SellerID string `json:"seller_id"`
  25. Sign string `json:"sign"`
  26. SignType string `json:"sign_type"`
  27. Subject string `json:"subject"`
  28. TotalAmount string `json:"total_amount"`
  29. TradeNo string `json:"trade_no"`
  30. TradeStatus string `json:"trade_status"`
  31. Version string `json:"version"`
  32. PayMethod string `json:"pay_method"`
  33. }
  34. type AliPayPayParams struct {
  35. Subject string `json:"subject" binding:"required"`
  36. Amount string `json:"amount" binding:"required"`
  37. OrderType string `json:"order_type" binding:"required"`
  38. OrdId string `json:"ord_id"`
  39. Uid string `json:"uid"`
  40. Phone string `json:"phone"`
  41. }
  42. type PayData struct {
  43. PayAppCertSn string `json:"pay_app_cert_sn"`
  44. PayAlipayRootCertSn string `json:"pay_alipay_root_cert_sn"`
  45. PayAlipayrsaPublicKey string `json:"pay_alipayrsa_public_key"`
  46. PayAliUseType string `json:"pay_ali_use_type"`
  47. PriKey string `json:"pay_ali_new_private_key"`
  48. }
  49. type AlipayUserCertdocCertverifyPreconsult struct {
  50. AlipayUserCertdocCertverifyPreconsultResponse struct {
  51. Code string `json:"code"`
  52. Msg string `json:"msg"`
  53. VerifyID string `json:"verify_id"`
  54. } `json:"alipay_user_certdoc_certverify_preconsult_response"`
  55. Sign string `json:"sign"`
  56. }
  57. type AlipayUserCertdocCertverifyConsult struct {
  58. AlipayUserCertdocCertverifyConsultResponse struct {
  59. Code string `json:"code"`
  60. FailParams string `json:"fail_params"`
  61. FailReason string `json:"fail_reason"`
  62. Msg string `json:"msg"`
  63. Passed string `json:"passed"`
  64. } `json:"alipay_user_certdoc_certverify_consult_response"`
  65. Sign string `json:"sign"`
  66. }