Alipay

alipay

Direct

alipay

POST BASE_URL/api

Headers

NameTypeDescription

content-type*

String

application/x-www-form-urlencoded

Request Body

NameTypeDescription

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)

跳转商户地址

{
    "codeUrl": "weixin://wxpay/bizpayurl?pr=qCJcd2azz",
    "amount": "2",
    "resultCode": "pending",
    "sign": "1213b8dd73dff60c62e6c12d7000d32f",
    "errorCode": "3200",
    "transactionId": "202201180239183",
    "errorMsg": "Transaction is pending",
    "transactionType": "pay",
    "reference": "1012201181439650764",
    "echoParam": "echoParam",
    "signType": "MD5",
    "currency": "HKD",
    "merchantNo": "500000000007264"
}

POST /api

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

amount=100&appId=www.pay.com&currency=EUR&echoParam=echoParam&gatewaySource=useepay&merchantNo=500000000007264&notifyUrl=https://gatewaytest.useepay.com/notifyV2u0&orderInfo={"subject":"description","goodsInfo":[{"name":"商品名称","body":"商品描述","category":"商品类目","categoryTree":"商品类目树,不同级别类目使用”|”分割","brand":"商品品牌","quantity":1,"price":1234,"url":"商品url","sku":"商品sku","image":"商品图片url"}],"shippingAddress":{"email":"amber.lei@useepay.com","phoneNo":"123123","firstName":"Victor","lastName":"Yang","street":"Heathcoat+House,+20+Savile+Row","postalCode":"W1S+3PR","city":"London","state":"LND","country":"GB"}}&payerInfo={"paymentMethod":"klarna","countryCode":"AT","billingAddress":{"houseNo":"El+Gallo+Giro(https://gallogiro.com/)","email":"amber.lei@useepay.com","phoneNo":"1235854433","firstName":"amber","lastName":"Yang","stlogreet":"7148+Pacific+Blvd,+Huntington+Park,+CA","postalCode":"90225","city":"Huntington+Park","state":"CA","country":"MX","street":"street"}}&redirectUrl=https://gatewaytest.useepay.com/redirectV2u0&reserved=&sign=3a7005390f87ba32ee8abb09d08819d2&signType=MD5&transactionExpirationTime=20&transactionId=202210271113127&transactionType=pay&userInfo={"ip":"103.25.65.178","email":"amber.lei@useepay.com"}&version=1.0

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