From 6c5850b1c351cb24fec1377fe5d26bcc2f6338cb Mon Sep 17 00:00:00 2001 From: tarikkamat Date: Tue, 10 Sep 2024 11:31:58 +0300 Subject: [PATCH] amount_base_refund uri bug fix --- src/Iyzipay/Model/AmountBaseRefund.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Iyzipay/Model/AmountBaseRefund.php b/src/Iyzipay/Model/AmountBaseRefund.php index 7ff2cbd2..f336efc6 100644 --- a/src/Iyzipay/Model/AmountBaseRefund.php +++ b/src/Iyzipay/Model/AmountBaseRefund.php @@ -16,7 +16,7 @@ class AmountBaseRefund extends IyzipayResource public static function create(AmountBaseRefundRequest $request, Options $options): AmountBaseRefund { $uri = '/v2/payment/refund'; - $rawResult = parent::httpClient()->post($uri, parent::getHttpHeadersV2($uri, $request, $options, true), $request->toJsonString()); + $rawResult = parent::httpClient()->post($options->getBaseUrl() . $uri, parent::getHttpHeadersV2($uri, $request, $options, true), $request->toJsonString()); return AmountBaseRefundMapper::create($rawResult)->jsonDecode()->mapAmountBaseRefund(new AmountBaseRefund()); }