## 请求地址
| 环境 | HTTPS请求地址 |
| --- | --- |
| 正式环境 | https://api.fanweyun.cn/gateway/payment/index |
> ## 请求参数
使用POST方法提交参数,具体请求协议请看
| 参数名 | 类型 | 是否必填 | 最大长度 | 解释 | 示例值 |
|---|---|---|---|---|---|
| api_id | Int | 是 | 9 | 商户ID | 10000 |
| order_id | String | 是 | 45 | 商户自主生成的订单号 | 2019080290052706 |
| order_amount | String | 是 | 80 | 交易金额(单位分) | 100 |
| pay_type | Int | 是 | 9 | 支付类型 | 详见附录 |
| product_name | String | 是 | 255 | 产品名称 | 华为P30 |
| callback_url | String | 是 | 255 | 客户端同步跳转 | https://admin.fanweyun.cn/demo/php/return.php |
| notify_url | String | 是 | 255 | 服务器异步通知 | https://admin.fanweyun.cn/demo/php/notify.php |
| sign | String | 是 | 45 | MD5签名 [ 查看算法](https://www.kanclou.cn) | 5879063c6a8592ada2e96525aad347c0 |
订单MD5签名方法:
按照参数名ASCII字典序排序 具体参考[签名算法:](https://admin.fanweyun.cn/)
```
1.order_amount
2.notify_url
3.callback_url
4.product_name
5.order_id
6.pay_type
7.api_id
8.key
```