| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace addons\YunfastPay\common\services\pays\order;
- use addons\YunfastPay\common\services\pays\PayAbstract;
- use addons\YunfastPay\common\services\trans\nocash\AppPayTrans;
- use Yii;
- /**
- * app支付
- * @package addons\YunfastPay\common\services\pays\order
- */
- class AppPay extends PayAbstract
- {
- /**
- * @return AppPayTrans
- */
- public function getTrans()
- {
- $trade = $this->pay->getTrade();
- $trans = new AppPayTrans(
- $trade->out_trade_no,
- $trade->pay_fee,
- $trade->title
- );
- $trans->setBrowser('alipay');
- return $trans;
- }
- public function getPayData(array $result)
- {
- return [
- 'url' => $result['qrData'],
- ];
- }
- }
|