Skip to main content
The plugin exports TypeScript types from the server entry point. Import them when you need to type your configuration, callbacks, or custom utilities.

Importing types

RazorpayPluginOptions

Top-level options passed to the razorpay() plugin function.

SubscriptionOptions

Configuration for the subscription feature, nested inside subscription when enabled: true.

RazorpayPlan

A plan definition that maps a friendly name to a Razorpay plan ID.

Subscription

The local subscription row stored in the plugin-managed subscription table.

VerifyRazorpayPaymentResponse

Return type of the verifyRazorpayPayment client/server endpoint.

RazorpayPaymentVerificationStatus

Return type of the standalone verifyRazorpayPaymentStatus utility.

authorizeReference parameters

When you implement authorizeReference for organization subscriptions, the function receives these arguments:
Return true to allow the action, false to deny it. Required for organization subscriptions; omitting it raises AUTHORIZE_REFERENCE_REQUIRED.