diff --git a/src/AnswerPreCheckoutQuery.php b/src/AnswerPreCheckoutQuery.php new file mode 100644 index 0000000..31cf59e --- /dev/null +++ b/src/AnswerPreCheckoutQuery.php @@ -0,0 +1,31 @@ +httpClient->post($this->getMethodUrl('answerPreCheckoutQuery'), [ + 'json' => get_values($answerPreCheckoutQuery), + ]); + } + private function getMethodUrl(string $method): string { return sprintf('https://api.telegram.org/bot%s/%s', $this->token, $method); diff --git a/src/OrderInfo.php b/src/OrderInfo.php new file mode 100644 index 0000000..7b2d2ad --- /dev/null +++ b/src/OrderInfo.php @@ -0,0 +1,53 @@ +