Skip to content

@sourceloop/payment-service / Exports / RazorpayPaymentGateway

Interface: RazorpayPaymentGateway

Table of contents

Methods

Methods

charge

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

Parameters

Name Type
chargeResponse DataObject<{ razorpay_order_id: string }>

Returns

Promise<DataObject<{ res: string }>>

Defined in

services/payment-service/src/providers/razorpay/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/razorpay/types.ts:9


refund

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

Parameters

Name Type
transactionId string

Returns

void | Promise<{}>

Defined in

services/payment-service/src/providers/razorpay/types.ts:17


subscriptionCharge

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

Parameters

Name Type
chargeResponse DataObject<{ razorpay_subscription_id: string }>

Returns

Promise<DataObject<{ res: string }>>

Defined in

services/payment-service/src/providers/razorpay/types.ts:22


subscriptionCreate

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

Parameters

Name Type
subscriptions Subscriptions
paymentTemplate undefined | string

Returns

{} | Promise<string>

Defined in

services/payment-service/src/providers/razorpay/types.ts:18


subscriptionWebHook

subscriptionWebHook(sub): Promise<{}>

Parameters

Name Type
sub DataObject<{}>

Returns

Promise<{}>

Defined in

services/payment-service/src/providers/razorpay/types.ts:26