\Yurun\PaySDK\AlipayCrossBorder\InStore\CreateQRRequest

支付宝境外到店支付-创建二维码请求类.

Summary

Methods
Properties
Constants
__onExecute()
__construct()
toArray()
$_syncResponseName
$_method
$_isSyncVerify
$_contentType
$service
$notify_url
$alipay_ca_request
$out_trade_no
$subject
$product_code
$total_fee
$seller_id
$seller_email
$buyer_id
$buyer_email
$body
$show_url
$currency
$trans_currency
$price
$quantity
$goods_detail
$extend_params
$it_b_pay
$passback_parameters
$timestamp
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$_syncResponseName

$_syncResponseName : string

支付宝返回的json中xxx_response的名字.

Type

string

$_method

$_method : string

接口请求方法.

Type

string

$_isSyncVerify

$_isSyncVerify : boolean

是否同步返回验证

Type

boolean

$_contentType

$_contentType : string|null

Content-Type.

Type

string|null

$service

$service : string

接口名称.

Type

string

$notify_url

$notify_url : string

支付宝将在 HTTP Post 方法中异步通知结果。

Type

string

$alipay_ca_request

$alipay_ca_request : string

签名类型。1: 证书签名 2: 其他密钥签名。如果为空, 将使用默认值2。

Type

string

$out_trade_no

$out_trade_no : string

商户订单号.

Type

string

$subject

$subject : string

商品的标题/交易标题/订单标题/订单关键字等。

Type

string

$product_code

$product_code : string

产品代码

Type

string

$total_fee

$total_fee : string

该笔订单的资金总额,单位为RMB-Yuan。取值范围为[0.01,100000000.00],精确到小数点后两位。

Type

string

$seller_id

$seller_id : string

卖家支付宝用户号.

Type

string

$seller_email

$seller_email : string

卖家支付宝账号.

Type

string

$buyer_id

$buyer_id : string

买家支付宝用户号.

Type

string

$buyer_email

$buyer_email : string

买家支付宝账号.

Type

string

$body

$body : string

对一笔交易的具体描述信息。如果是多种商品,请将商品描述字符串累加传给body。

Type

string

$show_url

$show_url : string

收银台页面上,商品展示的超链接。

Type

string

$currency

$currency : string

用于标记交易价格的货币, 这也是结算货币支付宝结算给合作伙伴.

Type

string

$trans_currency

$trans_currency : string

定价币种,货币代码

Type

string

$price

$price : string

商品单价.

Type

string

$quantity

$quantity : string

购买数量.

Type

string

$goods_detail

$goods_detail : \Yurun\PaySDK\AlipayCrossBorder\InStore\CreateQR\array<\Yurun\PaySDK\AlipayCrossBorder\InStore\PreCreate\GoodsDetail>

订单包含的商品列表信息 最大允许商品数量50.

Type

\Yurun\PaySDK\AlipayCrossBorder\InStore\CreateQR\array<\Yurun\PaySDK\AlipayCrossBorder\InStore\PreCreate\GoodsDetail>

$extend_params

$extend_params : \Yurun\PaySDK\AlipayCrossBorder\InStore\PreCreate\ExtendInfo

用于传送商家的具体业务信息;如果商家和支付宝同意传输此参数并就该参数的含义达成协议, 则此参数才有效。 例如, 在可以通过声波进行付款的情况下, 存储 ID 和其他信息;此类资料应以 json 格式写成;有关详细信息, 请参阅 "4.4 业务扩展参数说明"。

Type

\Yurun\PaySDK\AlipayCrossBorder\InStore\PreCreate\ExtendInfo

$it_b_pay

$it_b_pay : string

设置逾期不付款的交易, 贸易将自动关闭一旦时间。 值的范围: 1 m ~ 15 d。 m 分钟, h 小时, d-day, 1 c-当前天 (每当贸易被创造, 它将被关闭在 0:00)。 此参数的数值 Demical 点被拒绝, 例如, 1.5h 可以 tansformed 到90m。 为了实现这一功能, 支付宝需要被建议设置关闭时间。

Type

string

$passback_parameters

$passback_parameters : string

如果商家通过请求字符串传输此参数, 支付宝将通过异步通知 (参数名称: extra_common_param) 来反馈此参数。

Type

string

$timestamp

$timestamp : integer

商户服务器发送请求的时间戳, 精确到毫秒.

Type

integer

Methods

__onExecute()

__onExecute(\Yurun\PaySDK\Base  $sdk, string  $format) : boolean

当调用SDK的execute时触发,返回true时不执行SDK中默认的执行逻辑.

Parameters

\Yurun\PaySDK\Base $sdk
string $format

数据格式,json、xml等

Returns

boolean

__construct()

__construct() 

toArray()

toArray()