Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 868 Bytes

SETTLEMENT.md

File metadata and controls

32 lines (22 loc) · 868 Bytes

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();