@deiondz/better-auth-razorpay 2.0.12 → 2.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/dist/client/hooks.d.ts +3 -3
- package/dist/client.d.ts +2 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +89 -6
- package/dist/index.js.map +1 -1
- package/dist/{types-BGWv0IJy.d.ts → types-B91GdcpF.d.ts} +1 -1
- package/dist/{types-VZW_XCzQ.d.ts → types-BC0odu_S.d.ts} +10 -0
- package/package.json +1 -1
|
@@ -168,6 +168,16 @@ interface RazorpayPluginOptions {
|
|
|
168
168
|
razorpayWebhookSecret?: string;
|
|
169
169
|
/** Create Razorpay customer when user signs up. Default: false. */
|
|
170
170
|
createCustomerOnSignUp?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Optional. When set with createCustomerOnSignUp, creates an app-level trial subscription at sign-up (no Razorpay subscription until user subscribes).
|
|
173
|
+
* Omit for no sign-up trial. Only applies when both createCustomerOnSignUp and trialOnSignUp are set.
|
|
174
|
+
* @property days - Trial length in days (e.g. 7, 14, 30). Required when trialOnSignUp is set.
|
|
175
|
+
* @property planName - Display name for the trial in the subscription list (e.g. "Trial", "Free trial"). Default: "Trial".
|
|
176
|
+
*/
|
|
177
|
+
trialOnSignUp?: {
|
|
178
|
+
days: number;
|
|
179
|
+
planName?: string;
|
|
180
|
+
};
|
|
171
181
|
/** Called after a Razorpay customer is created. */
|
|
172
182
|
onCustomerCreate?: (args: {
|
|
173
183
|
user: RazorpayUserRecord;
|