Home > @vsf-enterprise/sapcc-api > Endpoints > mockedPSP

Endpoints.mockedPSP() method

Returns mocked payment provider response.

Signature:

mockedPSP(context: SapccIntegrationContext, props: MockPSPProps): Promise<PaymentEntry[]>;

Parameters

Parameter Type Description
context SapccIntegrationContext An auto-generated value prepended to the method as a first parameter.
props MockPSPProps An object containing necessary props for getting a response from SAP mocked payment provider.

Returns:

Promise<PaymentEntry[]>