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 객체를 초기화합니다.

Parameters

string $storeId
string $channelKey
string $paymentId
string $orderName
int $totalAmount
string $redirectUrl
string|null $customerId
string|null $payMethod
string|null $currency
bool|null $forceRedirect
array|null $windowType

환경별 결제창 유형(pc/mobile 키)

array $extra

문서화된 값에 더해 그대로 전달할 브라우저 SDK 값

array toArray()

브라우저 SDK requestPayment 파라미터 배열을 돌려줍니다.

Return Value

array