v1.1
Laravel Toss Payments v1.1
자동 결제 (Billing)
customerKey로 카드 자동 결제 빌링키 발급 요청
POST /v1/billing/authorizations/card
use Getsolaris\LaravelTossPayments\TossPayments;
use Getsolaris\LaravelTossPayments\Attributes\Billing;
$billing = TossPayments::for(Billing::class)
->customerKey($customerKey)
->cardNumber($cardNumber)
->cardExpirationYear($cardExpirationYear)
->cardExpirationMonth($cardExpirationMonth)
->customerIdentityNumber($customerIdentityNumber)
->authorizationsCard();
return $billing->json();
authKey로 카드 자동 결제 빌링키 발급 요청
POST /v1/billing/authorizations/issue
use Getsolaris\LaravelTossPayments\TossPayments;
use Getsolaris\LaravelTossPayments\Attributes\Billing;
$billing = TossPayments::for(Billing::class)
->customerKey($customerKey)
->authKey($authKey)
->authorizationsIssue();
return $billing->json();
카드 자동 결제 승인 요청
POST /v1/billing/{billingKey}
use Getsolaris\LaravelTossPayments\TossPayments;
use Getsolaris\LaravelTossPayments\Attributes\Billing;
$billing = TossPayments::for(Billing::class)
->customerKey($customerKey)
->authKey($authKey)
->authorizationsIssue();
return $billing->json();
정산 (Settlement)
정산 조회
GET /v1/settlements
use Getsolaris\LaravelTossPayments\TossPayments;
use Getsolaris\LaravelTossPayments\Attributes\Settlement;
$settlements = TossPayments::for(Settlement::class)
->startDate($startDate)
->endDate($endDate)
->get();
return $settlements->json();
수동 정산 요청
POST /v1/settlements
use Getsolaris\LaravelTossPayments\TossPayments;
use Getsolaris\LaravelTossPayments\Attributes\Settlement;
$settlement = TossPayments::for(Settlement::class)
->paymentKey($paymentKey)
->request();
return $settlement->json();
현금영수증 (CashReceipt)
현금영수증 발급
POST /v1/cash-receipts
use Getsolaris\LaravelTossPayments\TossPayments;
use Getsolaris\LaravelTossPayments\Attributes\CashReceipt;
$cashReceipt = TossPayments::for(CashReceipt::class)
->amount($amount)
->orderId($orderId)
->orderName($orderName)
->customerIdentityNumber($customerIdentityNumber)
->type($type)
->request();
return $cashReceipt->json();
현금영수증 발급 취소
POST /v1/cash-receipts/{receiptKey}/cancel
use Getsolaris\LaravelTossPayments\TossPayments;
use Getsolaris\LaravelTossPayments\Attributes\CashReceipt;
$cashReceipt = TossPayments::for(CashReceipt::class)
->receiptKey($receiptKey)
->cancel();
return $cashReceipt->json();
현금영수증 조회
GET /v1/cash-receipts
use Getsolaris\LaravelTossPayments\TossPayments;
use Getsolaris\LaravelTossPayments\Attributes\CashReceipt;
$cashReceipts = TossPayments::for(CashReceipt::class)
->requestDate($requestDate)
->get();
return $cashReceipts->json();
카드사 혜택 조회 (CardPromotion)
카드사 혜택 조회
GET /v1/promotions/card
use Getsolaris\LaravelTossPayments\TossPayments;
use Getsolaris\LaravelTossPayments\Attributes\Promotion;
$promotions = TossPayments::for(Promotion::class)
->get();
return $promotions->json();
Full Changelog: v1.0.2...v1.1