国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
798B

  1. <?php
  2. namespace AliPay;
  3. if (!defined('DEDEINC')) exit ('dedebiz');
  4. use WeChat\Contracts\BasicAliPay;
  5. /**
  6. * 支付宝刷卡支付
  7. * Class Pos
  8. * @package AliPay
  9. */
  10. class Pos extends BasicAliPay
  11. {
  12. /**
  13. * Pos constructor.
  14. * @param array $options
  15. */
  16. public function __construct(array $options)
  17. {
  18. parent::__construct($options);
  19. $this->options->set('method', 'alipay.trade.pay');
  20. $this->params->set('product_code', 'FACE_TO_FACE_PAYMENT');
  21. }
  22. /**
  23. * 创建数据操作
  24. * @param array $options
  25. * @return array|bool
  26. * @throws \WeChat\Exceptions\InvalidResponseException
  27. * @throws \WeChat\Exceptions\LocalCacheException
  28. */
  29. public function apply($options)
  30. {
  31. return $this->getResult($options);
  32. }
  33. }
  34. ?>