Skip to content

@sourceloop/payment-service / Exports / GatewayProvider

Class: GatewayProvider

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new GatewayProvider(res, req, razorpayPaymentHelper, stripeHelper, paypalHelper)

Parameters

Name Type
res Response<any, Record<string, any>>
req Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
razorpayPaymentHelper RazorpayPaymentGateway
stripeHelper StripePaymentGateway
paypalHelper PayPalPaymentGateway

Defined in

services/payment-service/src/providers/gateway.provider.ts:15

Properties

paypalHelper

Private Readonly paypalHelper: PayPalPaymentGateway

Defined in

services/payment-service/src/providers/gateway.provider.ts:23


razorpayPaymentHelper

Private Readonly razorpayPaymentHelper: RazorpayPaymentGateway

Defined in

services/payment-service/src/providers/gateway.provider.ts:19


req

Private Readonly req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

Defined in

services/payment-service/src/providers/gateway.provider.ts:17


res

Private Readonly res: Response<any, Record<string, any>>

Defined in

services/payment-service/src/providers/gateway.provider.ts:16


stripeHelper

Private Readonly stripeHelper: StripePaymentGateway

Defined in

services/payment-service/src/providers/gateway.provider.ts:21

Methods

value

value(): Object

Returns

Object

Name Type
charge any
create any
refund any
subscriptionCharge any
subscriptionCreate any
subscriptionWebHook any

Implementation of

Provider.value

Defined in

services/payment-service/src/providers/gateway.provider.ts:26