NativePay.php 473 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * 扫码场景下单并支付
  4. */
  5. namespace JiaLeo\Payment\Wechatpay;
  6. use JiaLeo\Payment\Common\PaymentException;
  7. class NativePay extends BasePay
  8. {
  9. public $tradeType = 'NATIVE';
  10. public $device = 'NATIVE';
  11. /**
  12. * 下单处理
  13. * @param $params
  14. * @return string
  15. * @throws PaymentException
  16. */
  17. public function handle($params)
  18. {
  19. $pay_info = $this->pay($params);
  20. return $pay_info['code_url'];
  21. }
  22. }