<?php
namespace Payment\Charge\Ali; use Payment\Common\Ali\AliBaseStrategy; use Payment\Common\Ali\Data\Charge\AppChargeData; class AliAppCharge extends AliBaseStrategy { protected $method = 'alipay.trade.app.pay'; public function getBuildDataClass() { $this->config->method = $this->method; return AppChargeData::class; } protected function retData(array $data) { $data = parent::retData($data); return http_build_query($data); } } 