Download the PHP package getsolaris/laravel-tosspayments without Composer

On this page you can find all versions of the php package getsolaris/laravel-tosspayments. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-tosspayments

A Laravel package to Toss Payments

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status

토스페이먼츠 (Toss Payments) 라라벨 API 입니다.

API 버전: 2022-11-16

API 버전 정책

Version API Version
v1.2 2022-11-16
v1.1 2022-07-27

설치

.env 에 아래의 환경변수가 추가되어야 합니다. Toss Payments 개발자센터에서 발급받은 클라이언트 키와 시크릿 키를 환경변수에 추가합니다.

config 파일을 생성하기 위해서 아래 명령어를 수행합니다.

사용

Toss Payments 개발자센터의 코어 API 를 참고합니다.

API 를 사용하기 앞서 인증을 위한 API 키 준비와 인증 관련된 문서는 해당 페이지에서 확인 가능합니다.

Basic 인증 방식은 {SECRET_KEY}: 를 Base64 인코딩 한 값을 사용합니다.

결제 (Payment)

예제 보기

거래 (Transaction)

예제 보기

자동 결제 (Billing)

예제 보기

정산 (Settlement)

예제 보기

현금영수증 (CashReceipt)

예제 보기

카드사 혜택 조회 (Promotion)

예제 보기

웹훅 (Webhook) 연동하기

웹훅을 사용하기 전에 토스페이먼츠 개발자센터 웹훅 페이지에서 웹훅을 등록해주세요.

웹훅을 이용하기 전에 config/tosspayments.php 파일에서 webhook 설정을 확인해주세요.

handler 설정을 변경하여 웹훅을 처리할 컨트롤러와 메소드를 지정할 수 있습니다.

또한 아래의 명령어를 실행하여 기본 라우트 설정값인 url/webhooks/tosspayments 를 변경할 수 있습니다.

테스트 코드 사용하기

에러코드를 확인하여 특정 에러가 발생했을 때와 같이 예상된 시나리오를 직접 발생시켜 처리해 볼 수 있습니다.

Resource

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-tosspayments with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-json Version *
illuminate/support Version ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package getsolaris/laravel-tosspayments contains the following files

Loading the files please wait ....