YPay
  1. 彩虹易支付
YPay
  • 支付对接
    • 彩虹易支付
      • 页面跳转支付
        POST
      • API接口支付
        POST
    • 查询单个订单
      POST
  • 挂机软件
    • 软件版
      • 验签
      • 心跳
      • 检测订单
      • 回调通知
    • 店员版
      • 验证签名
      • 订单回调
  • 用户接口
    • 获取用户余额
      POST
  1. 彩虹易支付

页面跳转支付

POST
/submit.php
责任人:二狗

请求参数

Query 参数
pid
string 
商户ID
必需
示例值:
1000
type
string 
必需
支付方式:wxpay|alipay|qqpay
示例值:
wxpay
out_trade_no
string 
商户订单号
必需
示例值:
20240806151343349
notify_url
string 
异步通知地址
必需
示例值:
https://xx.xx.xx/notify_url.php
return_url
string 
跳转通知地址
必需
示例值:
https://xx.xx.xx/return_url.php
name
string 
商品名称
必需
示例值:
VIP
money
string 
商品金额
必需
示例值:
1.00
sign
string 
签名字符串
必需
示例值:
202cb962ac59075b964b07152d234b70
sign_type
string 
签名类型
必需
示例值:
MD5

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://prod-cn.your-api-server.com/submit.php?pid=1000&type=wxpay&out_trade_no=20240806151343349&notify_url=https://xx.xx.xx/notify_url.php&return_url=https://xx.xx.xx/return_url.php&name=VIP&money=1.00&sign=202cb962ac59075b964b07152d234b70&sign_type=MD5'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{}
下一页
API接口支付
Built with