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

Endpoints.getSopPaymentRequest() method

Returns the necessary information for creating a subscription that contacts the payment provider directly. This information contains the payment provider URL and a list of parameters that are needed to create the subscription.

Signature:

getSopPaymentRequest(context: SapccIntegrationContext, props: GetSopPaymentRequestProps): Promise<PaymentRequest>;

Parameters

Parameter Type Description
context SapccIntegrationContext An auto-generated value prepended to the method as a first parameter.
props GetSopPaymentRequestProps An object containing necessary props for creating a request for a payment.

Returns:

Promise<PaymentRequest>