From 1945112af628713685d6a819ad11b8fe11905b13 Mon Sep 17 00:00:00 2001 From: corean Date: Wed, 3 Jan 2024 15:32:02 +0900 Subject: [PATCH 1/5] compatible laravel 10 - code cleaning --- composer.json | 6 +- src/Attributes/Billing.php | 119 +++++++------------- src/Attributes/CashReceipt.php | 72 ++++-------- src/Attributes/Payment.php | 36 ------ src/Attributes/Promotion.php | 14 --- src/Enums/BankCode.php | 52 ++++----- src/Enums/CodeProvider.php | 8 +- src/Enums/DomesticCardCode.php | 44 ++++---- src/Enums/ForeignCardCode.php | 12 +- src/Handlers/TossPaymentsWebhookHandler.php | 8 +- src/TossPayments.php | 31 +---- 11 files changed, 135 insertions(+), 267 deletions(-) diff --git a/composer.json b/composer.json index f8a059d..62ff45c 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "getsolaris/laravel-tosspayments", + "name": "corean/laravel-tosspayments", "description": "A Laravel package to Toss Payments", "keywords": [ "getsolaris", @@ -22,7 +22,7 @@ "require": { "php": "^8.0", "ext-json": "*", - "illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0" + "illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0" }, "require-dev": { "phpunit/phpunit": "^9.5" @@ -51,5 +51,5 @@ } }, "minimum-stability": "dev", - "prefer-stable": true + "prefer-stable": false } \ No newline at end of file diff --git a/src/Attributes/Billing.php b/src/Attributes/Billing.php index cbde9b7..c82eb10 100644 --- a/src/Attributes/Billing.php +++ b/src/Attributes/Billing.php @@ -10,59 +10,16 @@ class Billing extends TossPayments implements AttributeInterface { - /** - * @var string - */ protected string $uri; - - /** - * @var string - */ protected string $customerKey; - - /** - * @var string - */ protected string $cardNumber; - - /** - * @var string - */ protected string $cardExpirationYear; - - /** - * @var string - */ protected string $cardExpirationMonth; - - /** - * @var string - */ protected string $customerIdentityNumber; - - /** - * @var string - */ protected string $authKey; - - /** - * @var string - */ protected string $billingKey; - - /** - * @var int - */ protected int $amount; - - /** - * @var string - */ protected string $orderName; - - /** - * @var string - */ protected string $orderId; public function __construct() @@ -82,21 +39,21 @@ public function initializeUri(): static } /** - * @param string|null $endpoint - * @param bool $withUri + * @param string|null $endpoint + * @param bool $withUri * @return string */ public function createEndpoint(?string $endpoint, bool $withUri = true): string { if ($withUri) { - return $this->url.$this->uri.$this->start($endpoint); + return $this->url . $this->uri . $this->start($endpoint); } - return $this->url.$this->start($endpoint); + return $this->url . $this->start($endpoint); } /** - * @param string $customerKey + * @param string $customerKey * @return $this */ public function customerKey(string $customerKey): static @@ -107,7 +64,7 @@ public function customerKey(string $customerKey): static } /** - * @param string $cardNumber + * @param string $cardNumber * @return $this */ public function cardNumber(string $cardNumber): static @@ -118,7 +75,7 @@ public function cardNumber(string $cardNumber): static } /** - * @param string $cardExpirationYear + * @param string $cardExpirationYear * @return $this */ public function cardExpirationYear(string $cardExpirationYear): static @@ -129,7 +86,7 @@ public function cardExpirationYear(string $cardExpirationYear): static } /** - * @param string $cardExpirationMonth + * @param string $cardExpirationMonth * @return $this */ public function cardExpirationMonth(string $cardExpirationMonth): static @@ -140,7 +97,7 @@ public function cardExpirationMonth(string $cardExpirationMonth): static } /** - * @param string $customerIdentityNumber + * @param string $customerIdentityNumber * @return $this */ public function customerIdentityNumber(string $customerIdentityNumber) @@ -151,18 +108,19 @@ public function customerIdentityNumber(string $customerIdentityNumber) } /** - * @param string|null $cardPassword - * @param string|null $customerName - * @param string|null $customerEmail - * @param Vbv|null $vbv + * @param string|null $cardPassword + * @param string|null $customerName + * @param string|null $customerEmail + * @param Vbv|null $vbv * @return PromiseInterface|Response */ public function authorizationsCard( ?string $cardPassword = null, ?string $customerName = null, ?string $customerEmail = null, - ?Vbv $vbv = null - ): PromiseInterface|Response { + ?Vbv $vbv = null + ): PromiseInterface|Response + { $parameters = []; if ($cardPassword) { $parameters['cardPassword'] = $cardPassword; @@ -177,16 +135,16 @@ public function authorizationsCard( } if ($vbv) { - $parameters['vbv'] = (array) $vbv; + $parameters['vbv'] = (array)$vbv; } return $this->client->post($this->createEndpoint('/authorizations/card'), [ - 'customerKey' => $this->customerKey, - 'cardNumber' => $this->cardNumber, - 'cardExpirationYear' => $this->cardExpirationYear, - 'cardExpirationMonth' => $this->cardExpirationMonth, - 'customerIdentityNumber' => $this->customerIdentityNumber, - ] + $parameters); + 'customerKey' => $this->customerKey, + 'cardNumber' => $this->cardNumber, + 'cardExpirationYear' => $this->cardExpirationYear, + 'cardExpirationMonth' => $this->cardExpirationMonth, + 'customerIdentityNumber' => $this->customerIdentityNumber, + ] + $parameters); } /** @@ -201,7 +159,7 @@ public function authorizationsIssue(): PromiseInterface|Response } /** - * @param string $billingKey + * @param string $billingKey * @return $this */ public function billingKey(string $billingKey): static @@ -233,20 +191,21 @@ public function orderName(string $orderName): static } /** - * @param string|null $customerEmail - * @param string|null $customerName - * @param string|null $customerMobilePhone - * @param int|null $taxFreeAmount - * @param int|null $cardInstallmentPlan + * @param string|null $customerEmail + * @param string|null $customerName + * @param string|null $customerMobilePhone + * @param int|null $taxFreeAmount + * @param int|null $cardInstallmentPlan * @return PromiseInterface|Response */ public function request( ?string $customerEmail = null, ?string $customerName = null, ?string $customerMobilePhone = null, - ?int $taxFreeAmount = null, - ?int $cardInstallmentPlan = null - ): PromiseInterface|Response { + ?int $taxFreeAmount = null, + ?int $cardInstallmentPlan = null + ): PromiseInterface|Response + { $parameters = []; if ($customerEmail) { $parameters['customerEmail'] = $customerEmail; @@ -268,11 +227,11 @@ public function request( $parameters['cardInstallmentPlan'] = $cardInstallmentPlan; } - return $this->client->post($this->createEndpoint('/'.$this->billingKey), [ - 'amount' => $this->amount, - 'customerKey' => $this->customerKey, - 'orderId' => $this->orderId, - 'orderName' => $this->orderName, - ] + $parameters); + return $this->client->post($this->createEndpoint('/' . $this->billingKey), [ + 'amount' => $this->amount, + 'customerKey' => $this->customerKey, + 'orderId' => $this->orderId, + 'orderName' => $this->orderName, + ] + $parameters); } } diff --git a/src/Attributes/CashReceipt.php b/src/Attributes/CashReceipt.php index 9b4a8be..3ece3ff 100644 --- a/src/Attributes/CashReceipt.php +++ b/src/Attributes/CashReceipt.php @@ -9,44 +9,20 @@ class CashReceipt extends TossPayments implements AttributeInterface { - /** - * @var string - */ protected string $uri; - /** - * @var string - */ protected string $receiptKey; - /** - * @var int - */ protected int $amount; - /** - * @var string - */ protected string $orderId; - /** - * @var string - */ protected string $orderName; - /** - * @var string - */ protected string $customerIdentityNumber; - /** - * @var string - */ protected string $type; - /** - * @var string - */ protected string $requestDate; public function __construct() @@ -66,21 +42,21 @@ public function initializeUri(): static } /** - * @param string|null $endpoint - * @param bool $withUri + * @param string|null $endpoint + * @param bool $withUri * @return string */ public function createEndpoint(?string $endpoint, bool $withUri = true): string { if ($withUri) { - return $this->url.$this->uri.$this->start($endpoint); + return $this->url . $this->uri . $this->start($endpoint); } - return $this->url.$this->start($endpoint); + return $this->url . $this->start($endpoint); } /** - * @param string $receiptKey + * @param string $receiptKey * @return $this */ public function receiptKey(string $receiptKey): static @@ -91,7 +67,7 @@ public function receiptKey(string $receiptKey): static } /** - * @param int $amount + * @param int $amount * @return $this */ public function amount(int $amount): static @@ -102,7 +78,7 @@ public function amount(int $amount): static } /** - * @param string $orderId + * @param string $orderId * @return $this */ public function orderId(string $orderId): static @@ -113,7 +89,7 @@ public function orderId(string $orderId): static } /** - * @param string $orderName + * @param string $orderName * @return $this */ public function orderName(string $orderName): static @@ -124,7 +100,7 @@ public function orderName(string $orderName): static } /** - * @param string $customerIdentityNumber + * @param string $customerIdentityNumber * @return $this */ public function customerIdentityNumber(string $customerIdentityNumber): static @@ -135,7 +111,7 @@ public function customerIdentityNumber(string $customerIdentityNumber): static } /** - * @param string $type + * @param string $type * @return $this */ public function type(string $type): static @@ -146,7 +122,7 @@ public function type(string $type): static } /** - * @param int|null $taxFreeAmount + * @param int|null $taxFreeAmount * @return PromiseInterface|Response */ public function request(?int $taxFreeAmount = null): PromiseInterface|Response @@ -157,16 +133,16 @@ public function request(?int $taxFreeAmount = null): PromiseInterface|Response } return $this->client->post($this->createEndpoint('/'), [ - 'amount' => $this->amount, - 'orderId' => $this->orderId, - 'orderName' => $this->orderName, - 'customerIdentityNumber' => $this->customerIdentityNumber, - 'type' => $this->type, - ] + $parameters); + 'amount' => $this->amount, + 'orderId' => $this->orderId, + 'orderName' => $this->orderName, + 'customerIdentityNumber' => $this->customerIdentityNumber, + 'type' => $this->type, + ] + $parameters); } /** - * @param int|null $amount + * @param int|null $amount * @return PromiseInterface|Response */ public function cancel(?int $amount = null): PromiseInterface|Response @@ -176,11 +152,11 @@ public function cancel(?int $amount = null): PromiseInterface|Response $parameters['amount'] = $amount; } - return $this->client->post($this->createEndpoint('/'.$this->receiptKey.'/cancel'), $parameters); + return $this->client->post($this->createEndpoint('/' . $this->receiptKey . '/cancel'), $parameters); } /** - * @param string $requestDate + * @param string $requestDate * @return $this */ public function requestDate(string $requestDate): static @@ -191,8 +167,8 @@ public function requestDate(string $requestDate): static } /** - * @param int|null $cursor - * @param int|null $limit + * @param int|null $cursor + * @param int|null $limit * @return PromiseInterface|Response */ public function get(?int $cursor = null, ?int $limit = null): PromiseInterface|Response @@ -207,7 +183,7 @@ public function get(?int $cursor = null, ?int $limit = null): PromiseInterface|R } return $this->client->get($this->createEndpoint('/'), [ - 'requestDate' => $this->requestDate, - ] + $parameters); + 'requestDate' => $this->requestDate, + ] + $parameters); } } diff --git a/src/Attributes/Payment.php b/src/Attributes/Payment.php index a8b32f2..42417dc 100644 --- a/src/Attributes/Payment.php +++ b/src/Attributes/Payment.php @@ -12,64 +12,28 @@ class Payment extends TossPayments implements AttributeInterface { - /** - * @var string - */ protected string $uri; - /** - * @var string - */ protected string $paymentKey; - /** - * @var string - */ protected string $orderId; - /** - * @var string - */ protected string $cancelReason; - /** - * @var string - */ protected string $orderName; - /** - * @var string - */ protected string $customerName; - /** - * @var string - */ protected string $bank; - /** - * @var string - */ protected string $cardNumber; - /** - * @var string - */ protected string $cardExpirationYear; - /** - * @var string - */ protected string $cardExpirationMonth; - /** - * @var string - */ protected string $customerIdentityNumber; - /** - * @var int - */ protected int $amount; public function __construct() diff --git a/src/Attributes/Promotion.php b/src/Attributes/Promotion.php index e326355..4264dfd 100644 --- a/src/Attributes/Promotion.php +++ b/src/Attributes/Promotion.php @@ -9,9 +9,6 @@ class Promotion extends TossPayments implements AttributeInterface { - /** - * @var string - */ protected string $uri; public function __construct() @@ -20,9 +17,6 @@ public function __construct() $this->initializeUri(); } - /** - * @return $this - */ public function initializeUri(): static { $this->uri = '/promotions'; @@ -30,11 +24,6 @@ public function initializeUri(): static return $this; } - /** - * @param string|null $endpoint - * @param bool $withUri - * @return string - */ public function createEndpoint(?string $endpoint, bool $withUri = true): string { if ($withUri) { @@ -44,9 +33,6 @@ public function createEndpoint(?string $endpoint, bool $withUri = true): string return $this->url.$this->start($endpoint); } - /** - * @return PromiseInterface|Response - */ public function get(): PromiseInterface|Response { return $this->client->get($this->createEndpoint('/card')); diff --git a/src/Enums/BankCode.php b/src/Enums/BankCode.php index eb249d0..2d182d1 100644 --- a/src/Enums/BankCode.php +++ b/src/Enums/BankCode.php @@ -4,132 +4,132 @@ final class BankCode extends CodeProvider { - const KYONGNAMBANK = [ + public const KYONGNAMBANK = [ 'code' => 39, 'kr' => '경남', ]; - const GWANGJUBANK = [ + public const GWANGJUBANK = [ 'code' => 34, 'kr' => '광주', ]; - const LOCALNONGHYEOP = [ + public const LOCALNONGHYEOP = [ 'code' => 12, 'kr' => '단위농협', ]; - const BUSANBANK = [ + public const BUSANBANK = [ 'code' => 32, 'kr' => '부산', ]; - const SAEMAUL = [ + public const SAEMAUL = [ 'code' => 45, 'kr' => '새마을', ]; - const SANLIM = [ + public const SANLIM = [ 'code' => 64, 'kr' => '산림', ]; - const SHINHAN = [ + public const SHINHAN = [ 'code' => 88, 'kr' => '신한', ]; - const SHINHYEOP = [ + public const SHINHYEOP = [ 'code' => 48, 'kr' => '신협', ]; - const CITI = [ + public const CITI = [ 'code' => 27, 'kr' => '씨티', ]; - const WOORI = [ + public const WOORI = [ 'code' => 20, 'kr' => '우리', ]; - const POST = [ + public const POST = [ 'code' => 71, 'kr' => '우체국', ]; - const SAVINGBANK = [ + public const SAVINGBANK = [ 'code' => 50, 'kr' => '저축', ]; - const JEONBUKBANK = [ + public const JEONBUKBANK = [ 'code' => 37, 'kr' => '전북', ]; - const JEJUBANK = [ + public const JEJUBANK = [ 'code' => 35, 'kr' => '제주', ]; - const KAKAOBANK = [ + public const KAKAOBANK = [ 'code' => 90, 'kr' => '카카오', ]; - const KBANK = [ + public const KBANK = [ 'code' => 89, 'kr' => '케이', ]; - const TOSSBANK = [ + public const TOSSBANK = [ 'code' => 92, 'kr' => '토스', ]; - const HANA = [ + public const HANA = [ 'code' => 81, 'kr' => '하나', ]; - const HSBC = [ + public const HSBC = [ 'code' => 54, 'kr' => null, ]; - const DAEGUBANK = [ + public const DAEGUBANK = [ 'code' => 31, 'kr' => '대구', ]; - const IBK = [ + public const IBK = [ 'code' => 03, 'kr' => '기업', ]; - const KDBBANK = [ + public const KDBBANK = [ 'code' => 02, 'kr' => '산업', ]; - const KOOKMIN = [ + public const KOOKMIN = [ 'code' => 06, 'kr' => '국민', ]; - const NONGHYEOP = [ + public const NONGHYEOP = [ 'code' => 11, 'kr' => '농협', ]; - const SC = [ + public const SC = [ 'code' => 23, 'kr' => 'SC제일', ]; - const SUHYEOP = [ + public const SUHYEOP = [ 'code' => 07, 'kr' => '수협', ]; diff --git a/src/Enums/CodeProvider.php b/src/Enums/CodeProvider.php index 8a2f2ce..aa683a0 100644 --- a/src/Enums/CodeProvider.php +++ b/src/Enums/CodeProvider.php @@ -16,9 +16,9 @@ class CodeProvider */ public static function toCode(int|string $code): string|int { - $class = get_called_class(); + $class = static::class; if ($class === self::class) { - throw new LogicException(get_called_class().' 클래스를 직접 호출할 수 없습니다.'); + throw new LogicException(static::class .' 클래스를 직접 호출할 수 없습니다.'); } if (defined($class.'::'.$code)) { @@ -29,7 +29,9 @@ public static function toCode(int|string $code): string|int foreach ($constants as $constant) { if ($constant['code'] === $code) { return $constant['code']; - } elseif ($constant['kr'] === $code) { + } + + if ($constant['kr'] === $code) { return $constant['code']; } } diff --git a/src/Enums/DomesticCardCode.php b/src/Enums/DomesticCardCode.php index 2253fe2..5fc0fd5 100644 --- a/src/Enums/DomesticCardCode.php +++ b/src/Enums/DomesticCardCode.php @@ -4,112 +4,112 @@ final class DomesticCardCode extends CodeProvider { - const GWANGJUBANK = [ + public const GWANGJUBANK = [ 'code' => 46, 'kr' => '광주', ]; - const LOTTE = [ + public const LOTTE = [ 'code' => 71, 'kr' => '롯데', ]; - const KDBBANK = [ + public const KDBBANK = [ 'code' => 30, 'kr' => '산업', ]; - const BC = [ + public const BC = [ 'code' => 31, 'kr' => null, ]; - const SAMSUNG = [ + public const SAMSUNG = [ 'code' => 51, 'kr' => '삼성', ]; - const SAEMAUL = [ + public const SAEMAUL = [ 'code' => 38, 'kr' => '새마을', ]; - const SHINHAN = [ + public const SHINHAN = [ 'code' => 41, 'kr' => '신한', ]; - const SHINHYEOP = [ + public const SHINHYEOP = [ 'code' => 62, 'kr' => '신협', ]; - const CITI = [ + public const CITI = [ 'code' => 36, 'kr' => '씨티', ]; - const WOORI = [ + public const WOORI = [ 'code' => 33, 'kr' => '우리', ]; - const POST = [ + public const POST = [ 'code' => 37, 'kr' => '우체국', ]; - const SAVINGBANK = [ + public const SAVINGBANK = [ 'code' => 39, 'kr' => '저축', ]; - const JEONBUKBANK = [ + public const JEONBUKBANK = [ 'code' => 35, 'kr' => '전북', ]; - const JEJUBANK = [ + public const JEJUBANK = [ 'code' => 42, 'kr' => '제주', ]; - const KAKAOBANK = [ + public const KAKAOBANK = [ 'code' => 15, 'kr' => '카카오뱅크', ]; - const KBANK = [ + public const KBANK = [ 'code' => '3A', 'kr' => '케이뱅크', ]; - const TOSSBANK = [ + public const TOSSBANK = [ 'code' => 24, 'kr' => '토스뱅크', ]; - const HANA = [ + public const HANA = [ 'code' => 21, 'kr' => '하나', ]; - const HYUNDAI = [ + public const HYUNDAI = [ 'code' => 61, 'kr' => '현대', ]; - const KOOKMIN = [ + public const KOOKMIN = [ 'code' => 11, 'kr' => '국민', ]; - const NONGHYEOP = [ + public const NONGHYEOP = [ 'code' => 91, 'kr' => '농협', ]; - const SUHYEOP = [ + public const SUHYEOP = [ 'code' => 34, 'kr' => '수협', ]; diff --git a/src/Enums/ForeignCardCode.php b/src/Enums/ForeignCardCode.php index 7849c42..3fdebdf 100644 --- a/src/Enums/ForeignCardCode.php +++ b/src/Enums/ForeignCardCode.php @@ -4,32 +4,32 @@ final class ForeignCardCode extends CodeProvider { - const DINERS = [ + public const DINERS = [ 'code' => '6D', 'kr' => '다이너스', ]; - const DISCOVER = [ + public const DISCOVER = [ 'code' => '6I', 'kr' => '디스커버', ]; - const MASTER = [ + public const MASTER = [ 'code' => '4M', 'kr' => '마스터', ]; - const UNIONPAY = [ + public const UNIONPAY = [ 'code' => '3C', 'kr' => '유니온페이', ]; - const JCB = [ + public const JCB = [ 'code' => '4J', 'kr' => null, ]; - const VISA = [ + public const VISA = [ 'code' => '4V', 'kr' => '비자', ]; diff --git a/src/Handlers/TossPaymentsWebhookHandler.php b/src/Handlers/TossPaymentsWebhookHandler.php index 81387cf..fb0261e 100644 --- a/src/Handlers/TossPaymentsWebhookHandler.php +++ b/src/Handlers/TossPaymentsWebhookHandler.php @@ -3,18 +3,20 @@ namespace Getsolaris\LaravelTossPayments\Handlers; use Getsolaris\LaravelTossPayments\Exceptions\WebhookPayloadException; +use Illuminate\Http\Request; class TossPaymentsWebhookHandler { /** * @throws WebhookPayloadException * @throws \ReflectionException + * @throws \JsonException */ - public function __invoke() + public function __invoke(Request $request) { - $payload = json_decode(request()->getContent(), true); + $payload = json_decode($request->getContent(), true, 512, JSON_THROW_ON_ERROR); - if (! $payload) { + if (!$payload) { throw new WebhookPayloadException(); } diff --git a/src/TossPayments.php b/src/TossPayments.php index 55d3d9b..e8e8c31 100644 --- a/src/TossPayments.php +++ b/src/TossPayments.php @@ -2,49 +2,27 @@ namespace Getsolaris\LaravelTossPayments; +use Getsolaris\LaravelTossPayments\Attributes\Payment; +use Illuminate\Http\Client\PendingRequest; use Illuminate\Support\Facades\Http; use Illuminate\Support\Str; class TossPayments { - /** - * @var string - */ - protected $attribute; + protected Payment $attribute; - /** - * @var - */ - protected $client; + protected PendingRequest $client; - /** - * @var string - */ protected string $endpoint; - /** - * @var string - */ protected string $version; - /** - * @var string - */ protected string $url; - /** - * @var string - */ protected string $clientKey; - /** - * @var string - */ protected string $secretKey; - /** - * @var array - */ protected array $headers = []; public function __construct($attribute) @@ -62,6 +40,7 @@ public function __construct($attribute) */ public function setAttribute($attribute): static { + ray($attribute)->label('setAttribute'); $this->attribute = $attribute; return $this; From 2fb0fea3f87d2de81645720f775b0685593d7b86 Mon Sep 17 00:00:00 2001 From: corean Date: Wed, 3 Jan 2024 17:56:18 +0900 Subject: [PATCH 2/5] Update TossPayments.php error fixed --- src/TossPayments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TossPayments.php b/src/TossPayments.php index e8e8c31..e601225 100644 --- a/src/TossPayments.php +++ b/src/TossPayments.php @@ -9,9 +9,9 @@ class TossPayments { - protected Payment $attribute; + protected $attribute; - protected PendingRequest $client; + protected $client; protected string $endpoint; From cea331b89a61afcaceeebfbddad14bddfac0a532 Mon Sep 17 00:00:00 2001 From: corean Date: Fri, 12 Jan 2024 10:23:02 +0900 Subject: [PATCH 3/5] disable ray --- src/TossPayments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TossPayments.php b/src/TossPayments.php index e601225..8af5456 100644 --- a/src/TossPayments.php +++ b/src/TossPayments.php @@ -40,7 +40,7 @@ public function __construct($attribute) */ public function setAttribute($attribute): static { - ray($attribute)->label('setAttribute'); + // ray($attribute)->label('setAttribute'); $this->attribute = $attribute; return $this; From 82b79942c8dea4c1a4feacc827fed12ca071f1c7 Mon Sep 17 00:00:00 2001 From: corean Date: Mon, 15 Jan 2024 16:18:01 +0900 Subject: [PATCH 4/5] Update TossPayments.php remove comment --- src/TossPayments.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/TossPayments.php b/src/TossPayments.php index 8af5456..3075920 100644 --- a/src/TossPayments.php +++ b/src/TossPayments.php @@ -40,7 +40,6 @@ public function __construct($attribute) */ public function setAttribute($attribute): static { - // ray($attribute)->label('setAttribute'); $this->attribute = $attribute; return $this; From c727eb27d78f792a809d5644ffa1cfca3a5a99ab Mon Sep 17 00:00:00 2001 From: corean Date: Mon, 15 Jan 2024 16:26:44 +0900 Subject: [PATCH 5/5] Update composer.json --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 62ff45c..38531cd 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "corean/laravel-tosspayments", + "name": "getsolaris/laravel-tosspayments", "description": "A Laravel package to Toss Payments", "keywords": [ "getsolaris", @@ -51,5 +51,5 @@ } }, "minimum-stability": "dev", - "prefer-stable": false -} \ No newline at end of file + "prefer-stable": true +}