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