api-documentation.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>API接口文档 - 极速支付</title>
  7. <meta name="description" content="极速支付API接口文档,包含接口说明、参数说明和调用示例。">
  8. <meta name="keywords" content="API接口,接口文档,支付接口,接口调用">
  9. <link rel="stylesheet" href="../style.css">
  10. <style>
  11. .article-container {
  12. max-width: 800px;
  13. margin: 0 auto;
  14. padding: 40px 20px;
  15. }
  16. .article-header {
  17. margin-bottom: 40px;
  18. }
  19. .article-title {
  20. font-size: 2.5em;
  21. color: #3498db;
  22. margin-bottom: 20px;
  23. }
  24. .article-meta {
  25. color: #666;
  26. font-size: 0.9em;
  27. margin-bottom: 30px;
  28. }
  29. .article-content {
  30. line-height: 1.8;
  31. color: #333;
  32. }
  33. .article-content h2 {
  34. color: #2c3e50;
  35. margin: 40px 0 20px;
  36. font-size: 1.8em;
  37. }
  38. .article-content p {
  39. margin-bottom: 20px;
  40. }
  41. .article-content ul {
  42. margin-bottom: 20px;
  43. padding-left: 20px;
  44. }
  45. .article-content li {
  46. margin-bottom: 10px;
  47. }
  48. .code-block {
  49. background: #f5f5f5;
  50. padding: 15px;
  51. border-radius: 5px;
  52. margin: 20px 0;
  53. font-family: monospace;
  54. overflow-x: auto;
  55. }
  56. .back-to-list {
  57. display: inline-block;
  58. margin-top: 40px;
  59. color: #3498db;
  60. text-decoration: none;
  61. }
  62. .back-to-list:hover {
  63. text-decoration: underline;
  64. }
  65. </style>
  66. </head>
  67. <body>
  68. <div class="article-container">
  69. <div class="article-header">
  70. <h1 class="article-title">API接口文档</h1>
  71. <div class="article-meta">
  72. <span>发布时间:2024-04-22</span>
  73. <span style="margin: 0 10px;">|</span>
  74. <span>作者:极速支付团队</span>
  75. </div>
  76. </div>
  77. <div class="article-content">
  78. <h2>一、接口概述</h2>
  79. <p>极速支付提供完整的API接口,支持支付、查询、退款等核心功能。</p>
  80. <h2>二、接口列表</h2>
  81. <ul>
  82. <li>创建支付订单</li>
  83. <li>查询订单状态</li>
  84. <li>发起退款</li>
  85. <li>查询退款状态</li>
  86. <li>获取结算信息</li>
  87. </ul>
  88. <h2>三、接口调用示例</h2>
  89. <div class="code-block">
  90. // 创建支付订单
  91. POST /api/v1/payment/create
  92. {
  93. "merchant_id": "your_merchant_id",
  94. "order_no": "202404220001",
  95. "amount": 100.00,
  96. "currency": "CNY",
  97. "notify_url": "https://your-domain.com/notify"
  98. }
  99. </div>
  100. <h2>四、接口参数说明</h2>
  101. <ul>
  102. <li>merchant_id: 商户ID</li>
  103. <li>order_no: 订单号</li>
  104. <li>amount: 订单金额</li>
  105. <li>currency: 货币类型</li>
  106. <li>notify_url: 回调地址</li>
  107. </ul>
  108. <h2>五、注意事项</h2>
  109. <p>请确保接口调用的安全性,建议使用HTTPS协议,并对敏感数据进行加密处理。</p>
  110. </div>
  111. <a href="../index2.html" class="back-to-list">← 返回文章列表</a>
  112. </div>
  113. </body>
  114. </html>