\Yurun\PaySDK\AlipayCrossBorder\Online\PayRequest

支付宝境外在线支付-电脑网站支付请求类.

Summary

Methods
Properties
Constants
__onExecute()
__construct()
toArray()
$_syncResponseName
$_method
$_isSyncVerify
$_contentType
$service
$return_url
$notify_url
$subject
$body
$out_trade_no
$currency
$total_fee
$rmb_fee
$timeout_rule
$auth_token
$order_gmt_create
$order_valid_time
$supplier
$secondary_merchant_id
$secondary_merchant_name
$secondary_merchant_industry
$product_code
$split_fund_info
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

$return_url

$return_url : string

同步返回地址,HTTP/HTTPS开头字符串.

Type

string

$notify_url

$notify_url : string

支付宝服务器主动通知商户服务器里指定的页面http/https路径。

Type

string

$subject

$subject : string

商品的标题/交易标题/订单标题/订单关键字等。 该参数最长为128个汉字。

Type

string

$body

$body : string

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

Type

string

$out_trade_no

$out_trade_no : string

商户订单号,64个字符以内、可包含字母、数字、下划线;需保证在商户端不重复.

Type

string

$currency

$currency : string

结算币种,如美元USD.

Type

string

$total_fee

$total_fee : float

商品的外币金额,范围是0.01~1000000.00.

Type

float

$rmb_fee

$rmb_fee : float

人民币金额,范围为0.01~1000000.00 如果商户网站使用人民币进行标价就是用这个参数来替换total_fee参数,rmb_fee和total_fee不能同时使用.

Type

float

$timeout_rule

$timeout_rule : string

默认12小时,最大15天。此为买家登陆到完成支付的有效时间。5m 10m 15m 30m 1h 2h 3h 5h 10h 12h 1d.

Type

string

$auth_token

$auth_token : string

快捷登录返回的安全令牌。快捷登录的需要传。

Type

string

$order_gmt_create

$order_gmt_create : string

YYYY-MM-DD HH:MM:SS 这里请使用北京时间以便于和支付宝系统时间匹配,此参数必须要和order_valid_time参数一起使用,控制从跳转到买家登陆的有效时间.

Type

string

$order_valid_time

$order_valid_time : integer

最大值为2592000,单位为秒,此参数必须要和order_gmt_create参数一起使用,控制从跳转到买家登陆的有效时间.

Type

integer

$supplier

$supplier : string

显示供货商名字.

Type

string

$secondary_merchant_id

$secondary_merchant_id : string

由支付机构给二级商户分配的唯一ID.

Type

string

$secondary_merchant_name

$secondary_merchant_name : string

由支付机构给二级商户分配的唯一名称.

Type

string

$secondary_merchant_industry

$secondary_merchant_industry : string

支付宝分配的二级商户的行业代码,参考:https://global.alipay.com/help/online/81.

Type

string

$product_code

$product_code : string

网站支付:NEW_OVERSEAS_SELLER.

Type

string

$split_fund_info

$split_fund_info : \Yurun\PaySDK\AlipayCrossBorder\Online\Pay\array<\Yurun\PaySDK\AlipayCrossBorder\Params\SplitFundInfo>

分账信息.

Type

\Yurun\PaySDK\AlipayCrossBorder\Online\Pay\array<\Yurun\PaySDK\AlipayCrossBorder\Params\SplitFundInfo>

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()