TransferGateway.php 811 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace Yansongda\Pay\Gateways\Alipay;
  3. class TransferGateway extends Alipay
  4. {
  5. /**
  6. * get method config.
  7. *
  8. * @author yansongda <me@yansongda.cn>
  9. *
  10. * @return string
  11. */
  12. protected function getMethod()
  13. {
  14. return 'alipay.fund.trans.toaccount.transfer';
  15. }
  16. /**
  17. * get productCode config.
  18. *
  19. * @author yansongda <me@yansongda.cn>
  20. *
  21. * @return string
  22. */
  23. protected function getProductCode()
  24. {
  25. return '';
  26. }
  27. /**
  28. * transfer amount to account.
  29. *
  30. * @author yansongda <me@yansongda.cn>
  31. *
  32. * @param array $config_biz
  33. *
  34. * @return array|bool
  35. */
  36. public function pay(array $config_biz = [])
  37. {
  38. return $this->getResult($config_biz, $this->getMethod());
  39. }
  40. }