Alipay

alipay

Direct

alipay

POST BASE_URL/api

Headers

Name
Type
Description

content-type*

String

application/x-www-form-urlencoded

Request Body

Name
Type
Description

transactionType*

String

交易类型 : pay

version*

String(5)

目前固定为 1.0 (5)

signType*

String

商户生成签名字符串所使用的签名算法类型,目前支持:RSA/MD5

merchantNo*

String(16)

商户号

transactionId*

String(64)

商户订单号

transactionExpirationTime

String(6)

分钟,不能超过10分钟

appId*

String (128)

网站域名

amount*

String(12)

支付金额,单位为对应币种的最小货币单位(详见 ISO 4217)

currency*

String(3)

3 位 ISO 大写字母货币代码(详见 ISO 4217)

notifyUrl*

String(512)

echoParam

String(256)

回声参数,响应报文会原样返回

payerInfo*

String

Json格式的String 付款方信息, 请下方

orderInfo

String

json string, 订单信息, 请参考下方

userInfo*

String

json string, 消费者信息, 请参考消费者信息

redirectUrl

String(512)

跳转商户地址

POST /api

Content-Type: application/x-www-form-urlencoded

Params

PayerInfo Object

参数
必选
类型
说明

paymentMethod

Y

String

alipay

osType

Y

String

terminalType

为WAP的时候必传IOS/ANDROID

terminalType

Y

String

WEB/WAP

UserInfo Object

参数

必选

类型

说明

userId

N

string

max=128 用户id

ip

Y

string

max=128 IPv4或IPv6

email

N

string

max=128用户邮箱

phoneNo

N

string

max=32 用户手机号

OrderInfo Object

参数
必选
类型
说明

subject

Y

String(128)

订单标题,可以是商品名称

goodsInfo

N

Array Json String (4096)

商品信息, 请参考 goodsInfo

goodsInfo

参数

必选

类型

说明

name

Y

String

商品名

body

Y

String

商品描述

quantity

Y

number

商品数量

price

Y

String

商品价格,必须大于0,单位为对应货币的最小

货币单位参考货币单位一节

url

N

String

商品链接

image

N

String

商品图片

Last updated