附近小店
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 maanden geleden
3 maanden geleden
3 maanden geleden
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. AgentId int `json:"agent_id"`
  42. }
  43. type PayData struct {
  44. PayAppCertSn string `json:"pay_app_cert_sn"`
  45. PayAlipayRootCertSn string `json:"pay_alipay_root_cert_sn"`
  46. PayAlipayrsaPublicKey string `json:"pay_alipayrsa_public_key"`
  47. PayAliUseType string `json:"pay_ali_use_type"`
  48. PriKey string `json:"pay_ali_new_private_key"`
  49. }
  50. type AlipayUserCertdocCertverifyPreconsult struct {
  51. AlipayUserCertdocCertverifyPreconsultResponse struct {
  52. Code string `json:"code"`
  53. Msg string `json:"msg"`
  54. VerifyID string `json:"verify_id"`
  55. } `json:"alipay_user_certdoc_certverify_preconsult_response"`
  56. Sign string `json:"sign"`
  57. }
  58. type AlipayUserCertdocCertverifyConsult struct {
  59. AlipayUserCertdocCertverifyConsultResponse struct {
  60. Code string `json:"code"`
  61. FailParams string `json:"fail_params"`
  62. FailReason string `json:"fail_reason"`
  63. Msg string `json:"msg"`
  64. Passed string `json:"passed"`
  65. } `json:"alipay_user_certdoc_certverify_consult_response"`
  66. Sign string `json:"sign"`
  67. }