Home > @vsf-enterprise/epcc-api > OrderEndpoints > capturePayment

# OrderEndpoints.capturePayment() method

Capture a previously authorized payment.

Signature:

capturePayment(context: ElasticPathIntegrationContext, params: {
        orderId: string;
        transactionId: string;
    }): Promise<TransactionsResponse['data']>;

# Parameters

Parameter Type Description
context ElasticPathIntegrationContext An auto-generated value prepended to the method as a first parameter.
params { orderId: string; transactionId: string; } An object which contains necessary properties for capturing payment.

Returns:

Promise<TransactionsResponse['data']>