{"id":37416529,"url":"https://github.com/getsolaris/laravel-tosspayments","last_synced_at":"2026-01-16T06:01:46.766Z","repository":{"id":62417984,"uuid":"560437237","full_name":"getsolaris/laravel-tosspayments","owner":"getsolaris","description":":rocket: 라라벨 토스페이먼츠 라이브러리","archived":false,"fork":false,"pushed_at":"2025-10-13T02:03:20.000Z","size":77,"stargazers_count":14,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T02:17:09.609Z","etag":null,"topics":["laravel","php","tosspayments"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getsolaris.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-01T13:57:53.000Z","updated_at":"2025-10-27T10:35:37.000Z","dependencies_parsed_at":"2025-03-02T15:37:48.554Z","dependency_job_id":null,"html_url":"https://github.com/getsolaris/laravel-tosspayments","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/getsolaris/laravel-tosspayments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsolaris%2Flaravel-tosspayments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsolaris%2Flaravel-tosspayments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsolaris%2Flaravel-tosspayments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsolaris%2Flaravel-tosspayments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getsolaris","download_url":"https://codeload.github.com/getsolaris/laravel-tosspayments/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsolaris%2Flaravel-tosspayments/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","php","tosspayments"],"created_at":"2026-01-16T06:01:40.861Z","updated_at":"2026-01-16T06:01:46.743Z","avatar_url":"https://github.com/getsolaris.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Laravel package to Toss Payments\n\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/getsolaris/laravel-tosspayments.svg?style=flat-square)](https://packagist.org/packages/getsolaris/laravel-tosspayments)\n[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/getsolaris/laravel-tosspayments/run-tests?label=tests)](https://github.com/getsolaris/laravel-tosspayments/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/getsolaris/laravel-tosspayments/Fix%20PHP%20code%20style%20issues?label=code%20style)](https://github.com/getsolaris/laravel-tosspayments/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n\n\n토스페이먼츠 (Toss Payments) 라라벨 API 입니다. \n\n### API 버전: 2022-11-16\n[API 버전 정책](https://docs.tosspayments.com/reference/versioning#%EB%82%B4-%EC%83%81%EC%A0%90%EC%9D%98-api-%EB%B2%84%EC%A0%84-%ED%99%95%EC%9D%B8%EB%B3%80%EA%B2%BD%ED%95%98%EA%B8%B0)\n\n| Version | API Version |\n|---------|-------------|\n| v1.2    | 2022-11-16  |\n| v1.1    | 2022-07-27  |\n\n---\n\n# 설치\n```bash\ncomposer require getsolaris/laravel-tosspayments\n```\n\n`.env` 에 아래의 환경변수가 추가되어야 합니다.\nToss Payments 개발자센터에서 발급받은 클라이언트 키와 시크릿 키를 환경변수에 추가합니다.\n\n```bash\nTOSS_PAYMENTS_CLIENT_KEY=\nTOSS_PAYMENTS_SECRET_KEY=\n```\n\n`config` 파일을 생성하기 위해서 아래 명령어를 수행합니다.\n\n```bash\nphp artisan vendor:publish --provider=\"Getsolaris\\LaravelTossPayments\\TossPaymentsServiceProvider\" --tag=\"config\"\n```\n\n# 사용\n\nToss Payments 개발자센터의 [코어 API](https://docs.tosspayments.com/reference) 를 참고합니다.\n\nAPI 를 사용하기 앞서 인증을 위한 API 키 준비와 인증 관련된 문서는 [해당 페이지](https://docs.tosspayments.com/guides/using-api)에서 확인 가능합니다.\n\nBasic 인증 방식은 `{SECRET_KEY}:` 를 Base64 인코딩 한 값을 사용합니다.\n\n\n\n## [결제 (Payment)](https://docs.tosspayments.com/reference#%EA%B2%B0%EC%A0%9C)\n\n[예제 보기](examples/PAYMENT.md)\n\n\n## [거래 (Transaction)](https://docs.tosspayments.com/reference#%EA%B1%B0%EB%9E%98)\n\n[예제 보기](examples/TRANSACTION.md)\n\n\n## [자동 결제 (Billing)](https://docs.tosspayments.com/reference#%EC%9E%90%EB%8F%99-%EA%B2%B0%EC%A0%9C)\n\n[예제 보기](examples/BILLING.md)\n\n\n## [정산 (Settlement)](https://docs.tosspayments.com/reference#%EC%A0%95%EC%82%B0)\n\n[예제 보기](examples/SETTLEMENT.md)\n\n\n## [현금영수증 (CashReceipt)](https://docs.tosspayments.com/reference#%ED%98%84%EA%B8%88%EC%98%81%EC%88%98%EC%A6%9D)\n\n[예제 보기](examples/CASHRECEIPT.md)\n\n\n## [카드사 혜택 조회 (Promotion)](https://docs.tosspayments.com/reference#%EC%B9%B4%EB%93%9C%EC%82%AC-%ED%98%9C%ED%83%9D-%EC%A1%B0%ED%9A%8C)\n\n[예제 보기](examples/PROMOTION.md)\n\n## [웹훅 (Webhook) 연동하기](https://docs.tosspayments.com/guides/webhook#%EC%9B%B9%ED%9B%85webhook-%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0)\n\n웹훅을 사용하기 전에 토스페이먼츠 개발자센터 웹훅 페이지에서 웹훅을 등록해주세요.\n\n웹훅을 이용하기 전에 `config/tosspayments.php` 파일에서 `webhook` 설정을 확인해주세요.\n\n```\n'webhook' =\u003e [\n    'handler' =\u003e [\n        'controller' =\u003e \\App\\Http\\Controllers\\WebhookController::class,\n        'method' =\u003e '__invoke',\n    ],\n],\n```\n\n`handler` 설정을 변경하여 웹훅을 처리할 컨트롤러와 메소드를 지정할 수 있습니다.\n\n또한 아래의 명령어를 실행하여 기본 라우트 설정값인 `url/webhooks/tosspayments` 를 변경할 수 있습니다.\n\n```bash\nphp artisan vendor:publish --provider=\"Getsolaris\\LaravelTossPayments\\TossPaymentsServiceProvider\" --tag=\"webhook\"\n```\n\n\n## [테스트 코드 사용하기](https://docs.tosspayments.com/reference/error-codes#%EC%97%90%EB%9F%AC-%EC%BD%94%EB%93%9C)\n\n[에러코드](https://docs.tosspayments.com/reference/error-codes#%EC%97%90%EB%9F%AC-%EC%BD%94%EB%93%9C)를 확인하여\n특정 에러가 발생했을 때와 같이 예상된 시나리오를 직접 발생시켜 처리해 볼 수 있습니다.\n\n```php\nuse Getsolaris\\LaravelTossPayments\\TossPayments;\nuse Getsolaris\\LaravelTossPayments\\Attributes\\Transaction;\n\n$transactions = TossPayments::for(Transaction::class)\n    -\u003estartDate('2022-01-01T00:00:00')\n    -\u003eendDate('2022-12-31T00:00:00')\n    -\u003etestCode('INVALID_CARD_EXPIRATION')\n    -\u003eget();\n```\n\n\n## Resource\n- [Toss Payments 개발자센터](https://developers.tosspayments.com/)\n- [Toss Payments 코어 API](https://docs.tosspayments.com/reference)\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsolaris%2Flaravel-tosspayments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetsolaris%2Flaravel-tosspayments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsolaris%2Flaravel-tosspayments/lists"}