Skip to content

@sourceloop/payment-service / Exports / StripePaymentGateway

Interface: StripePaymentGateway

Table of contents

Methods

Methods

charge

charge(chargeResponse): Promise<DataObject<{ res: string }>>

Parameters

Name Type
chargeResponse DataObject<{ orderId: string ; stripeEmail: string ; stripeToken: string }>

Returns

Promise<DataObject<{ res: string }>>

Defined in

services/payment-service/src/providers/stripe/types.ts:13


create

create(payorder, paymentTemplate): Promise<string> | DataObject<{}>

Parameters

Name Type
payorder Orders
paymentTemplate undefined | string

Returns

Promise<string> | DataObject<{}>

Defined in

services/payment-service/src/providers/stripe/types.ts:9


refund

refund(transactionId): void | Promise<{}>

Parameters

Name Type
transactionId string

Returns

void | Promise<{}>

Defined in

services/payment-service/src/providers/stripe/types.ts:20


subscriptionCharge

subscriptionCharge(chargeResponse): Promise<DataObject<{ res: string }>>

Parameters

Name Type
chargeResponse DataObject<{ stripeEmail: string ; stripeToken: string ; subscriptionId: string }>

Returns

Promise<DataObject<{ res: string }>>

Defined in

services/payment-service/src/providers/stripe/types.ts:25


subscriptionCreate

subscriptionCreate(subscriptions, paymentTemplate): {} | Promise<string>

Parameters

Name Type
subscriptions Subscriptions
paymentTemplate undefined | string

Returns

{} | Promise<string>

Defined in

services/payment-service/src/providers/stripe/types.ts:21


subscriptionWebHook

subscriptionWebHook(sub): Promise<{}>

Parameters

Name Type
sub DataObject<{ data: DataObject<{ object: DataObject<{ status: string ; subscription: string }> }> }>

Returns

Promise<{}>

Defined in

services/payment-service/src/providers/stripe/types.ts:32