v1.0.2
Laravel Toss Payments v1.0.2
- 카드 번호 결제
use Getsolaris\LaravelTossPayments\TossPayments;
use Getsolaris\LaravelTossPayments\Attributes\Payment;
$keyIn = TossPayments::for(Payment::class)
->amount($amount)
->orderId($orderId)
->orderName($orderName)
->cardNumber($cardNumber)
->cardExpirationYear($cardExpirationYear)
->cardExpirationMonth($cardExpirationMonth)
->customerIdentityNumber($customerIdentityNumber)
->keyIn();
return $keyIn->json();
- 가상계좌 발급 요청
use Getsolaris\LaravelTossPayments\TossPayments;
use Getsolaris\LaravelTossPayments\Attributes\Payment;
$virtualAccounts = TossPayments::for(Payment::class)
->amount($amount)
->orderId($orderId)
->orderName($orderName)
->customerName($customerName)
->bank('우리')
->virtualAccounts();
return $virtualAccounts->json();
Full Changelog: v1.0.1...v1.0.2