UNPKG

connect-sdk-nodejs

Version:

SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Server API

9 lines (8 loc) 515 B
import { PaymentContext, SdkResponse } from "../../../model/types"; import { ErrorResponse, SessionRequest, SessionResponse } from "../domain"; export interface SessionsClient { /** * Resource /{merchantId}/sessions - <a href="https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/nodejs/sessions/create.html">Create session</a> */ create(merchantId: string, postData: SessionRequest, paymentContext?: PaymentContext | null): Promise<SdkResponse<SessionResponse, ErrorResponse>>; }