Klarna

Direct

Klarna

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)

过期时间 本地化支付,建议时间设长一些

appId*

String (128)

网站域名

amount*

String(12)

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

currency*

String(3)

3 位 ISO 大写字母货币代码(详见 ISO 4217) 目前仅支持EUR

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

klarna支持的国家

支持国家币种

AT, DE, FI, AT,NL,DE

EUR

NO

NOK

SE

SEK

GB

GBP

CH

​CHF

DK

DKK

Params

PayerInfo Object

参数必选类型说明

paymentMethod

Y

String

klarna

countryCode

Y

String

billingAddress

Y

Json String

账单信息

BillingAddress Object

参数

必选

类型

说明

firstName

Y

string

收货人名

lastName

Y

string

收货人姓

email

Y

string

收货邮箱

phoneNo

Y

string

收货手机号

street

N

string

收货街道地址

houseNo

N

string

收货街道地址和门牌号当street存在时可以不填

postalCode

N

string

邮编,如果该国家或地区由邮编必须传,否则可以不传

city

N

string

城市

state

N

string

省/州/地区, 需满足 ISO 3166-2

country

N

string

国家,ISO 两位大写英文国家代码, 需满足 ISO 3166-1

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

Y

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