🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**简要描述:** - 获取支付配置 **请求URL:** - `/adminapi/settings.pay.pay_config/getConfig` **请求方式:** - GET **参数说明:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |id |是 |int |支付配置id | **返回示例** ``` //余额支付 { "code": 1, "show": 0, "msg": "获取成功", "data": { "id": 1, "name": "余额支付", "pay_way": 1, "config": null, "icon": "http://www.likeshopb2cv3.localhost/uploads/images/20210526104909d20777188.png", "sort": 50, "remark": "余额支付备注" } } //微信支付 { "code": 1, "show": 0, "msg": "获取成功", "data": { "id": 2, "name": "微信支付", "pay_way": 2, "config": { "interface_version": "V2", "merchant_type": "ordinary_merchant", "mch_id": "1609732802", "pay_sign_key": "e10a232320522883e", "apiclient_cert": "asd3232365", "apiclient_key": "a23235465" }, "icon": "http://www.likeshopb2cv3.localhost/uploads/images/20210526104909d20777188.png", "sort": 50, "remark": "微信支付备注" } } //支付宝支付 { "code": 1, "show": 0, "msg": "获取成功", "data": { "id": 3, "name": "支付宝支付", "pay_way": 3, "config": { "mode": "normal_mode", "merchant_type": "ordinary_merchant", "app_id": "202132322322", "private_key": "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCKlkrtyubaa307SaZ7eMxUsfRXvdhw7t9XWNSxGc95ujZ+rncEO5S3qNVXYgRWr1TnIRpHQny+IY6dZnjPF9QtkoTPANiYC3n3bM+DjjngLM+ICkjglkqOCU+MjCQSdZUCcRP1UauWcbWtBdIV8A8xbnSFUTINm/vIF9JonP/V2LEdilmm8mHHz6Vf7xvmPFsUSz957Wx9b7+y6uRDiAop1c8tXRukMYlXdGmV8lbfW9WLuvvRcADU27oG4iEbGwHOie7L8jgrEV/RwMgtGNgTUfhERCTI6rjO323238BgI9SYcoEOBOiEerheOk75HIT2BgFGpr5q580uPDDtvy7eMN11oFKEEB4Ums+dvcsqyKBoBD96z6qSSsjh5j+psO2WH5rLYkb3232CuwpgwQf23aRa31CizGI8RhAIRZ/m+ntVeec2Z0wCYiAn3IEgZTJ5U6plZ4xN0p/sneVSABblyGjW5zW+FZSt9Nc7TC7Ok50i9O13RBx1+T2F8c8Kwh7rn+mLzWmXmcvYKE4ULL1VpOUlw==", "ali_public_key": "MIIBIjANBgkqhkiG9w0BAQ3232xQHAHb55q9Z7Z6MAYAl9x/kKAUSgYvUDZBkXV3/K0KLHttCmg0Jsol32327IFGQ+fXro5COJcWMpmTbTckzxwcjLoVXLtEHq/A/IHB8h4UnGCI8WhcQACESXPMI+FIkq/pZReFiEQIDAQAB" }, "icon": "http://www.likeshopb2cv3.localhost/uploads/images/20210526104909d20777188.png", "sort": 50, "remark": "支付宝支付备注" } } ``` **返回参数说明:** |参数名 |类型 |说明 | |:--| |id |int |支付配置id | |name |string |支付名称 | |icon |string |支付图标 | |sort |string |排序 | |remark |string |备注 | |config |array |支付配置 | |-interface_version |string |微信支付接口版本:V2-V2 | |-merchant_type |string |商户类型:ordinary_merchant-普通商户 | |-mch_id |string |微信支付商户号 | |-pay_sign_key |string |商户API密钥 | |-apiclient_cert |string |微信支付证书 | |-apiclient_key |string |微信支付证书密钥 | |-pattern |string |模式:normal_mode-普通模式 | |-app_id |string |应用ID | |-private_key |string |支付宝公钥 | |-ali_public_key |string |应用私钥 |