From 17ca010939949171b272405c58788be48820f3c5 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 11 Mar 2020 18:38:22 +0800 Subject: [PATCH] Create Trade.php --- AliPay/Trade.php | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 AliPay/Trade.php diff --git a/AliPay/Trade.php b/AliPay/Trade.php new file mode 100644 index 0000000..95cc410 --- /dev/null +++ b/AliPay/Trade.php @@ -0,0 +1,58 @@ +options->set('method', $method); + return $this; + } + + /** + * 获取交易接口地址 + * @return string + */ + public function getMethod() + { + return $this->options->get('method'); + } + + /** + * 执行通过接口 + * @param array $options + * @return array|bool|mixed + * @throws \WeChat\Exceptions\InvalidResponseException + * @throws \WeChat\Exceptions\LocalCacheException + */ + public function apply($options) + { + return $this->getResult($options); + } +} \ No newline at end of file