<?php
namespace Payment\Common\Ali\Data\Charge; class WebChargeData extends ChargeBaseData { protected function getBizContent() { $content = [ 'out_trade_no' => strval($this->order_no), 'product_code' => 'FAST_INSTANT_TRADE_PAY', 'total_amount' => strval($this->amount), 'subject' => strval($this->subject), 'body' => strval($this->body), 'passback_params' => $this->return_param, 'goods_type' => $this->goods_type, 'disable_pay_channels' => $this->limitPay, 'store_id' => $this->store_id, 'qr_pay_mode' => $this->qr_mod, ]; $timeExpire = $this->timeout_express; if (! empty($timeExpire)) { $express = floor(($timeExpire - strtotime($this->timestamp)) / 60); ($express > 0) && $content['timeout_express'] = $express . 'm'; } return $content; } } 