支付模块
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.

1 年之前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package md
  2. type AliPayPayParams struct {
  3. Subject string `json:"subject" binding:"required"`
  4. Amount string `json:"amount" binding:"required"`
  5. OrderType string `json:"order_type" binding:"required"`
  6. OrdId string `json:"ord_id"`
  7. }
  8. type PayData struct {
  9. PayAppCertSn string `json:"pay_app_cert_sn"`
  10. PayAlipayRootCertSn string `json:"pay_alipay_root_cert_sn"`
  11. PayAlipayrsaPublicKey string `json:"pay_alipayrsa_public_key"`
  12. PayAliUseType string `json:"pay_ali_use_type"`
  13. PriKey string `json:"pay_ali_new_private_key"`
  14. WxAppletFilepathUrl string `json:"wx_applet_filepath_url"`
  15. }
  16. type ZhimaCreditPayafteruseCreditagreementQuery struct {
  17. ZhimaCreditPayafteruseCreditagreementQueryResponse struct {
  18. Code string `json:"code"`
  19. Msg string `json:"msg"`
  20. AgreementStatus string `json:"agreement_status"`
  21. BizTime string `json:"biz_time"`
  22. CreditAgreementId string `json:"credit_agreement_id"`
  23. OutAgreementNo string `json:"out_agreement_no"`
  24. } `json:"zhima_credit_payafteruse_creditagreement_query_response"`
  25. AlipayCertSn string `json:"alipay_cert_sn"`
  26. Sign string `json:"sign"`
  27. }
  28. type ZhimaCreditPayafteruseCreditbizorderOrder struct {
  29. ZhimaCreditPayafteruseCreditbizorderOrderResponse struct {
  30. Code string `json:"code"`
  31. Msg string `json:"msg"`
  32. OutOrderNo string `json:"out_order_no"`
  33. CreditBizOrderId string `json:"credit_biz_order_id"`
  34. } `json:"zhima_credit_payafteruse_creditbizorder_order_response"`
  35. Sign string `json:"sign"`
  36. }
  37. type ZhimaCreditPayafteruseCreditbizorderQuery struct {
  38. ZhimaCreditPayafteruseCreditbizorderQueryResponse struct {
  39. Code string `json:"code"`
  40. Msg string `json:"msg"`
  41. CreditBizOrderId string `json:"credit_biz_order_id"`
  42. CreditAgreementId string `json:"credit_agreement_id"`
  43. TotalAmount float64 `json:"total_amount"`
  44. CreateTime string `json:"create_time"`
  45. ZmServiceId string `json:"zm_service_id"`
  46. ProductCode string `json:"product_code"`
  47. OrderStatus string `json:"order_status"`
  48. TradeNo string `json:"trade_no"`
  49. } `json:"zhima_credit_payafteruse_creditbizorder_query_response"`
  50. Sign string `json:"sign"`
  51. }
  52. type AlipayFundTransUniTransfer struct {
  53. AlipayFundTransUniTransferResponse struct {
  54. Code string `json:"code"`
  55. Msg string `json:"msg"`
  56. OutBizNo string `json:"out_biz_no"`
  57. OrderId string `json:"order_id"`
  58. PayFundOrderId string `json:"pay_fund_order_id"`
  59. Status string `json:"status"`
  60. TransDate string `json:"trans_date"`
  61. } `json:"alipay_fund_trans_uni_transfer_response"`
  62. Sign string `json:"sign"`
  63. }
  64. type ZhimaCreditPayafteruseCreditbizorderFinish struct {
  65. ZhimaCreditPayafteruseCreditbizorderFinishResponse struct {
  66. Code string `json:"code"`
  67. Msg string `json:"msg"`
  68. OutRequestNo string `json:"out_request_no"`
  69. CreditBizOrderId string `json:"credit_biz_order_id"`
  70. OrderStatus string `json:"order_status"`
  71. } `json:"zhima_credit_payafteruse_creditbizorder_finish_response"`
  72. Sign string `json:"sign"`
  73. }