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