config.php 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <?php
  2. // Lakala Payment Extension Configuration
  3. return json_decode(<<<'JSON'
  4. [{
  5. "type": "fcTitle",
  6. "props": {
  7. "title": "接入方配置信息",
  8. "size": "H1"
  9. },
  10. "_fc_drag_tag": "fcTitle",
  11. "_fc_id": "id_Fjeumh2zkilj145c",
  12. "name": "ref_Fme4mh2zkilj146c",
  13. "display": true,
  14. "hidden": false
  15. },
  16. {
  17. "type": "elAlert",
  18. "props": {
  19. "title": "配置说明",
  20. "description": "请填写接入方与拉卡拉系统对接所需的配置信息,所有带*的字段为必填项",
  21. "type": "info",
  22. "effect": "light",
  23. "closable": false
  24. },
  25. "_fc_drag_tag": "elAlert",
  26. "_fc_id": "id_Fjqmmh2zkilj147c",
  27. "name": "ref_F6j6mh2zkilj148c",
  28. "display": true,
  29. "hidden": false
  30. },
  31. {
  32. "type": "elCard",
  33. "props": {
  34. "header": "基础配置信息"
  35. },
  36. "style": {
  37. "width": "100%",
  38. "marginBottom": "20px"
  39. },
  40. "children": [{
  41. "type": "radio",
  42. "field": "environment",
  43. "title": "环境选择",
  44. "props": {
  45. "clearable": false
  46. },
  47. "options": [{
  48. "label": "测试环境",
  49. "value": "test"
  50. },
  51. {
  52. "label": "生产环境",
  53. "value": "product"
  54. }
  55. ],
  56. "validate": [{
  57. "required": true,
  58. "message": "请选择环境",
  59. "trigger": "change"
  60. }],
  61. "_fc_drag_tag": "radio",
  62. "_fc_id": "id_Fenvironment_001",
  63. "name": "ref_Fenvironment_001",
  64. "value": "test",
  65. "display": true,
  66. "hidden": false
  67. },
  68. {
  69. "type": "input",
  70. "field": "appid",
  71. "title": "接入方唯一编号(appid)",
  72. "props": {
  73. "placeholder": "请输入拉卡拉分配的接入方唯一编号",
  74. "clearable": true,
  75. "readonly": false
  76. },
  77. "validate": [{
  78. "required": true,
  79. "message": "请输入接入方唯一编号",
  80. "trigger": "blur"
  81. }],
  82. "_fc_drag_tag": "input",
  83. "_fc_id": "id_Fqcomh2zkilj149c",
  84. "name": "ref_Fpawmh2zkilj14ac",
  85. "value": "OP00000003",
  86. "display": true,
  87. "hidden": false
  88. },
  89. {
  90. "type": "input",
  91. "field": "serial_no",
  92. "title": "证书序列号(serial_no)",
  93. "props": {
  94. "placeholder": "请输入接入方生成的cer证书序列号",
  95. "clearable": true
  96. },
  97. "validate": [{
  98. "required": true,
  99. "message": "请输入证书序列号",
  100. "trigger": "blur"
  101. }],
  102. "_fc_drag_tag": "input",
  103. "_fc_id": "id_F4eimh2zkilj14bc",
  104. "name": "ref_Fmj3mh2zkilj14cc",
  105. "value": "00dfba8194c41b84cf",
  106. "display": true,
  107. "hidden": false
  108. },
  109. {
  110. "type": "upload",
  111. "field": "sign_cert",
  112. "title": "加签证书",
  113. "props": {
  114. "action": "{{API_BASE_URL}}/admin/filesystem/file",
  115. "name":"file",
  116. "headers": {
  117. "Authorization": "Bearer {{API_TOKEN}}"
  118. },
  119. "onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
  120. "multiple": false,
  121. "accept": ".cer,.crt,.pem"
  122. },
  123. "_fc_drag_tag": "upload",
  124. "_fc_id": "id_F9q8mh2zkilk14dc",
  125. "name": "ref_Faihmh2zkilk14ec",
  126. "display": true,
  127. "hidden": false
  128. },
  129. {
  130. "type": "input",
  131. "field": "merchant_no",
  132. "title": "商户号(merchant_no)",
  133. "props": {
  134. "placeholder": "请输入商户进件产生的商户号",
  135. "clearable": true
  136. },
  137. "validate": [{
  138. "required": true,
  139. "message": "请输入商户号",
  140. "trigger": "blur"
  141. }],
  142. "_fc_drag_tag": "input",
  143. "_fc_id": "id_Fk3smh2zkilk14hc",
  144. "name": "ref_F285mh2zkilk14ic",
  145. "value": "822290059430BF9",
  146. "display": true,
  147. "hidden": false
  148. },
  149. {
  150. "type": "input",
  151. "field": "term_no",
  152. "title": "终端号(term_no)",
  153. "props": {
  154. "placeholder": "请输入商户进件产生的终端号",
  155. "clearable": true
  156. },
  157. "validate": [{
  158. "required": true,
  159. "message": "请输入终端号",
  160. "trigger": "blur"
  161. }],
  162. "_fc_drag_tag": "input",
  163. "_fc_id": "id_Fnjzmh2zkilk14jc",
  164. "name": "ref_F2l4mh2zkilk14kc",
  165. "value": "D9261076",
  166. "display": true,
  167. "hidden": false
  168. },
  169. {
  170. "type": "upload",
  171. "field": "verify_cert",
  172. "title": "异步通知验签证书",
  173. "props": {
  174. "action": "{{API_BASE_URL}}/admin/filesystem/file",
  175. "name":"file",
  176. "headers": {
  177. "Authorization": "Bearer {{API_TOKEN}}"
  178. },
  179. "onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
  180. "multiple": false,
  181. "accept": ".cer,.crt,.pem"
  182. },
  183. "_fc_drag_tag": "upload",
  184. "_fc_id": "id_F8rlmh2zkilk14pc",
  185. "name": "ref_Fognmh2zkilk14qc",
  186. "display": true,
  187. "hidden": false
  188. },
  189. {
  190. "type": "upload",
  191. "field": "receiver_agreement_file",
  192. "title": "分账接收方默认合作协议文件",
  193. "props": {
  194. "action": "{{API_BASE_URL}}/admin/filesystem/file",
  195. "name":"file",
  196. "headers": {
  197. "Authorization": "Bearer {{API_TOKEN}}"
  198. },
  199. "onSuccess": "$FNX:const res = $inject.args[0];\nconst file = $inject.args[1];\n\nfile.url = res.data.file_url;",
  200. "multiple": false,
  201. "accept": ".pdf,.png,.jpg,.jpeg,.doc,.docx"
  202. },
  203. "_fc_drag_tag": "upload",
  204. "_fc_id": "id_F8rlmh2zkilk14pc",
  205. "name": "ref_Fognmh2zkilk14qc",
  206. "display": true,
  207. "hidden": false
  208. },
  209. {
  210. "type": "input",
  211. "title": "支付回调地址",
  212. "field": "notify_url",
  213. "value":"https://sixshop.ddev.site/api/lakala/notify",
  214. "props": {
  215. "placeholder": "请输入支付结果通知回调地址"
  216. },
  217. "$required": true,
  218. "_fc_id": "id_F0j5md1fz7stawc",
  219. "name": "ref_Ffipmd1fz7staxc",
  220. "_fc_drag_tag": "input",
  221. "display": true,
  222. "hidden": false
  223. },
  224. {
  225. "type": "input",
  226. "title": "收货确认通知地址",
  227. "field": "complete_notify_url",
  228. "value":"https://sixshop.ddev.site/api/lakala/notify",
  229. "props": {
  230. "placeholder": "请输入收货确认通知地址"
  231. },
  232. "$required": true,
  233. "_fc_id": "id_F0j5md1fz7stawc",
  234. "name": "ref_Ffipmd1fz7staxc",
  235. "_fc_drag_tag": "input",
  236. "display": true,
  237. "hidden": false
  238. },
  239. {
  240. "type": "input",
  241. "title": "机构代码",
  242. "field": "org_code",
  243. "value":"1",
  244. "props": {
  245. "placeholder": "请输入机构代码"
  246. },
  247. "$required": true,
  248. "_fc_id": "id_F0j5md1fz7stawc",
  249. "name": "ref_Ffipmd1fz7staxc",
  250. "_fc_drag_tag": "input",
  251. "display": true,
  252. "hidden": false
  253. }
  254. ],
  255. "_fc_drag_tag": "elCard",
  256. "_fc_id": "id_Fpcxmh2zkilk14fc",
  257. "name": "ref_F8tcmh2zkilk14gc",
  258. "display": true,
  259. "hidden": false
  260. },
  261. {
  262. "type": "elCard",
  263. "props": {
  264. "header": "说明信息"
  265. },
  266. "style": {
  267. "width": "100%",
  268. "marginBottom": "20px"
  269. },
  270. "children": [{
  271. "type": "text",
  272. "style": {
  273. "whiteSpace": "pre-line",
  274. "color": "#666",
  275. "fontSize": "14px"
  276. },
  277. "children": [
  278. "配置说明:\n• 接入方唯一编号(appid):拉卡拉分配的接入方标识\n• 证书序列号(serial_no):接入方生成的cer证书序列号\n• 加签证书:接入方生成的证书文件,用于请求签名\n• 商户号(merchant_no):商户进件时产生的唯一标识\n• 终端号(term_no):商户进件时分配的终端标识\n• 异步通知验签证书:拉卡拉分配的证书,用于验证异步通知签名\n• 环境选择:选择测试环境或生产环境,系统将使用对应的API地址"
  279. ],
  280. "_fc_drag_tag": "text",
  281. "_fc_id": "id_Fsaamh2zkilk14vc",
  282. "name": "ref_Fjplmh2zkilk14wc",
  283. "display": true,
  284. "hidden": false
  285. }],
  286. "_fc_drag_tag": "elCard",
  287. "_fc_id": "id_Fg6amh2zkilk151c",
  288. "name": "ref_Fqcvmh2zkilk152c",
  289. "display": true,
  290. "hidden": false
  291. }
  292. ]
  293. JSON, true);