Interface: LinePayConfig
Defined in: src/config.ts:32
Properties
baseUrl?
baseUrl?: string;Defined in: src/config.ts:53
Replaces the host that env selects, for example to go through a proxy with a fixed IP address. It must use https, except for localhost.
channelId
channelId: string;Defined in: src/config.ts:34
The channel ID of the merchant (Merchant Center, "Manage link key").
channelSecretKey
channelSecretKey: string;Defined in: src/config.ts:36
The channel secret key. Keep it on the server.
env
env: LinePayEnv;Defined in: src/config.ts:38
sandbox for testing, production for real payments.
fetch?
fetch?: (input, init?) => Promise<Response>;Defined in: src/config.ts:48
Replaces the global fetch: for a proxy, a fixed IP address, or tests.
Parameters
input
string | URL | Request
init?
RequestInit
Returns
Promise<Response>
merchantDeviceProfileId?
merchantDeviceProfileId?: string;Defined in: src/config.ts:58
Sent as X-LINE-MerchantDeviceProfileId. Give it together with merchantDeviceType: one without the other is refused.
merchantDeviceType?
merchantDeviceType?: string;Defined in: src/config.ts:63
Sent as X-LINE-MerchantDeviceType. Give it together with merchantDeviceProfileId: one without the other is refused.
middleware?
middleware?: readonly Middleware[];Defined in: src/config.ts:68
Middleware of the client, outermost first. The default is [retryWhenNotSent()]; pass [] for none.
timeout?
timeout?: number;Defined in: src/config.ts:44
Time limit of one attempt in milliseconds. It applies to every operation without a more specific setting. Order of precedence: the timeout of the call, timeouts[operation], timeout, the default of the operation.
timeouts?
timeouts?: Partial<Record<
| "request"
| "confirm"
| "capture"
| "void"
| "refund"
| "paymentDetails"
| "checkPaymentStatus"
| "checkRegKey"
| "payPreapproved"
| "expireRegKey", number>>;Defined in: src/config.ts:46
Time limits per operation.
validate?
validate?: boolean;Defined in: src/config.ts:74
Check the input before sending it, including that amounts add up. true by default. The checks of path parameters (transactionId, regKey) cannot be turned off.