Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ export class StripeSubscriptions {
subscriptionMetadata?: Record<string, string>;
/** Metadata to attach to the payment intent (only for mode: "payment") */
paymentIntentMetadata?: Record<string, string>;
allow_promotion_codes?: boolean
ui_mode?: "custom" | "embedded" | "hosted"
Comment on lines +163 to +164
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should format the parameters name to match the others

},
) {
const stripe = new StripeSDK(this.apiKey);
Expand All @@ -175,6 +177,8 @@ export class StripeSubscriptions {
success_url: args.successUrl,
cancel_url: args.cancelUrl,
metadata: args.metadata || {},
allow_promotion_codes: args.allow_promotion_codes,
ui_mode: args.ui_mode
};

if (args.customerId) {
Expand Down