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