RefundGateway.php 419 B

123456789101112131415161718192021
  1. <?php
  2. namespace Yansongda\Pay\Gateways\Alipay;
  3. class RefundGateway
  4. {
  5. /**
  6. * Find.
  7. *
  8. * @author yansongda <me@yansongda.cn>
  9. *
  10. * @param $order
  11. */
  12. public function find($order): array
  13. {
  14. return [
  15. 'method' => 'alipay.trade.fastpay.refund.query',
  16. 'biz_content' => json_encode(is_array($order) ? $order : ['out_trade_no' => $order]),
  17. ];
  18. }
  19. }