BrowserPaymentRequest
final class BrowserPaymentRequest (View source)
브라우저 SDK requestPayment 호출 값을 타입으로 만듭니다.
redirectUrl은 필수입니다. redirectUrl 없이 호출하면 모바일 결제 UI가 표시되지 않을 수 있으므로, 생성자에서 절대 http(s) 형태를 강제합니다. windowType 값은 그대로 전달합니다. 허용 값의 판정은 브라우저 SDK와 PG의 몫입니다.
Methods
__construct(string $storeId, string $channelKey, string $paymentId, string $orderName, int $totalAmount, string $redirectUrl, string|null $customerId = null, string|null $payMethod = null, string|null $currency = null, bool|null $forceRedirect = null, array|null $windowType = null, array $extra = [])
BrowserPaymentRequest 객체를 초기화합니다.
array
toArray()
브라우저 SDK requestPayment 파라미터 배열을 돌려줍니다.
Details
__construct(string $storeId, string $channelKey, string $paymentId, string $orderName, int $totalAmount, string $redirectUrl, string|null $customerId = null, string|null $payMethod = null, string|null $currency = null, bool|null $forceRedirect = null, array|null $windowType = null, array $extra = [])
BrowserPaymentRequest 객체를 초기화합니다.
array
toArray()
브라우저 SDK requestPayment 파라미터 배열을 돌려줍니다.