<?php
namespace Payment\Charge\Wx; use Payment\Common\Weixin\Data\Charge\QrChargeData; use Payment\Common\Weixin\WxBaseStrategy; class WxQrCharge extends WxBaseStrategy { public function getBuildDataClass() { $this->config->tradeType = 'NATIVE'; return QrChargeData::class; } protected function retData(array $ret) { if ($this->config->returnRaw) { return $ret; } return $ret['code_url']; } } 